m5: Allow using a u-boot with console
authorNolen Johnson <johnsonnolen@gmail.com>
Wed, 8 May 2024 23:06:25 +0000 (19:06 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Wed, 8 May 2024 23:07:45 +0000 (19:07 -0400)
Change-Id: Iad732a6812eeb12e248df324ef81028148910b23

factory.mk

index 590e7b715445ce52bebd2fe00a2c13c4e102a389..90906e7af588e604017e735a947e7171ec4932d1 100644 (file)
@@ -56,6 +56,8 @@ $(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)
+        $(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