ipq95xx: Copy FIT images in the target directory

In addition of copying the SWUpdate image, also copy the FIT images of U-Boot,
the Linux kernel and the rootfs generated during the build.
FIT images can be useful for upgrades in U-Boot.
Also rename images using `DEVICE_IMG_PREFIX` variable as a prefix.

Implements: PCF-1875
Tracked-by: FEAT-29

Signed-off-by: Paul HENRYS <paul.henrys_ext@softathome.com>
This commit is contained in:
Paul HENRYS
2025-11-18 11:00:16 +01:00
parent f8fb0d64e1
commit a5bfd46fa1

View File

@@ -26,7 +26,11 @@ define Build/swuimage
fi
cd $(STAGING_DIR_HOST)/imagegenerator && ./scripts/gen_binman.sh
cd $(STAGING_DIR_HOST)/imagegenerator && ./scripts/gen_swu.sh
cp $(STAGING_DIR_HOST)/imagegenerator/build/image.swu $(BIN_DIR)/prplos-$(CONFIG_TARGET_BOARD)-$(CONFIG_TARGET_SUBTARGET)-image.swu
for image in u-boot.itb kernel.itb rootfs.itb image.swu ; do \
if [ -f $(STAGING_DIR_HOST)/imagegenerator/build/$${image} ] ; then \
cp $(STAGING_DIR_HOST)/imagegenerator/build/$${image} $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$${image} ; \
fi ; \
done
endef
define Device/SwuImage