From: Felix Fietkau <nbd@openwrt.org>
Date: Sun, 12 Oct 2014 15:00:11 +0000 (+0000)
Subject: image.mk: call mkfs/prepare for the image builder
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7cbdc57b40b2ab3b9c53d85d5eedbba260b082ef;p=openwrt%2Fstaging%2Fansuel.git

image.mk: call mkfs/prepare for the image builder

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42874
---

diff --git a/include/image.mk b/include/image.mk
index e29bb001d5..307de27500 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -263,10 +263,12 @@ define BuildImage
 
     image_prepare: compile FORCE
 		$(call Image/Prepare)
-		$(call Image/mkfs/prepare)
   endif
 
-  install: image_prepare install-targets FORCE
+  mkfs_prepare: image_prepare
+	$(call Image/mkfs/prepare)
+
+  install: mkfs_prepare install-targets FORCE
 	$(call Image/BuildKernel)
 	$(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(call Image/BuildKernel/Initramfs))
 	$(call Image/InstallKernel)