Home | History | Annotate | Download | only in libbt
      1 generated_sources := $(local-generated-sources-dir)
      2 
      3 # Allow external configuration file
      4 ifneq (,$(BOARD_CUSTOM_BT_CONFIG))
      5 SRC := $(BOARD_CUSTOM_BT_CONFIG)
      6 else
      7 SRC := $(call my-dir)/include/$(addprefix vnd_, $(addsuffix .txt,$(basename $(TARGET_DEVICE))))
      8 endif
      9 ifeq (,$(wildcard $(SRC)))
     10 # configuration file does not exist. Use default one
     11 SRC := $(call my-dir)/include/vnd_generic.txt
     12 endif
     13 GEN := $(generated_sources)/vnd_buildcfg.h
     14 TOOL := $(call my-dir)/gen-buildcfg.sh
     15 
     16 $(GEN): PRIVATE_PATH := $(call my-dir)
     17 $(GEN): PRIVATE_CUSTOM_TOOL = $(TOOL) $< $@
     18 $(GEN): $(SRC)  $(TOOL)
     19 	$(transform-generated-source)
     20 
     21 LOCAL_GENERATED_SOURCES += $(GEN)
     22