Colin Cross | 8469d80 | 2014-02-13 17:17:01 -0800 | [diff] [blame] | 1 | generated_sources := $(local-generated-sources-dir) |
Wink Saville | ee836ae | 2012-09-25 05:49:13 -0700 | [diff] [blame] | 2 | |
| 3 | SRC := $(call my-dir)/include/$(addprefix vnd_, $(addsuffix .txt,$(basename $(TARGET_DEVICE)))) |
| 4 | ifeq (,$(wildcard $(SRC))) |
| 5 | # configuration file does not exist. Use default one |
| 6 | SRC := $(call my-dir)/include/vnd_generic.txt |
| 7 | endif |
Colin Cross | 8469d80 | 2014-02-13 17:17:01 -0800 | [diff] [blame] | 8 | GEN := $(generated_sources)/vnd_buildcfg.h |
Wink Saville | ee836ae | 2012-09-25 05:49:13 -0700 | [diff] [blame] | 9 | TOOL := $(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 | |
| 16 | LOCAL_GENERATED_SOURCES += $(GEN) |