summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-test/fwts/fwts/0001-libfwtsiasl-Disable-parallel-builds-of-lex-bison-fil.patch68
-rw-r--r--meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch8
-rw-r--r--meta-oe/recipes-test/fwts/fwts_22.11.00.bb (renamed from meta-oe/recipes-test/fwts/fwts_22.01.00.bb)5
3 files changed, 75 insertions, 6 deletions
diff --git a/meta-oe/recipes-test/fwts/fwts/0001-libfwtsiasl-Disable-parallel-builds-of-lex-bison-fil.patch b/meta-oe/recipes-test/fwts/fwts/0001-libfwtsiasl-Disable-parallel-builds-of-lex-bison-fil.patch
new file mode 100644
index 0000000000..90bee3e722
--- /dev/null
+++ b/meta-oe/recipes-test/fwts/fwts/0001-libfwtsiasl-Disable-parallel-builds-of-lex-bison-fil.patch
@@ -0,0 +1,68 @@
1From 6135a318dd48787f1b6e1296c755d67575f44dc1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Dec 2022 15:18:55 -0800
4Subject: [PATCH] libfwtsiasl: Disable parallel builds of lex/bison files
5
6Since they are using mv cmds they maybe conflicting with each other in
7highly parallelized build resulting in errors like
8
9| mv dtcompilerparser.tab.c dtcompilerparser.c
10| mv dtcompilerparser.tab.c dtcompilerparser.c
11| cp dtcompilerparser.tab.h dtcompilerparser.y.h
12| mv dtcompilerparser.tab.c dtcompilerparser.c
13| mv: cannot stat 'dtcompilerparser.tab.c': No such file or directory
14| make[3]: *** [Makefile:4196: dtcompilerparser.c] Error 1
15| make[3]: *** Waiting for unfinished jobs....
16| mv: cannot stat 'dtcompilerparser.tab.c': No such file or directory
17| make[3]: *** [Makefile:4194: dtcompilerparser.y.h] Error 1
18
19Upstream-Status: Pending
20
21Signed-off-by: Khem Raj <raj.khem@gmail.com>
22---
23 src/libfwtsiasl/Makefile.am | 8 ++++----
24 1 file changed, 4 insertions(+), 4 deletions(-)
25
26--- a/src/libfwtsiasl/Makefile.am
27+++ b/src/libfwtsiasl/Makefile.am
28@@ -58,32 +58,24 @@ aslcompiler.y: $(ASL_PARSER)
29 aslcompilerlex.c: $(ASL_LEXER)
30 ${LEX} ${AM_LFLAGS} -PAslCompiler -o$@ $(top_srcdir)/src/acpica/source/compiler/aslcompiler.l
31
32-.NOTPARALLEL: aslcompiler.c
33+.NOTPARALLEL: aslcompiler.c aslcompiler.y.h
34 aslcompiler.c aslcompiler.y.h: aslcompiler.y
35- ${YACC} ${AM_YFLAGS} -d -baslcompiler -pAslCompiler $^
36- mv aslcompiler.tab.c aslcompiler.c
37- cp aslcompiler.tab.h aslcompiler.y.h
38+ ${YACC} ${AM_YFLAGS} -d -baslcompiler -pAslCompiler --header=aslcompiler.y.h --output=aslcompiler.c $^
39
40-.NOTPARALLEL: dtcompilerparserlex.c
41+.NOTPARALLEL: dtcompilerparserlex.c dtcompilerparser.c dtcompilerparser.y.h
42 dtcompilerparserlex.c dtcompilerparser.c dtcompilerparser.y.h: $(top_srcdir)/src/acpica/source/compiler/dtcompilerparser.l $(top_srcdir)/src/acpica/source/compiler/dtcompilerparser.y
43 ${LEX} ${AM_LFLAGS} -PDtCompilerParser -odtcompilerparserlex.c $<
44- ${YACC} ${AM_YFLAGS} -bdtcompilerparser -pDtCompilerParser $(top_srcdir)/src/acpica/source/compiler/dtcompilerparser.y
45- mv dtcompilerparser.tab.c dtcompilerparser.c
46- cp dtcompilerparser.tab.h dtcompilerparser.y.h
47+ ${YACC} ${AM_YFLAGS} -bdtcompilerparser -pDtCompilerParser --header=dtcompilerparser.y.h --output=dtcompilerparser.c $(top_srcdir)/src/acpica/source/compiler/dtcompilerparser.y
48
49-.NOTPARALLEL: dtparserlex.c
50+.NOTPARALLEL: dtparserlex.c dtparser.c dtparser.y.h
51 dtparserlex.c dtparser.c dtparser.y.h: $(top_srcdir)/src/acpica/source/compiler/dtparser.l $(top_srcdir)/src/acpica/source/compiler/dtparser.y
52 ${LEX} ${AM_LFLAGS} -PDtParser -odtparserlex.c $<
53- ${YACC} ${AM_YFLAGS} -bdtparser -pDtParser $(top_srcdir)/src/acpica/source/compiler/dtparser.y
54- mv dtparser.tab.c dtparser.c
55- cp dtparser.tab.h dtparser.y.h
56+ ${YACC} ${AM_YFLAGS} -bdtparser -pDtParser --header=dtparser.y.h --output=dtparser.c $(top_srcdir)/src/acpica/source/compiler/dtparser.y
57
58-.NOTPARALLEL: prparserlex.c
59+.NOTPARALLEL: prparserlex.c prparser.c prparser.y.h
60 prparserlex.c prparser.c prparser.y.h: $(top_srcdir)/src/acpica/source/compiler/prparser.l $(top_srcdir)/src/acpica/source/compiler/prparser.y
61 ${LEX} ${AM_LFLAGS} -PPrParser -oprparserlex.c $<
62- ${YACC} ${AM_YFLAGS} -bprparser -pPrParser $(top_srcdir)/src/acpica/source/compiler/prparser.y
63- mv prparser.tab.c prparser.c
64- cp prparser.tab.h prparser.y.h
65+ ${YACC} ${AM_YFLAGS} -bprparser -pPrParser --header=prparser.y.h --output=prparser.c $(top_srcdir)/src/acpica/source/compiler/prparser.y
66
67 pkglib_LTLIBRARIES = libfwtsiasl.la
68
diff --git a/meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch b/meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch
index 6dc45ba84b..610113e6fe 100644
--- a/meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch
+++ b/meta-oe/recipes-test/fwts/fwts/0003-Remove-Werror-from-build.patch
@@ -15,7 +15,7 @@ Upstream-Status: Pending
15@@ -13,7 +13,7 @@ AM_CPPFLAGS = \ 15@@ -13,7 +13,7 @@ AM_CPPFLAGS = \
16 -I$(top_srcdir)/efi_runtime \ 16 -I$(top_srcdir)/efi_runtime \
17 -I$(top_srcdir)/smccc_test \ 17 -I$(top_srcdir)/smccc_test \
18 -pthread `pkg-config --cflags glib-2.0 gio-2.0` \ 18 -pthread \
19- -Wall -Werror -Wextra \ 19- -Wall -Werror -Wextra \
20+ -Wall -Wextra \ 20+ -Wall -Wextra \
21 -Wno-address-of-packed-member \ 21 -Wno-address-of-packed-member \
@@ -23,9 +23,9 @@ Upstream-Status: Pending
23 -Wno-long-long -Wredundant-decls -Wshadow \ 23 -Wno-long-long -Wredundant-decls -Wshadow \
24--- a/src/lib/src/Makefile.am 24--- a/src/lib/src/Makefile.am
25+++ b/src/lib/src/Makefile.am 25+++ b/src/lib/src/Makefile.am
26@@ -25,7 +25,7 @@ AM_CPPFLAGS = \ 26@@ -22,7 +22,7 @@ AM_CPPFLAGS = \
27 `pkg-config --silence-errors --cflags json-c` \ 27 -I$(top_srcdir)/src/acpica/source/include \
28 `pkg-config --cflags glib-2.0 gio-2.0` \ 28 -I$(top_srcdir)/src/acpica/source/compiler \
29 -DDATAROOTDIR=\"$(datarootdir)\" \ 29 -DDATAROOTDIR=\"$(datarootdir)\" \
30- -Wall -Werror -Wextra \ 30- -Wall -Werror -Wextra \
31+ -Wall -Wextra \ 31+ -Wall -Wextra \
diff --git a/meta-oe/recipes-test/fwts/fwts_22.01.00.bb b/meta-oe/recipes-test/fwts/fwts_22.11.00.bb
index 1f2d3e0521..f1028074d7 100644
--- a/meta-oe/recipes-test/fwts/fwts_22.01.00.bb
+++ b/meta-oe/recipes-test/fwts/fwts_22.11.00.bb
@@ -11,12 +11,13 @@ SRC_URI = "http://fwts.ubuntu.com/release/fwts-V${PV}.tar.gz;subdir=${BP} \
11 file://0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \ 11 file://0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \
12 file://0005-Undefine-PAGE_SIZE.patch \ 12 file://0005-Undefine-PAGE_SIZE.patch \
13 file://0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \ 13 file://0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \
14 file://0001-libfwtsiasl-Disable-parallel-builds-of-lex-bison-fil.patch \
14 " 15 "
15SRC_URI[sha256sum] = "45045a095d9933d9ff39712372ab1f3078ca8e29c007b3f97b810cdb8c27b5c3" 16SRC_URI[sha256sum] = "4af4e1e0f1ae9313297af722d744ba47a81c81bc5bdeab3f4f40837a39e4b808"
16 17
17COMPATIBLE_HOST = "(i.86|x86_64|aarch64|powerpc64).*-linux" 18COMPATIBLE_HOST = "(i.86|x86_64|aarch64|powerpc64).*-linux"
18 19
19DEPENDS = "libpcre glib-2.0 dtc bison-native libbsd" 20DEPENDS = "libpcre glib-2.0 dtc bison-native flex-native libbsd"
20DEPENDS:append:libc-musl = " libexecinfo" 21DEPENDS:append:libc-musl = " libexecinfo"
21 22
22inherit autotools bash-completion pkgconfig 23inherit autotools bash-completion pkgconfig