summaryrefslogtreecommitdiffstats
path: root/include/buildcfg.mk
blob: 1623c957cf7153430b21f1f3bd1db73437328e37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
intermediates := $(local-intermediates-dir)

SRC := $(call my-dir)/$(addprefix bdroid_, $(addsuffix .txt,$(basename $(TARGET_DEVICE))))
GEN := $(intermediates)/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)