9296f09277
Adds a python script which checks the version of each radio image added with the new add-radio-file-checked macro against a file containing sha-1 -> version string mappings and the contents of board-info.txt, so that the build can fail if board-info.txt and the OTA images are out of sync. Change-Id: Icb61dc2adefc240ced9059941582c23b629089c0
45 lines
1.4 KiB
Makefile
45 lines
1.4 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
|
|
|
|
-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 TARGET_BOARD_INFO_FILE (which can be set in BoardConfig.mk) is
|
|
# defined, it is used, otherwise board-info.txt is looked for in
|
|
# $(TARGET_DEVICE_DIR).
|
|
#
|
|
INSTALLED_ANDROID_INFO_TXT_TARGET := $(PRODUCT_OUT)/android-info.txt
|
|
board_info_txt := $(TARGET_BOARD_INFO_FILE)
|
|
ifndef board_info_txt
|
|
board_info_txt := $(wildcard $(TARGET_DEVICE_DIR)/board-info.txt)
|
|
endif
|
|
$(INSTALLED_ANDROID_INFO_TXT_TARGET): $(board_info_txt)
|
|
$(hide) build/tools/check_radio_versions.py $< $(BOARD_INFO_CHECK)
|
|
$(call pretty,"Generated: ($@)")
|
|
ifdef board_info_txt
|
|
$(hide) grep -v '#' $< > $@
|
|
else
|
|
$(hide) echo "board=$(TARGET_BOOTLOADER_BOARD_NAME)" > $@
|
|
endif
|