From 9eb613a0ebe3052009c5e05de67235f9e6f28bd3 Mon Sep 17 00:00:00 2001
From: Bruce Ashfield <bruce.ashfield@windriver.com>
Date: Tue, 10 Jun 2008 21:58:35 -0400
Subject: [PATCH] arm: serialize build targets

The image targets need to trigger after we've build all their
dependencies. To do this we add .NOTPARALLEL and  ensure that
the image targets are not built in parallel.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 61f6ccc19cfa..4d2ea05c7394 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -326,6 +326,9 @@ PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS)
 bootpImage uImage: zImage
 zImage: Image
 
+# These targets cannot be built in parallel
+.NOTPARALLEL: $(BOOT_TARGETS)
+
 $(BOOT_TARGETS): vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
 	@$(kecho) '  Kernel: $(boot)/$@ is ready'
-- 
2.10.1

