summaryrefslogtreecommitdiff
path: root/vnd_buildcfg.mk (plain)
blob: d67a79caad97fbe50b332d55274dbd8acaa5cd7b
1intermediates := $(local-intermediates-dir)
2
3ifeq ($(BCM_BLUETOOTH_LPM_ENABLE),true)
4SRC := $(call my-dir)/include/vnd_40183_lpm.txt
5else
6SRC := $(call my-dir)/include/vnd_40183.txt
7endif
8ifeq (,$(wildcard $(SRC)))
9# configuration file does not exist. Use default one
10SRC := $(call my-dir)/include/vnd_generic.txt
11endif
12GEN := $(intermediates)/vnd_buildcfg.h
13TOOL := $(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
20LOCAL_GENERATED_SOURCES += $(GEN)
21