Merge "Adding vendor_boot-test-harness.img"
This commit is contained in:
commit
23ae3dcbe1
2 changed files with 47 additions and 0 deletions
|
@ -2650,6 +2650,48 @@ endif # TARGET_NO_KERNEL
|
|||
endif # INSTALLED_BOOTIMAGE_TARGET
|
||||
endif # BOARD_BUILD_SYSTEM_ROOT_IMAGE is not true
|
||||
|
||||
ifeq ($(BUILDING_VENDOR_BOOT_IMAGE),true)
|
||||
ifeq ($(BUILDING_RAMDISK_IMAGE),true)
|
||||
# -----------------------------------------------------------------
|
||||
# vendor test harness ramdisk, which is a vendor ramdisk combined with
|
||||
# a test harness ramdisk.
|
||||
|
||||
INTERNAL_VENDOR_TEST_HARNESS_RAMDISK_TARGET := $(call intermediates-dir-for,PACKAGING,vendor_boot-test-harness)/vendor_ramdisk-test-harness.cpio$(RAMDISK_EXT)
|
||||
|
||||
# Exclude recovery files in the default vendor ramdisk if including a standalone
|
||||
# recovery ramdisk in vendor_boot.
|
||||
ifeq (true,$(BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT))
|
||||
ifneq (true,$(BOARD_INCLUDE_RECOVERY_RAMDISK_IN_VENDOR_BOOT))
|
||||
$(INTERNAL_VENDOR_TEST_HARNESS_RAMDISK_TARGET): $(INTERNAL_RECOVERY_RAMDISK_FILES_TIMESTAMP)
|
||||
$(INTERNAL_VENDOR_TEST_HARNESS_RAMDISK_TARGET): PRIVATE_ADDITIONAL_DIR := $(TARGET_RECOVERY_ROOT_OUT)
|
||||
endif
|
||||
endif
|
||||
|
||||
# The vendor test harness ramdisk combines vendor ramdisk and test harness ramdisk.
|
||||
$(INTERNAL_VENDOR_TEST_HARNESS_RAMDISK_TARGET): $(INTERNAL_VENDOR_RAMDISK_TARGET) $(INSTALLED_TEST_HARNESS_RAMDISK_TARGET)
|
||||
$(INTERNAL_VENDOR_TEST_HARNESS_RAMDISK_TARGET): $(MKBOOTFS) | $(COMPRESSION_COMMAND_DEPS)
|
||||
$(MKBOOTFS) -d $(TARGET_OUT) $(TARGET_VENDOR_RAMDISK_OUT) $(TARGET_TEST_HARNESS_RAMDISK_OUT) $(PRIVATE_ADDITIONAL_DIR) | $(COMPRESSION_COMMAND) > $@
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# vendor_boot-test-harness.img.
|
||||
INSTALLED_VENDOR_TEST_HARNESS_BOOTIMAGE_TARGET := $(PRODUCT_OUT)/vendor_boot-test-harness.img
|
||||
|
||||
ifneq ($(BOARD_AVB_VENDOR_BOOT_KEY_PATH),)
|
||||
$(INSTALLED_VENDOR_TEST_HARNESS_BOOTIMAGE_TARGET): $(AVBTOOL) $(BOARD_AVB_VENDOR_BOOT_TEST_KEY_PATH)
|
||||
endif
|
||||
|
||||
# Depends on vendor_boot.img and vendor_ramdisk-test-harness.cpio$(RAMDISK_EXT) to build the new vendor_boot-test-harness.img
|
||||
$(INSTALLED_VENDOR_TEST_HARNESS_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_VENDOR_BOOTIMAGE_TARGET)
|
||||
$(INSTALLED_VENDOR_TEST_HARNESS_BOOTIMAGE_TARGET): $(INTERNAL_VENDOR_TEST_HARNESS_RAMDISK_TARGET)
|
||||
$(INSTALLED_VENDOR_TEST_HARNESS_BOOTIMAGE_TARGET): $(INTERNAL_VENDOR_RAMDISK_FRAGMENT_TARGETS)
|
||||
$(call pretty,"Target vendor_boot test harness image: $@")
|
||||
$(MKBOOTIMG) $(INTERNAL_VENDOR_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --vendor_ramdisk $(INTERNAL_VENDOR_TEST_HARNESS_RAMDISK_TARGET) $(INTERNAL_VENDOR_RAMDISK_FRAGMENT_ARGS) --vendor_boot $@
|
||||
$(call assert-max-image-size,$@,$(BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE))
|
||||
$(if $(BOARD_AVB_VENDOR_BOOT_KEY_PATH),$(call test-key-sign-vendor-bootimage,$@))
|
||||
|
||||
endif # BUILDING_RAMDISK_IMAGE
|
||||
endif # BUILDING_VENDOR_BOOT_IMAGE
|
||||
|
||||
# Creates a compatibility symlink between two partitions, e.g. /system/vendor to /vendor
|
||||
# $1: from location (e.g $(TARGET_OUT)/vendor)
|
||||
# $2: destination location (e.g. /vendor)
|
||||
|
|
|
@ -1537,6 +1537,9 @@ vendorbootimage: $(INSTALLED_VENDOR_BOOTIMAGE_TARGET)
|
|||
.PHONY: vendorbootimage_debug
|
||||
vendorbootimage_debug: $(INSTALLED_VENDOR_DEBUG_BOOTIMAGE_TARGET)
|
||||
|
||||
.PHONY: vendorbootimage_test_harness
|
||||
vendorbootimage_test_harness: $(INSTALLED_VENDOR_TEST_HARNESS_BOOTIMAGE_TARGET)
|
||||
|
||||
.PHONY: vendorramdisk
|
||||
vendorramdisk: $(INSTALLED_VENDOR_RAMDISK_TARGET)
|
||||
|
||||
|
@ -1602,6 +1605,7 @@ droidcore-unbundled: $(filter $(HOST_OUT_ROOT)/%,$(modules_to_install)) \
|
|||
$(INSTALLED_VENDORIMAGE_TARGET) \
|
||||
$(INSTALLED_VENDOR_BOOTIMAGE_TARGET) \
|
||||
$(INSTALLED_VENDOR_DEBUG_BOOTIMAGE_TARGET) \
|
||||
$(INSTALLED_VENDOR_TEST_HARNESS_BOOTIMAGE_TARGET) \
|
||||
$(INSTALLED_VENDOR_RAMDISK_TARGET) \
|
||||
$(INSTALLED_VENDOR_DEBUG_RAMDISK_TARGET) \
|
||||
$(INSTALLED_ODMIMAGE_TARGET) \
|
||||
|
@ -1821,6 +1825,7 @@ else ifeq ($(TARGET_BUILD_UNBUNDLED),$(TARGET_BUILD_UNBUNDLED_IMAGE))
|
|||
$(INSTALLED_TEST_HARNESS_RAMDISK_TARGET) \
|
||||
$(INSTALLED_TEST_HARNESS_BOOTIMAGE_TARGET) \
|
||||
$(INSTALLED_VENDOR_DEBUG_BOOTIMAGE_TARGET) \
|
||||
$(INSTALLED_VENDOR_TEST_HARNESS_BOOTIMAGE_TARGET) \
|
||||
$(INSTALLED_VENDOR_RAMDISK_TARGET) \
|
||||
$(INSTALLED_VENDOR_DEBUG_RAMDISK_TARGET) \
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue