aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/acpica/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/acpica/files')
-rw-r--r--meta-oe/recipes-extended/acpica/files/cross-compile.patch19
-rw-r--r--meta-oe/recipes-extended/acpica/files/no-werror.patch36
2 files changed, 55 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/acpica/files/cross-compile.patch b/meta-oe/recipes-extended/acpica/files/cross-compile.patch
new file mode 100644
index 000000000..f2917ca99
--- /dev/null
+++ b/meta-oe/recipes-extended/acpica/files/cross-compile.patch
@@ -0,0 +1,19 @@
+Description: add cross compile support
+Forwarded: not-needed
+Author: Fathi Boudra <fathi.boudra@linaro.org>
+
+---
+ generate/unix/Makefile.config | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/generate/unix/Makefile.config
++++ b/generate/unix/Makefile.config
+@@ -35,7 +35,7 @@
+ .SUFFIXES :
+ PROGS = acpibin acpidump acpiexec acpihelp acpinames acpisrc acpixtract iasl
+ HOST ?= _CYGWIN
+-CC = gcc
++CC ?= $(CROSS_COMPILE)gcc
+
+ #
+ # Common defines
diff --git a/meta-oe/recipes-extended/acpica/files/no-werror.patch b/meta-oe/recipes-extended/acpica/files/no-werror.patch
new file mode 100644
index 000000000..9f96552fd
--- /dev/null
+++ b/meta-oe/recipes-extended/acpica/files/no-werror.patch
@@ -0,0 +1,36 @@
+Description: remove -Werror flag
+Forwarded: not-needed
+Author: Fathi Boudra <fathi.boudra@linaro.org>
+
+---
+ generate/unix/iasl/Makefile | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+--- a/generate/unix/iasl/Makefile
++++ b/generate/unix/iasl/Makefile
+@@ -279,19 +279,19 @@ $(OBJDIR)/prparser.y.h: $(OBJDIR)/prpars
+ # by the utilities above and they are not necessarily ANSI C, etc.
+ #
+ $(OBJDIR)/aslcompilerlex.o : $(OBJDIR)/aslcompilerlex.c
+- $(CC) -c $(CFLAGS) -Wall -Werror -o$@ $?
++ $(CC) -c $(CFLAGS) -Wall -o$@ $?
+
+ $(OBJDIR)/aslcompilerparse.o : $(OBJDIR)/aslcompilerparse.c
+- $(CC) -c $(CFLAGS) -Wall -Werror -o$@ $?
++ $(CC) -c $(CFLAGS) -Wall -o$@ $?
+
+ $(OBJDIR)/dtparserlex.o : $(OBJDIR)/dtparserlex.c
+- $(CC) -c $(CFLAGS) -Wall -Werror -o$@ $?
++ $(CC) -c $(CFLAGS) -Wall -o$@ $?
+
+ $(OBJDIR)/dtparserparse.o : $(OBJDIR)/dtparserparse.c
+- $(CC) -c $(CFLAGS) -Wall -Werror -o$@ $?
++ $(CC) -c $(CFLAGS) -Wall -o$@ $?
+
+ $(OBJDIR)/prparserlex.o : $(OBJDIR)/prparserlex.c
+- $(CC) -c $(CFLAGS) -Wall -Werror -o$@ $?
++ $(CC) -c $(CFLAGS) -Wall -o$@ $?
+
+ $(OBJDIR)/prparserparse.o : $(OBJDIR)/prparserparse.c
+- $(CC) -c $(CFLAGS) -Wall -Werror -o$@ $?
++ $(CC) -c $(CFLAGS) -Wall -o$@ $?