ar71xx: only invoke Initramfs building when enabled
authorFlorian Fainelli <florian@openwrt.org>
Tue, 2 Jul 2013 10:43:31 +0000 (10:43 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 2 Jul 2013 10:43:31 +0000 (10:43 +0000)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 37129

target/linux/ar71xx/image/Makefile

index 22b6f729f4f8259f0adbe79377553e253245aa82..6f23263dbd3d4f6590260d33f068e9a433036cce 100644 (file)
@@ -199,9 +199,9 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
        $(call MkuImage,gzip,,$(KDIR)/vmlinux-initramfs.bin.gz,$(UIMAGE)-initramfs-gzip.bin)
        $(call MkuImage,lzma,,$(KDIR)/vmlinux-initramfs.bin.lzma,$(UIMAGE)-initramfs-lzma.bin)
        cp $(KDIR)/loader-generic.elf $(VMLINUX)-initramfs-lzma.elf
+       $(call Image/Build/Initramfs)
 endif
        -mkdir -p $(KDIR_TMP)
-       $(call Image/Build/Initramfs)
 endef
 
 define Image/Build/WRT400N