aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/gnu-efi/gnu-efi
diff options
context:
space:
mode:
authorBrendan Le Foll <brendan.le.foll@intel.com>2015-04-14 14:52:51 +0100
committerBrendan Le Foll <brendan.le.foll@intel.com>2015-04-14 14:52:51 +0100
commit49291f6369c8eb03b74409a8b1392949edf431ca (patch)
treeb6f2d86adfb1442278d9d1a019ddb2141d62dec7 /recipes-bsp/gnu-efi/gnu-efi
parent101a920a893a5dcff662d544df8fbd4678112e5a (diff)
downloadmeta-intel-quark-49291f6369c8eb03b74409a8b1392949edf431ca.tar.gz
meta-intel-quark-49291f6369c8eb03b74409a8b1392949edf431ca.tar.bz2
meta-intel-quark-49291f6369c8eb03b74409a8b1392949edf431ca.zip
gnu-efi: add version 3.0.0u to quark BSP since grub 0.97 + patch requires it
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Diffstat (limited to 'recipes-bsp/gnu-efi/gnu-efi')
-rw-r--r--recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch48
-rw-r--r--recipes-bsp/gnu-efi/gnu-efi/parallel-make.patch22
2 files changed, 70 insertions, 0 deletions
diff --git a/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch b/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch
new file mode 100644
index 0000000..e5b47c1
--- /dev/null
+++ b/recipes-bsp/gnu-efi/gnu-efi/parallel-make-archives.patch
@@ -0,0 +1,48 @@
+Fix parallel make failure for archives
+
+Upstream-Status: Pending
+
+The lib and gnuefi makefiles were using the lib.a() form which compiles
+and ar's as a pair instead of compiling all and then ar'ing which can
+parallelize better. This was resulting in build failures on larger values
+of -j.
+
+See http://www.chemie.fu-berlin.de/chemnet/use/info/make/make_toc.html#TOC105
+for details.
+
+Signed-off-by: Saul Wold <sgw@linux.intel.com>
+Signed-off-by: Darren Hart <dvhart@linux.intel.com>
+---
+---
+ gnuefi/Makefile | 3 ++-
+ lib/Makefile | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+Index: gnu-efi-3.0/lib/Makefile
+===================================================================
+--- gnu-efi-3.0.orig/lib/Makefile
++++ gnu-efi-3.0/lib/Makefile
+@@ -66,7 +66,8 @@ all: libsubdirs libefi.a
+ libsubdirs:
+ for sdir in $(SUBDIRS); do mkdir -p $$sdir; done
+
+-libefi.a: $(patsubst %,libefi.a(%),$(OBJS))
++libefi.a: $(OBJS)
++ $(AR) rv $@ $(OBJS)
+
+ clean:
+ rm -f libefi.a *~ $(OBJS) */*.o
+Index: gnu-efi-3.0/gnuefi/Makefile
+===================================================================
+--- gnu-efi-3.0.orig/gnuefi/Makefile
++++ gnu-efi-3.0/gnuefi/Makefile
+@@ -51,7 +51,8 @@ TARGETS = crt0-efi-$(ARCH).o libgnuefi.a
+
+ all: $(TARGETS)
+
+-libgnuefi.a: $(patsubst %,libgnuefi.a(%),$(OBJS))
++libgnuefi.a: $(OBJS)
++ $(AR) rv $@ $(OBJS)
+
+ clean:
+ rm -f $(TARGETS) *~ *.o $(OBJS)
diff --git a/recipes-bsp/gnu-efi/gnu-efi/parallel-make.patch b/recipes-bsp/gnu-efi/gnu-efi/parallel-make.patch
new file mode 100644
index 0000000..27c94e8
--- /dev/null
+++ b/recipes-bsp/gnu-efi/gnu-efi/parallel-make.patch
@@ -0,0 +1,22 @@
+Fix parallel make failure
+
+Upstream-Status: Submitted [Maintainer directly]
+
+Add a missing dependency which resulted in a race leading to failure
+on larger values of -j.
+
+Signed-off-by: Darren Hart <dvhart@linux.intel.com>
+
+Index: gnu-efi-3.0/Makefile
+===================================================================
+--- gnu-efi-3.0.orig/Makefile
++++ gnu-efi-3.0/Makefile
+@@ -42,6 +42,8 @@ include $(SRCDIR)/Make.defaults
+
+ SUBDIRS = lib gnuefi inc apps
+
++gnuefi: lib
++
+ all: check_gcc $(SUBDIRS)
+
+ $(SUBDIRS):