From 6a57a1fbdb26ac24e940b19a801ecdaa64038e3d Mon Sep 17 00:00:00 2001
From: Gabor Juhos <juhosg@openwrt.org>
Date: Tue, 13 Mar 2012 17:29:40 +0000
Subject: [PATCH] imagebuilder: fix parallel building (closes #11117)

SVN-Revision: 30927
---
 target/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/target/Makefile b/target/Makefile
index ff547f606f..81ec60234a 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -10,7 +10,10 @@ $(curdir)/builddirs:=linux sdk imagebuilder toolchain
 $(curdir)/builddirs-default:=linux
 $(curdir)/builddirs-install:=linux $(if $(CONFIG_SDK),sdk) $(if $(CONFIG_IB),imagebuilder) $(if $(CONFIG_MAKE_TOOLCHAIN),toolchain)
 
-$(curdir)/imagebuilder/prepare:=$(curdir)/linux/install
+$(curdir)/imagebuilder/compile:=$(curdir)/linux/install
+
+# prerequisites for the individual targets
+$(curdir)//install = $(1)/compile
 
 $(eval $(call stampfile,$(curdir),target,prereq,.config))
 $(eval $(call stampfile,$(curdir),target,compile,$(TMP_DIR)/.build))
-- 
GitLab