blob: 58164f6f92768eb33a2d4b26d7c1a07015b17e23 [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
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
Jean-Baptiste Queru3f4e53a2010-09-15 11:59:33 -070023-include $(TARGET_DEVICE_DIR)/AndroidBoard.mk
The Android Open Source Project88b60792009-03-03 19:28:42 -080024
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 the file "board-info.txt" appears in $(TARGET_DEVICE_DIR),
Ying Wangdc31d762011-06-13 17:36:08 -070030# it will be used; otherwise TARGET_BOARD_INFO_FILE is used, which
31# can be set in BoardConfig.mk.
The Android Open Source Project88b60792009-03-03 19:28:42 -080032#
33INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
34board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
Ying Wangdc31d762011-06-13 17:36:08 -070035ifndef board_info_txt
36board_info_txt := $(TARGET_BOARD_INFO_FILE)
37endif
The Android Open Source Project88b60792009-03-03 19:28:42 -080038$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
39 $(call pretty,"Generated: ($@)")
The Android Open Source Project88b60792009-03-03 19:28:42 -080040ifdef board_info_txt
Ying Wang35b84b22009-12-03 11:25:47 -080041 $(hide) cat $< > $@
Brian Swetland2b803172009-11-25 13:43:25 -080042else
43 $(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
The Android Open Source Project88b60792009-03-03 19:28:42 -080044endif