m5: factory: also search in vendor/firmware for the bootloader
authorJan Altensen <info@stricted.net>
Sun, 1 Aug 2021 22:03:28 +0000 (00:03 +0200)
committerJan Altensen <info@stricted.net>
Sun, 1 Aug 2021 22:04:07 +0000 (00:04 +0200)
Change-Id: I99ae1d625565e66ccdcaeeaf58fff74e0963086c

factory.mk

index fc5d7f2ca1126d4b2ab428780ca25ce7dbe95d0a..158614252bf3327d5a75746c17a004dc019b85c2 100644 (file)
@@ -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/m5/bootloader.img)","")
+       $(hide) $(call aml-symlink-file, vendor/firmware/m5/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)