Android.mk revision 545b7996cc5510310f69227f14e4e4e67e95e80c
1# 2# Set up product-global definitions and include product-specific rules. 3# 4 5ifneq ($(strip $(TARGET_NO_BOOTLOADER)),true) 6 INSTALLED_BOOTLOADER_MODULE := $(PRODUCT_OUT)/bootloader 7 ifeq ($(strip $(TARGET_BOOTLOADER_IS_2ND)),true) 8 INSTALLED_2NDBOOTLOADER_TARGET := $(PRODUCT_OUT)/2ndbootloader 9 else 10 INSTALLED_2NDBOOTLOADER_TARGET := 11 endif 12else 13 INSTALLED_BOOTLOADER_MODULE := 14 INSTALLED_2NDBOOTLOADER_TARGET := 15endif # TARGET_NO_BOOTLOADER 16 17ifneq ($(strip $(TARGET_NO_KERNEL)),true) 18 INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel 19else 20 INSTALLED_KERNEL_TARGET := 21endif 22 23-include $(TARGET_DEVICE_DIR)/AndroidBoard.mk 24 25# Generate a file that contains various information about the 26# device we're building for. This file is typically packaged up 27# with everything else. 28# 29# If TARGET_BOARD_INFO_FILE (which can be set in BoardConfig.mk) is 30# defined, it is used, otherwise board-info.txt is looked for in 31# $(TARGET_DEVICE_DIR). 32# 33INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt 34board_info_txt := $(TARGET_BOARD_INFO_FILE) 35ifndef board_info_txt 36board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt) 37endif 38$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt) 39 $(call pretty,"Generated: ($@)") 40ifdef board_info_txt 41 $(hide) grep -v '#' $< > $@ 42else 43 $(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@ 44endif 45