summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower/common/recipes-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openbmc-machines/meta-openpower/common/recipes-bsp')
-rw-r--r--meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot.inc1
-rw-r--r--meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot/0003-gard-Fix-Makefile-race-condition.patch43
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot.inc b/meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot.inc
index d64a7f607..941f86c67 100644
--- a/meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot.inc
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot.inc
@@ -4,6 +4,7 @@ LICENSE = "Apache-2.0"
SRC_URI += "git://github.com/open-power/skiboot.git;nobranch=1"
SRC_URI += "file://0001-external-Use-more-standard-PREFIX-vs-prefix.patch"
SRC_URI += "file://0002-external-Utilize-DESTDIR-in-shared-makefile.patch"
+SRC_URI += "file://0003-gard-Fix-Makefile-race-condition.patch"
FILESEXTRAPATHS_append := "${THISDIR}/skiboot:"
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot/0003-gard-Fix-Makefile-race-condition.patch b/meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot/0003-gard-Fix-Makefile-race-condition.patch
new file mode 100644
index 000000000..703874ec0
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-bsp/skiboot/skiboot/0003-gard-Fix-Makefile-race-condition.patch
@@ -0,0 +1,43 @@
+From 7355feb27c79c406cc57e03da29e8f7a28f38c7e Mon Sep 17 00:00:00 2001
+From: Patrick Williams <patrick@stwcx.xyz>
+Date: Fri, 16 Sep 2016 15:41:02 -0500
+Subject: [PATCH] gard: Fix Makefile race condition
+
+Commit fd599965 added some dependencies in 'external/pflash'
+for libflash files that are created via symlink. Replicate
+that same behavior in 'external/gard' to prevent race conditions
+where we attempt to compile files from libflash before they are
+symlink'd.
+
+Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
+---
+ external/gard/rules.mk | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/external/gard/rules.mk b/external/gard/rules.mk
+index dfe93d5..3a7f6d9 100644
+--- a/external/gard/rules.mk
++++ b/external/gard/rules.mk
+@@ -2,7 +2,9 @@
+
+ override CFLAGS += -O2 -Wall -Werror -I.
+ OBJS = version.o gard.o
+-LIBFLASH_OBJS += libflash-file.o libflash-libflash.o libflash-libffs.o libflash-ecc.o libflash-blocklevel.o
++LIBFLASH_FILES := libflash.c libffs.c ecc.c blocklevel.c file.c
++LIBFLASH_OBJS := $(addprefix libflash-, $(LIBFLASH_FILES:.c=.o))
++LIBFLASH_SRC := $(addprefix libflash/,$(LIBFLASH_FILES))
+ OBJS += $(LIBFLASH_OBJS)
+ OBJS += common-arch_flash.o
+ EXE = gard
+@@ -24,6 +26,8 @@ version.c: make_version.sh .version
+ %.o : %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
++$(LIBFLASH_SRC): | links
++
+ $(LIBFLASH_OBJS): libflash-%.o : libflash/%.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+--
+2.7.3
+
OpenPOWER on IntegriCloud