image.mk: call mkfs/prepare for the image builder
authorFelix Fietkau <nbd@openwrt.org>
Sun, 12 Oct 2014 15:00:11 +0000 (15:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 12 Oct 2014 15:00:11 +0000 (15:00 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42874

include/image.mk

index e29bb001d58e7fddaa72be9abf2bd362d528f9ef..307de27500f03f1e4489ca9be30c246c4b2f17af 100644 (file)
@@ -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)