1generated_sources := $(local-generated-sources-dir) 2 3# Allow external configuration file 4ifneq (,$(BOARD_CUSTOM_BT_CONFIG)) 5SRC := $(BOARD_CUSTOM_BT_CONFIG) 6else 7SRC := $(call my-dir)/include/$(addprefix vnd_, $(addsuffix .txt,$(basename $(TARGET_DEVICE)))) 8endif 9ifeq (,$(wildcard $(SRC))) 10# configuration file does not exist. Use default one 11SRC := $(call my-dir)/include/vnd_generic.txt 12endif 13GEN := $(generated_sources)/vnd_buildcfg.h 14TOOL := $(call my-dir)/gen-buildcfg.sh 15 16$(GEN): PRIVATE_PATH := $(call my-dir) 17$(GEN): PRIVATE_CUSTOM_TOOL = $(TOOL) $< $@ 18$(GEN): $(SRC) $(TOOL) 19 $(transform-generated-source) 20 21LOCAL_GENERATED_SOURCES += $(GEN) 22