Amit Pundir | ce6bf96 | 2021-11-23 22:33:59 +0530 | [diff] [blame] | 1 | # Put common makefile/build helper Macros here |
| 2 | |
| 3 | # $(1): The source file name in LOCAL_PATH. |
| 4 | # It also serves as the module name and the dest file name. |
| 5 | # $(2): Module src file. |
| 6 | # $(3): Module install path. |
| 7 | # $(4): Module license. |
| 8 | # As visible under "Settings" -> |
| 9 | # "About phone" -> |
| 10 | # "Legal information" -> |
| 11 | # "Third-party licenses" tab. |
| 12 | define add-qcom-firmware |
| 13 | $(eval include $(CLEAR_VARS))\ |
| 14 | $(eval LOCAL_MODULE := $(1))\ |
| 15 | $(eval LOCAL_SRC_FILES := $(2))\ |
| 16 | $(eval LOCAL_MODULE_STEM := $(1))\ |
| 17 | $(eval LOCAL_MODULE_CLASS := DATA)\ |
| 18 | $(eval LOCAL_MODULE_TAGS := optional)\ |
| 19 | $(eval LOCAL_MODULE_PATH := $(3))\ |
| 20 | $(eval LOCAL_NOTICE_FILE := $(4))\ |
| 21 | $(eval include $(BUILD_PREBUILT)) |
| 22 | endef |