xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 48b2cdbcd761105e8ebad412fcbf23db1ac4ef7c Mon Sep 17 00:00:00 2001
2From: Saul Wold <sgw@linux.intel.com>
3Date: Sun, 9 Mar 2014 15:22:15 +0200
4Subject: [PATCH 1/3] Fix parallel make failure for archives
5
6Upstream-Status: Pending
7
8The lib and gnuefi makefiles were using the lib.a() form which compiles
9and ar's as a pair instead of compiling all and then ar'ing which can
10parallelize better. This was resulting in build failures on larger values
11of -j.
12
13See http://www.chemie.fu-berlin.de/chemnet/use/info/make/make_toc.html#TOC105
14for details.
15
16Signed-off-by: Saul Wold <sgw@linux.intel.com>
17Signed-off-by: Darren Hart <dvhart@linux.intel.com>
18[Rebased for 3.0.6]
19Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
20[Rebased for 3.0.8]
21Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
22
23diff --git a/lib/Makefile b/lib/Makefile
24index 0e6410d..048751a 100644
25--- a/lib/Makefile
26+++ b/lib/Makefile
27@@ -75,7 +75,7 @@ libsubdirs:
28 	for sdir in $(SUBDIRS); do mkdir -p $$sdir; done
29
30 libefi.a: $(OBJS)
31-	$(AR) $(ARFLAGS) $@ $^
32+	$(AR) $(ARFLAGS) $@ $(OBJS)
33
34 clean:
35 	rm -f libefi.a *~ $(OBJS) */*.o
36--
372.7.4
38
39