3f4e53aa25
A long time ago, Android.mk in devices had the same semantics as the current AndroidBoard.mk. This eventually caused problems (as it didn't allow having a true Android.mk there) so we switched, and left an error behind in case people were still using the old semantics (i.e. having an Android.mk but no AndroidBoard.mk). Fast forward a few years to the present: we're finding that we want to get rid of AndroidBoard.mk, so there are devices that will have Android.mk but not AndroidBoard.mk. As this is becoming a legitimate case, the error for it is removed, and the include for AndroidBoard.mk is made optional. Change-Id: Ic683419d4aaab122259715e0112660d2a6359e91
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
#
|
|
# Set up product-global definitions and include product-specific rules.
|
|
#
|
|
|
|
ifneq ($(strip $(TARGET_NO_BOOTLOADER)),true)
|
|
INSTALLED_BOOTLOADER_MODULE := $(PRODUCT_OUT)/bootloader
|
|
ifeq ($(strip $(TARGET_BOOTLOADER_IS_2ND)),true)
|
|
INSTALLED_2NDBOOTLOADER_TARGET := $(PRODUCT_OUT)/2ndbootloader
|
|
else
|
|
INSTALLED_2NDBOOTLOADER_TARGET :=
|
|
endif
|
|
else
|
|
INSTALLED_BOOTLOADER_MODULE :=
|
|
INSTALLED_2NDBOOTLOADER_TARGET :=
|
|
endif # TARGET_NO_BOOTLOADER
|
|
|
|
ifneq ($(strip $(TARGET_NO_KERNEL)),true)
|
|
INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel
|
|
else
|
|
INSTALLED_KERNEL_TARGET :=
|
|
endif
|
|
|
|
# Use the add-radio-file function to add values to this variable.
|
|
INSTALLED_RADIOIMAGE_TARGET :=
|
|
|
|
-include $(TARGET_DEVICE_DIR)/AndroidBoard.mk
|
|
|
|
# Generate a file that contains various information about the
|
|
# device we're building for. This file is typically packaged up
|
|
# with everything else.
|
|
#
|
|
# If the file "board-info.txt" appears in $(TARGET_DEVICE_DIR),
|
|
# it will be appended to the output file.
|
|
#
|
|
INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
|
|
board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
|
|
$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
|
|
$(call pretty,"Generated: ($@)")
|
|
ifdef board_info_txt
|
|
$(hide) cat $< > $@
|
|
else
|
|
$(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
|
|
endif
|