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