blob: 64e3a7458c3c0b61f9f0994cb8aa71a77e8ad435 [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
23ifneq ($(strip $(TARGET_NO_RADIOIMAGE)),true)
24 INSTALLED_RADIOIMAGE_TARGET := $(PRODUCT_OUT)/radio.img
25else
26 INSTALLED_RADIOIMAGE_TARGET :=
27endif
28
29ifeq (,$(wildcard $(TARGET_DEVICE_DIR)/AndroidBoard.mk))
30 ifeq (,$(wildcard $(TARGET_DEVICE_DIR)/Android.mk))
31 $(error Missing "$(TARGET_DEVICE_DIR)/AndroidBoard.mk")
32 else
33 # TODO: Remove this check after people have had a chance to switch,
34 # after April 2009.
35 $(error Please rename "$(TARGET_DEVICE_DIR)/Android.mk" to "$(TARGET_DEVICE_DIR)/AndroidBoard.mk")
36 endif
37endif
38include $(TARGET_DEVICE_DIR)/AndroidBoard.mk
39
40# Generate a file that contains various information about the
41# device we're building for. This file is typically packaged up
42# with everything else.
43#
44# If the file "board-info.txt" appears in $(TARGET_DEVICE_DIR),
45# it will be appended to the output file.
46#
47INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
48board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
49$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
50 $(call pretty,"Generated: ($@)")
51 $(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
52ifdef board_info_txt
53 $(hide) cat $< >> $@
54endif