mvebu: fix build failures when initramfs is not selected
[openwrt/openwrt.git] / target / linux / mvebu / image / Makefile
index af29c2b..1e4a791 100644 (file)
@@ -30,7 +30,9 @@ endef
 
 define Image/BuildKernel
        $(foreach dtb,$(TARGET_DTBS),$(call Image/Build/DTB,$(dtb)))
+ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
        $(call Image/Build/Initramfs)
+ endif
 endef
 
 define Image/Build/squashfs