odroidc4: 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:08:38 +0000 (19:08 -0400)
Change-Id: Iad732a6812eeb12e248df324ef81028148910b23

factory.mk

index 7d3993e519495b398ba5ca497d2aef48daff56f8..856762ba90cae1c3a123b9187c95a2892499f7b3 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/odroidc4/radio/bootloader-console.img, u-boot.bin)
 else ifneq ("$(wildcard vendor/amlogic/odroidc4/radio/bootloader.img)","")
        $(hide) $(call aml-copy-install-file, vendor/amlogic/odroidc4/radio/bootloader.img, u-boot.bin)
 else