Android.mk revision 652654927da52f9d1d0e75b69be44701686f79e7
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 the file "board-info.txt" appears in $(TARGET_DEVICE_DIR),
30# it will be appended to the output file.
31#
32INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
33board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
34$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
35	$(call pretty,"Generated: ($@)")
36ifdef board_info_txt
37	$(hide) cat $< > $@
38else
39	$(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
40endif
41