ramips: make Genexis EX400 factory image dependent on initramfs
authorDavid Bauer <[email protected]>
Tue, 29 Apr 2025 17:31:09 +0000 (19:31 +0200)
committerDavid Bauer <[email protected]>
Thu, 1 May 2025 12:58:54 +0000 (14:58 +0200)
The factory image generation for the Genexis EX400 image currently fails
if CONFIG_TARGET_ROOTFS_INITRAMFS is disabled.

Create the factory image only if said config option is enabled to avoid
failing builds.

Signed-off-by: David Bauer <[email protected]>
(cherry picked from commit 4e83d5ec26e297380906313283b2eeaef2a5f5fe)

target/linux/ramips/image/mt7621.mk

index 7674d0274d371319bdb0d918feeac3c4a39e8a32..d8641223a3a5e841881bf71bf84994a6bb1c5f6d 100644 (file)
@@ -1389,9 +1389,11 @@ define Device/genexis_pulse-ex400/common
     --log-lebs=2 --space-fixup --squash-uids
   KERNEL := kernel-bin | lzma | uImage lzma
   KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
+ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
   IMAGES += factory.bin
   IMAGE/factory.bin := append-image-stage initramfs-kernel.bin | \
        inteno-bootfs | inteno-y3-header EX400 | append-md5sum-ascii-salted
+endif
   IMAGE/sysupgrade.bin := append-kernel | inteno-bootfs | \
     sysupgrade-tar kernel=$$$$@ | check-size | append-metadata
   DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(2)