summaryrefslogtreecommitdiffstats
path: root/vendor/libvendor/vnd_buildcfg.mk
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libvendor/vnd_buildcfg.mk')
-rw-r--r--vendor/libvendor/vnd_buildcfg.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/libvendor/vnd_buildcfg.mk b/vendor/libvendor/vnd_buildcfg.mk
new file mode 100644
index 0000000..ea4b0e5
--- /dev/null
+++ b/vendor/libvendor/vnd_buildcfg.mk
@@ -0,0 +1,12 @@
+intermediates := $(local-intermediates-dir)
+
+SRC := $(call my-dir)/include/$(addprefix vnd_, $(addsuffix .txt,$(basename $(TARGET_DEVICE))))
+GEN := $(intermediates)/vnd_buildcfg.h
+TOOL := $(call my-dir)/../../tools/gen-buildcfg.sh
+
+$(GEN): PRIVATE_PATH := $(call my-dir)
+$(GEN): PRIVATE_CUSTOM_TOOL = $(TOOL) $< $@
+$(GEN): $(SRC) $(TOOL)
+ $(transform-generated-source)
+
+LOCAL_GENERATED_SOURCES += $(GEN)