From 10b23e8cb2b9ff72e8686aa490b6d7c5cc2c29be Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Mon, 2 Aug 2021 00:03:28 +0200 Subject: [PATCH] radxa0: factory: also search in vendor/firmware for the bootloader Change-Id: I99ae1d625565e66ccdcaeeaf58fff74e0963086c --- factory.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/factory.mk b/factory.mk index e963cce..266090d 100644 --- a/factory.mk +++ b/factory.mk @@ -35,10 +35,12 @@ NEEDED_IMAGES := \ $(INSTALLED_AML_UPGRADE_PACKAGE_TARGET): $(addprefix $(PRODUCT_OUT)/,$(NEEDED_IMAGES)) $(AML_IMAGE_TOOL) $(hide) mkdir -p $(PRODUCT_UPGRADE_OUT) -ifeq ("$(wildcard $(FACTORY_PATH)/u-boot.bin)","") - $(error "no u-boot.bin found in $(FACTORY_PATH)") -else +ifneq ("$(wildcard $(FACTORY_PATH)/u-boot.bin)","") $(hide) $(call aml-symlink-file, $(FACTORY_PATH)/u-boot.bin) +else ifneq ("$(wildcard vendor/firmware/radxa0/bootloader.img)","") + $(hide) $(call aml-symlink-file, vendor/firmware/radxa0/bootloader.img, u-boot.bin) +else + $(error "no u-boot.bin found in $(FACTORY_PATH)") endif $(hide) $(call aml-symlink-file, $(PRODUCT_OUT)/logo.img) $(hide) $(call aml-symlink-file, $(FACTORY_PATH)/aml_sdc_burn.ini) -- 2.20.1