m5: 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:02:39 +0000 (13:02 -0400)
Change-Id: Id560e20933ea4458a377eeb785822bb0e1c3bfdc

factory.mk

index cdc932cb788297b3e175c1134d3b9456f753687b..bec19859e1761cffe17976fd3e7719024e87f3df 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/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)
@@ -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/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)