From 425e2c1d960da42e74de7575e7b61ce7fa72e23f Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@nbd.name>
Date: Fri, 17 Jun 2016 19:55:27 +0200
Subject: [PATCH] image.mk: run LegacyDevice prepare once instead of once per
 filesystem

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 include/image.mk | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/image.mk b/include/image.mk
index 7b579855bc..669ff04313 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -463,9 +463,7 @@ define LegacyDevice/Build
   .PHONY: legacy-image-prepare-$(1) legacy-image-$(1)
 
   legacy-image-prepare-$(1):
-	$(foreach fs,$(TARGET_FILESYSTEMS),
-		$$(call Image/Prepare/Profile,$(1),$(fs))
-	)
+	$$(call Image/Prepare/Profile,$(1))
 
   legacy-image-$(1):
 	$(foreach fs,$(TARGET_FILESYSTEMS),