blob: f8ecc4ef3aece6510326c7b97c19f8ce7ce79c22 [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001#
2# Set up product-global definitions and include product-specific rules.
3#
4
Jean-Baptiste Queru3f4e53a2010-09-15 11:59:33 -07005-include $(TARGET_DEVICE_DIR)/AndroidBoard.mk
The Android Open Source Project88b60792009-03-03 19:28:42 -08006
7# Generate a file that contains various information about the
8# device we're building for. This file is typically packaged up
9# with everything else.
10#
Doug Zongker545b7992012-01-19 10:43:49 -080011# If TARGET_BOARD_INFO_FILE (which can be set in BoardConfig.mk) is
12# defined, it is used, otherwise board-info.txt is looked for in
13# $(TARGET_DEVICE_DIR).
The Android Open Source Project88b60792009-03-03 19:28:42 -080014#
15INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
Ying Wangdc31d762011-06-13 17:36:08 -070016board_info_txt := $(TARGET_BOARD_INFO_FILE)
Doug Zongker545b7992012-01-19 10:43:49 -080017ifndef board_info_txt
18board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
Ying Wangdc31d762011-06-13 17:36:08 -070019endif
The Android Open Source Project88b60792009-03-03 19:28:42 -080020$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
Doug Zongker9296f092012-03-20 16:42:22 -070021 $(hide) build/tools/check_radio_versions.py $< $(BOARD_INFO_CHECK)
The Android Open Source Project88b60792009-03-03 19:28:42 -080022 $(call pretty,"Generated: ($@)")
The Android Open Source Project88b60792009-03-03 19:28:42 -080023ifdef board_info_txt
Doug Zongker545b7992012-01-19 10:43:49 -080024 $(hide) grep -v '#' $< > $@
Brian Swetland2b803172009-11-25 13:43:25 -080025else
26 $(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
The Android Open Source Project88b60792009-03-03 19:28:42 -080027endif