1# 2# Set up product-global definitions and include product-specific rules. 3# 4 5-include $(TARGET_DEVICE_DIR)/AndroidBoard.mk 6 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# 11# 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). 14# 15INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt 16board_info_txt := $(TARGET_BOARD_INFO_FILE) 17ifndef board_info_txt 18board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt) 19endif 20$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt) 21 $(hide) build/tools/check_radio_versions.py $< $(BOARD_INFO_CHECK) 22 $(call pretty,"Generated: ($@)") 23ifdef board_info_txt 24 $(hide) grep -v '#' $< > $@ 25else 26 $(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@ 27endif 28