1 # 2 # Set up product-global definitions and include product-specific rules. 3 # 4 5 ifneq ($(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 12 else 13 INSTALLED_BOOTLOADER_MODULE := 14 INSTALLED_2NDBOOTLOADER_TARGET := 15 endif # TARGET_NO_BOOTLOADER 16 17 ifneq ($(strip $(TARGET_NO_KERNEL)),true) 18 INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel 19 else 20 INSTALLED_KERNEL_TARGET := 21 endif 22 23 # Use the add-radio-file function to add values to this variable. 24 INSTALLED_RADIOIMAGE_TARGET := 25 26 ifeq (,$(wildcard $(TARGET_DEVICE_DIR)/AndroidBoard.mk)) 27 ifeq (,$(wildcard $(TARGET_DEVICE_DIR)/Android.mk)) 28 $(error Missing "$(TARGET_DEVICE_DIR)/AndroidBoard.mk") 29 else 30 # TODO: Remove this check after people have had a chance to switch, 31 # after April 2009. 32 $(error Please rename "$(TARGET_DEVICE_DIR)/Android.mk" to "$(TARGET_DEVICE_DIR)/AndroidBoard.mk") 33 endif 34 endif 35 include $(TARGET_DEVICE_DIR)/AndroidBoard.mk 36 37 # Generate a file that contains various information about the 38 # device we're building for. This file is typically packaged up 39 # with everything else. 40 # 41 # If the file "board-info.txt" appears in $(TARGET_DEVICE_DIR), 42 # it will be appended to the output file. 43 # 44 INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt 45 board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt) 46 $(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt) 47 $(call pretty,"Generated: ($@)") 48 ifdef board_info_txt 49 $(hide) cat $< > $@ 50 else 51 $(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@ 52 endif 53