radxa0: 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:06:25 +0000 (19:06 -0400)
Change-Id: Iad732a6812eeb12e248df324ef81028148910b23

factory.mk

index 1c91df3ee2b29866afd8c54a7286f5480143d2f6..1f52d77f2b612666730cf69694eec1f98cf11623 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/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)
 else