Ver código fonte

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]>
David Bauer 8 meses atrás
pai
commit
4e83d5ec26
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      target/linux/ramips/image/mt7621.mk

+ 2 - 0
target/linux/ramips/image/mt7621.mk

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