The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 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 | |
Doug Zongker | e01100c | 2009-06-19 17:12:18 -0700 | [diff] [blame] | 23 | # Use the add-radio-file function to add values to this variable. |
| 24 | INSTALLED_RADIOIMAGE_TARGET := |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 25 | |
Jean-Baptiste Queru | 3f4e53a | 2010-09-15 11:59:33 -0700 | [diff] [blame^] | 26 | -include $(TARGET_DEVICE_DIR)/AndroidBoard.mk |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 27 | |
| 28 | # Generate a file that contains various information about the |
| 29 | # device we're building for. This file is typically packaged up |
| 30 | # with everything else. |
| 31 | # |
| 32 | # If the file "board-info.txt" appears in $(TARGET_DEVICE_DIR), |
| 33 | # it will be appended to the output file. |
| 34 | # |
| 35 | INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt |
| 36 | board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt) |
| 37 | $(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt) |
| 38 | $(call pretty,"Generated: ($@)") |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 39 | ifdef board_info_txt |
Ying Wang | 35b84b2 | 2009-12-03 11:25:47 -0800 | [diff] [blame] | 40 | $(hide) cat $< > $@ |
Brian Swetland | 2b80317 | 2009-11-25 13:43:25 -0800 | [diff] [blame] | 41 | else |
| 42 | $(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 43 | endif |