From: Jan Altensen Date: Sun, 1 Aug 2021 22:03:28 +0000 (+0200) Subject: odroidc4: factory: also search in vendor/firmware for the bootloader X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f268550b41c20709983e8b28340270cc7d61c91;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_hardkernel_odroidc4.git odroidc4: factory: also search in vendor/firmware for the bootloader Change-Id: I99ae1d625565e66ccdcaeeaf58fff74e0963086c --- diff --git a/factory.mk b/factory.mk index 2f7d93f..950cd53 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/odroidc4/bootloader.img)","") + $(hide) $(call aml-symlink-file, vendor/firmware/odroidc4/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)