Wink Saville | ee836ae | 2012-09-25 05:49:13 -0700 | [diff] [blame] | 1 | intermediates := $(local-intermediates-dir) |
| 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 |
| 8 | GEN := $(intermediates)/vnd_buildcfg.h |
| 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) |