radxa0: Guard cosnole U-boot with different flag
authorNolen Johnson <johnsonnolen@gmail.com>
Thu, 9 May 2024 17:00:18 +0000 (13:00 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Thu, 9 May 2024 17:01:57 +0000 (17:01 +0000)
Change-Id: Id560e20933ea4458a377eeb785822bb0e1c3bfdc

factory.mk

index dbd59a73d69b5265749ed9ac7258924b544478ca..cac2c2df93b628eca67d38fe3396c33e5e44efff 100644 (file)
@@ -56,7 +56,7 @@ $(INSTALLED_AML_INSTALL_PACKAGE_TARGET): $(addprefix $(PRODUCT_OUT)/,$(INSTALL_I
        $(hide) mkdir -p $(PRODUCT_INSTALL_OUT)
 ifneq ("$(wildcard $(FACTORY_PATH)/u-boot.bin)","")
        $(hide) $(call aml-copy-install-file, $(FACTORY_PATH)/u-boot.bin)
-else ifeq ($(WITH_CONSOLE),true)
+else ifeq ($(WITH_CONSOLE_BL),true)
        $(hide) $(call aml-copy-install-file, vendor/amlogic/radxa0/radio/bootloader-console.img, u-boot.bin)
 else ifneq ("$(wildcard vendor/amlogic/radxa0/radio/bootloader.img)","")
        $(hide) $(call aml-copy-install-file, vendor/amlogic/radxa0/radio/bootloader.img, u-boot.bin)
@@ -85,7 +85,7 @@ $(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)
+else ifeq ($(WITH_CONSOLE_BL),true)
        $(hide) $(call aml-copy-install-file, vendor/amlogic/radxa0/radio/bootloader-console.img, u-boot.bin)
 else ifneq ("$(wildcard vendor/amlogic/radxa0/radio/bootloader.img)","")
        $(hide) $(call aml-copy-upgrade-file, vendor/amlogic/radxa0/radio/bootloader.img, u-boot.bin)