2009-03-03 19:28:42 -08:00
|
|
|
#
|
|
|
|
# Set up product-global definitions and include product-specific rules.
|
|
|
|
#
|
|
|
|
|
2010-09-15 11:59:33 -07:00
|
|
|
-include $(TARGET_DEVICE_DIR)/AndroidBoard.mk
|
2009-03-03 19:28:42 -08:00
|
|
|
|
|
|
|
# Generate a file that contains various information about the
|
|
|
|
# device we're building for. This file is typically packaged up
|
|
|
|
# with everything else.
|
|
|
|
#
|
2012-01-19 10:43:49 -08:00
|
|
|
# If TARGET_BOARD_INFO_FILE (which can be set in BoardConfig.mk) is
|
|
|
|
# defined, it is used, otherwise board-info.txt is looked for in
|
|
|
|
# $(TARGET_DEVICE_DIR).
|
2009-03-03 19:28:42 -08:00
|
|
|
#
|
|
|
|
INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
|
2011-06-13 17:36:08 -07:00
|
|
|
board_info_txt := $(TARGET_BOARD_INFO_FILE)
|
2012-01-19 10:43:49 -08:00
|
|
|
ifndef board_info_txt
|
|
|
|
board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
|
2011-06-13 17:36:08 -07:00
|
|
|
endif
|
2009-03-03 19:28:42 -08:00
|
|
|
$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
|
2012-03-20 16:42:22 -07:00
|
|
|
$(hide) build/tools/check_radio_versions.py $< $(BOARD_INFO_CHECK)
|
2009-03-03 19:28:42 -08:00
|
|
|
$(call pretty,"Generated: ($@)")
|
|
|
|
ifdef board_info_txt
|
2012-01-19 10:43:49 -08:00
|
|
|
$(hide) grep -v '#' $< > $@
|
2009-11-25 13:43:25 -08:00
|
|
|
else
|
|
|
|
$(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
|
2009-03-03 19:28:42 -08:00
|
|
|
endif
|