Skip to content

Commit cc1b909

Browse files
committed
ramips: make Genexis EX400 factory image dependent on initramfs
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 4e83d5e)
1 parent 0b392b9 commit cc1b909

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

target/linux/ramips/image/mt7621.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,9 +1389,11 @@ define Device/genexis_pulse-ex400/common
13891389
--log-lebs=2 --space-fixup --squash-uids
13901390
KERNEL := kernel-bin | lzma | uImage lzma
13911391
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
1392+
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
13921393
IMAGES += factory.bin
13931394
IMAGE/factory.bin := append-image-stage initramfs-kernel.bin | \
13941395
inteno-bootfs | inteno-y3-header EX400 | append-md5sum-ascii-salted
1396+
endif
13951397
IMAGE/sysupgrade.bin := append-kernel | inteno-bootfs | \
13961398
sysupgrade-tar kernel=$$$$@ | check-size | append-metadata
13971399
DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(2)

0 commit comments

Comments
 (0)