[openwrt/openwrt] mvebu: cortex-a53: respect DEVICE_packages for Methode devices
LEDE Commits
lede-commits at lists.infradead.org
Thu Feb 12 07:59:56 PST 2026
robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/ac7c25ee92d808910a04231cf33660c754396556
commit ac7c25ee92d808910a04231cf33660c754396556
Author: Robert Marko <robert.marko at sartura.hr>
AuthorDate: Mon Feb 9 12:33:20 2026 +0100
mvebu: cortex-a53: respect DEVICE_packages for Methode devices
Use the added support for generating per device targz rootfs so that images
generated for Methode devices when CONFIG_TARGET_MULTI_PROFILE and
CONFIG_TARGET_PER_DEVICE_ROOTFS are set, we actually get the targz rootfs
that respects DEVICE_PACKAGES.
Currently, buildbot generated images have no networking, LM75 nor I2C
working, as the generated images do not include required kmods that are
listed in DEVICE_PACKAGES.
While at it, there is no need for tar to run in verbose mode.
Fixes: 7dff6a8c89e3 ("mvebu: uDPU: add sysupgrade support")
Signed-off-by: Robert Marko <robert.marko at sartura.hr>
(cherry picked from commit ef922657724957c9ba8926c4a2472de20efdd8b5)
---
target/linux/mvebu/image/Makefile | 8 +++-----
target/linux/mvebu/image/cortexa53.mk | 1 +
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile
index 1dc62d244f..c356e644e9 100644
--- a/target/linux/mvebu/image/Makefile
+++ b/target/linux/mvebu/image/Makefile
@@ -139,14 +139,12 @@ endef
define Build/uDPU-firmware
(rm -fR $@-fw; mkdir -p $@-fw)
$(CP) $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-initramfs.itb $@-fw/recovery.itb
+ $(CP) $(IMAGE_ROOTFS) $@-fw/rootfs.tgz
$(CP) $@-boot.scr $@-fw/boot.scr
- $(TAR) -cvzp --numeric-owner --owner=0 --group=0 --sort=name \
- $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
- -f $@-fw/rootfs.tgz -C $(TARGET_DIR) .
- $(TAR) -cvzp --numeric-owner --owner=0 --group=0 --sort=name \
+ $(TAR) -czp --numeric-owner --owner=0 --group=0 --sort=name \
$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
-f $@-fw/boot.tgz -C $@.boot .
- $(TAR) -cvzp --numeric-owner --owner=0 --group=0 --sort=name \
+ $(TAR) -czp --numeric-owner --owner=0 --group=0 --sort=name \
$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
-f $(KDIR_TMP)/$(DEVICE_IMG_PREFIX)-firmware.tgz -C $@-fw .
endef
diff --git a/target/linux/mvebu/image/cortexa53.mk b/target/linux/mvebu/image/cortexa53.mk
index 25ec3d3f81..f5cbd8a70b 100644
--- a/target/linux/mvebu/image/cortexa53.mk
+++ b/target/linux/mvebu/image/cortexa53.mk
@@ -103,6 +103,7 @@ define Device/methode_udpu
KERNEL_INITRAMFS_SUFFIX := .itb
DEVICE_PACKAGES += f2fs-tools fdisk kmod-i2c-pxa kmod-hwmon-lm75 kmod-dsa-mv88e6xxx
DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(2)
+ FILESYSTEMS := targz
IMAGES := firmware.tgz
IMAGE/firmware.tgz := boot-scr | boot-img-ext4 | uDPU-firmware | append-metadata
BOOT_SCRIPT := udpu
More information about the lede-commits
mailing list