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