qoriq: use KERNEL_SUFFIX in Build/sdcard-img
authorStijn Tintel <[email protected]>
Tue, 26 Apr 2022 15:18:20 +0000 (18:18 +0300)
committerStijn Tintel <[email protected]>
Tue, 14 Jun 2022 09:03:55 +0000 (12:03 +0300)
Use the KERNEL_SUFFIX variable in Build/sdcard-img, rather than
using hardcoded "-kernel.bin", to allow overriding KERNEL_SUFFIX for a
device.

Fixes: 080a769b4da8 ("qoriq: new target")
Signed-off-by: Stijn Tintel <[email protected]>
target/linux/qoriq/image/Makefile

index a3c8dd38c24872cdf925ef9d27b58b2aeb984173..ec46e4d54321f5c7f44dd1d743596ee878201dfc 100644 (file)
@@ -8,7 +8,7 @@ SQUASHFSCOMP := xz $(LZMA_XZ_OPTIONS)
 define Build/sdcard-img
         rm -fR [email protected]
         mkdir -p [email protected]
-        $(CP) $(KDIR)/$(DEVICE_NAME)-kernel.bin [email protected]
+        $(CP) $(KDIR)/$(DEVICE_NAME)$(KERNEL_SUFFIX) [email protected]
         $(if $(DEVICE_DTS),\
                 $(foreach dtb,$(DEVICE_DTS),$(CP) $(KDIR)/image-$(dtb).dtb [email protected]), \
                 $(CP) $(KDIR)/image-/*.dtb [email protected])