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)
+ $(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
$(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/radxa0/radio/bootloader-console.img, u-boot.bin)
else ifneq ("$(wildcard vendor/amlogic/radxa0/radio/bootloader.img)","")
$(hide) $(call aml-copy-upgrade-file, vendor/amlogic/radxa0/radio/bootloader.img, u-boot.bin)
else