summaryrefslogtreecommitdiff
path: root/utils.mk
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2019-04-18 17:15:30 +0530
committerAmit Pundir <amit.pundir@linaro.org>2019-09-24 23:50:43 +0530
commit3a69c9b6d04cf4d1331233868cb883523b965e4c (patch)
tree4a73317ab7804a8e180eda795596699a0f5250ec /utils.mk
parent4e37582f32480bd153c93fed20b6aabe98bfbb90 (diff)
db845c: firmware: Add Qcom RB3 firmware files
Copied Qcom firmware files and license from RB3_firmware_20190529180356-v3.zip http://releases.linaro.org/96boards/dragonboard845c/qualcomm/firmware/RB3_firmware_20190529180356-v3.zip Also added utils.mk helper script which will contain useful build/install macros going forward. add-qcom-firmware() to start with. Change-Id: Iabef654d79ba2562929ae99c5d36f1439802b408 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Diffstat (limited to 'utils.mk')
-rw-r--r--utils.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils.mk b/utils.mk
new file mode 100644
index 0000000..04679fe
--- /dev/null
+++ b/utils.mk
@@ -0,0 +1,15 @@
+# Put common makefile/build helper Macros here
+
+# $(1): The source file name in LOCAL_PATH.
+# It also serves as the module name and the dest file name.
+# $(2): Module installation path.
+define add-qcom-firmware
+$(eval include $(CLEAR_VARS))\
+$(eval LOCAL_MODULE := $(1))\
+$(eval LOCAL_SRC_FILES := $(1))\
+$(eval LOCAL_MODULE_STEM := $(1))\
+$(eval LOCAL_MODULE_CLASS := DATA)\
+$(eval LOCAL_MODULE_TAGS := optional)\
+$(eval LOCAL_MODULE_PATH := $(2))\
+$(eval include $(BUILD_PREBUILT))
+endef