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)
+ $(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
$(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)
+ $(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-upgrade-file, vendor/amlogic/odroidc4/radio/bootloader.img, u-boot.bin)
else