m5: Allow console bootloader in upgrade images
authorNolen Johnson <johnsonnolen@gmail.com>
Wed, 8 May 2024 23:20:31 +0000 (19:20 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Wed, 8 May 2024 23:23:58 +0000 (23:23 +0000)
Change-Id: Ifbd89c96cf03e0c83fd464c0cf86df432d5b1ba1

factory.mk

index 90906e7af588e604017e735a947e7171ec4932d1..cdc932cb788297b3e175c1134d3b9456f753687b 100644 (file)
@@ -57,7 +57,7 @@ $(INSTALLED_AML_INSTALL_PACKAGE_TARGET): $(addprefix $(PRODUCT_OUT)/,$(INSTALL_I
 ifneq ("$(wildcard $(FACTORY_PATH)/u-boot.bin)","")
        $(hide) $(call aml-copy-install-file, $(FACTORY_PATH)/u-boot.bin)
 else ifeq ($(WITH_CONSOLE),true)
-        $(hide) $(call aml-copy-install-file, vendor/amlogic/m5/radio/bootloader-console.img, u-boot.bin)
+       $(hide) $(call aml-copy-install-file, vendor/amlogic/m5/radio/bootloader-console.img, u-boot.bin)
 else ifneq ("$(wildcard vendor/amlogic/m5/radio/bootloader.img)","")
        $(hide) $(call aml-copy-install-file, vendor/amlogic/m5/radio/bootloader.img, u-boot.bin)
 else
@@ -85,6 +85,8 @@ $(INSTALLED_AML_UPGRADE_PACKAGE_TARGET): $(addprefix $(PRODUCT_OUT)/,$(UPGRADE_I
        $(hide) mkdir -p $(PRODUCT_UPGRADE_OUT)
 ifneq ("$(wildcard $(FACTORY_PATH)/u-boot.bin)","")
        $(hide) $(call aml-copy-upgrade-file, $(FACTORY_PATH)/u-boot.bin)
+else ifeq ($(WITH_CONSOLE),true)
+       $(hide) $(call aml-copy-install-file, vendor/amlogic/m5/radio/bootloader-console.img, u-boot.bin)
 else ifneq ("$(wildcard vendor/amlogic/m5/radio/bootloader.img)","")
        $(hide) $(call aml-copy-upgrade-file, vendor/amlogic/m5/radio/bootloader.img, u-boot.bin)
 else