update to 20200528

This commit is contained in:
jinzhimin369 2020-07-23 07:18:25 +00:00
parent d750b12403
commit a6bb9ce749
6 changed files with 31 additions and 20 deletions

View File

@ -1,6 +1,6 @@
Name: acpica-tools Name: acpica-tools
Version: 20190509 Version: 20200528
Release: 4 Release: 1
Summary: Tools for OS-independent reference implementation of ACPI Summary: Tools for OS-independent reference implementation of ACPI
License: GPLv2 License: GPLv2
@ -85,5 +85,8 @@ fi
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Wed Jul 22 2020 jinzhimin <jinzhimin2@huawei.com> - 20200528-1
- update to 20200528
* Tue Dec 31 2019 daiqianwen <daiqianwen@huawei.com> - 20190509-4 * Tue Dec 31 2019 daiqianwen <daiqianwen@huawei.com> - 20190509-4
- Package init - Package init

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,21 +1,7 @@
Index: acpica-unix2-20180209/generate/unix/Makefile.config diff -Naur a/generate/unix/iasl/Makefile b/generate/unix/iasl/Makefile
=================================================================== --- a/generate/unix/iasl/Makefile 2020-07-23 06:45:14.064000000 +0000
--- acpica-unix2-20180209.orig/generate/unix/Makefile.config +++ b/generate/unix/iasl/Makefile 2020-07-23 06:57:32.080000000 +0000
+++ acpica-unix2-20180209/generate/unix/Makefile.config @@ -358,34 +358,35 @@
@@ -182,6 +182,8 @@ ifneq ($(NOFORTIFY),TRUE)
OPT_CFLAGS += -D_FORTIFY_SOURCE=2
endif
+OPT_CFLAGS += -fPIC -pie
+
CFLAGS += \
-D$(HOST)\
-D_GNU_SOURCE\
Index: acpica-unix2-20180209/generate/unix/iasl/Makefile
===================================================================
--- acpica-unix2-20180209.orig/generate/unix/iasl/Makefile
+++ acpica-unix2-20180209/generate/unix/iasl/Makefile
@@ -344,26 +344,27 @@ $(OBJDIR)/prparserparse.c $(OBJDIR)/prpa
# Cannot use the common compile warning flags since the C files are created # Cannot use the common compile warning flags since the C files are created
# by the utilities above and they are not necessarily ANSI C, etc. # by the utilities above and they are not necessarily ANSI C, etc.
# #
@ -28,6 +14,16 @@ Index: acpica-unix2-20180209/generate/unix/iasl/Makefile
$(OBJDIR)/aslcompilerparse.o : $(OBJDIR)/aslcompilerparse.c $(OBJDIR)/aslcompilerparse.o : $(OBJDIR)/aslcompilerparse.c
@echo "- " "Intermediate" $< @echo "- " "Intermediate" $<
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $< - @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
+ @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
$(OBJDIR)/dtcompilerparserlex.o : $(OBJDIR)/dtcompilerparserlex.c
@echo "- " "Intermediate" $<
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
+ @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
$(OBJDIR)/dtcompilerparserparse.o : $(OBJDIR)/dtcompilerparserparse.c
@echo "- " "Intermediate" $<
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
+ @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $< + @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
$(OBJDIR)/dtparserlex.o : $(OBJDIR)/dtparserlex.c $(OBJDIR)/dtparserlex.o : $(OBJDIR)/dtparserlex.c
@ -49,3 +45,15 @@ Index: acpica-unix2-20180209/generate/unix/iasl/Makefile
@echo "- " "Intermediate" $< @echo "- " "Intermediate" $<
- @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $< - @$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
+ @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $< + @$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
diff -Naur a/generate/unix/Makefile.config b/generate/unix/Makefile.config
--- a/generate/unix/Makefile.config 2020-07-23 06:45:14.065000000 +0000
+++ b/generate/unix/Makefile.config 2020-07-23 06:47:00.436000000 +0000
@@ -181,6 +181,8 @@
OPT_CFLAGS += -D_FORTIFY_SOURCE=2
endif
+OPT_CFLAGS += -fPIC -pie
+
CFLAGS += \
-D$(ACPI_HOST)\
-D_GNU_SOURCE\