[openwrt/openwrt] mvebu: move FitImage recipe to generic image Makefile

LEDE Commits lede-commits at lists.infradead.org
Thu Feb 19 02:57:27 PST 2026


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f03bb44a08be2f1fb6bc82cfacff3fd08d7baa94

commit f03bb44a08be2f1fb6bc82cfacff3fd08d7baa94
Author: Robert Marko <robert.marko at sartura.hr>
AuthorDate: Tue Feb 17 13:00:04 2026 +0100

    mvebu: move FitImage recipe to generic image Makefile
    
    Move the Device/FitImage recipe to the generic image Makefile to avoid
    duplicating it for other subtargets.
    
    Will be used for uDPU/eDPU.
    
    Signed-off-by: Robert Marko <robert.marko at sartura.hr>
---
 target/linux/mvebu/image/Makefile     | 6 ++++++
 target/linux/mvebu/image/cortexa72.mk | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile
index c356e644e9..8c85dedd35 100644
--- a/target/linux/mvebu/image/Makefile
+++ b/target/linux/mvebu/image/Makefile
@@ -149,6 +149,12 @@ define Build/uDPU-firmware
 		-f $(KDIR_TMP)/$(DEVICE_IMG_PREFIX)-firmware.tgz -C $@-fw .
 endef
 
+define Device/FitImage
+  KERNEL_SUFFIX := -uImage.itb
+  KERNEL = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
+  KERNEL_NAME := Image
+endef
+
 define Device/Default
   PROFILES := Default
   DEVICE_DTS = $$(SOC)-$(lastword $(subst _, ,$(1)))
diff --git a/target/linux/mvebu/image/cortexa72.mk b/target/linux/mvebu/image/cortexa72.mk
index a60c3884cd..7d7fe49490 100644
--- a/target/linux/mvebu/image/cortexa72.mk
+++ b/target/linux/mvebu/image/cortexa72.mk
@@ -2,12 +2,6 @@ define Build/append-bootscript
 	cat $@-boot.scr >> $@
 endef
 
-define Device/FitImage
-  KERNEL_SUFFIX := -uImage.itb
-  KERNEL = kernel-bin | gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
-  KERNEL_NAME := Image
-endef
-
 define Device/UbiFit
   KERNEL_IN_UBI := 1
   IMAGES := factory.ubi sysupgrade.bin




More information about the lede-commits mailing list