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