qoriq: use KERNEL_SUFFIX in Build/sdcard-img
authorStijn Tintel <stijn@linux-ipv6.be>
Tue, 26 Apr 2022 15:18:20 +0000 (18:18 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
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 <stijn@linux-ipv6.be>
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 $@.boot
         mkdir -p $@.boot
-        $(CP) $(KDIR)/$(DEVICE_NAME)-kernel.bin $@.boot
+        $(CP) $(KDIR)/$(DEVICE_NAME)$(KERNEL_SUFFIX) $@.boot
         $(if $(DEVICE_DTS),\
                 $(foreach dtb,$(DEVICE_DTS),$(CP) $(KDIR)/image-$(dtb).dtb $@.boot), \
                 $(CP) $(KDIR)/image-/*.dtb $@.boot)