Accepting request 259127 from home:gary_lin:branches:Base:System
- Update pesign-suse-build.patch to set LIBDIR for AArch64 OBS-URL: https://build.opensuse.org/request/show/259127 OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign?expand=0&rev=30
This commit is contained in:
parent
f4ca0bfbd9
commit
6268b01894
@ -1,13 +1,8 @@
|
|||||||
---
|
diff --git a/Make.defaults b/Make.defaults
|
||||||
Make.defaults | 5 +++--
|
index 95ba9d5..c03bf70 100644
|
||||||
Make.rules | 3 ++-
|
|
||||||
src/pesign.sysvinit | 12 ++++++++----
|
|
||||||
util/Makefile | 6 +++---
|
|
||||||
4 files changed, 16 insertions(+), 10 deletions(-)
|
|
||||||
|
|
||||||
--- a/Make.defaults
|
--- a/Make.defaults
|
||||||
+++ b/Make.defaults
|
+++ b/Make.defaults
|
||||||
@@ -5,7 +5,8 @@ HOSTARCH = $(shell uname -m | sed s,i[
|
@@ -5,7 +5,8 @@ HOSTARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)
|
||||||
ARCH := $(shell uname -m | sed s,i[3456789]86,ia32,)
|
ARCH := $(shell uname -m | sed s,i[3456789]86,ia32,)
|
||||||
INCDIR = -I$(TOPDIR)/include
|
INCDIR = -I$(TOPDIR)/include
|
||||||
CPPFLAGS = -DCONFIG_$(ARCH)
|
CPPFLAGS = -DCONFIG_$(ARCH)
|
||||||
@ -26,6 +21,15 @@
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH), ia32)
|
ifeq ($(ARCH), ia32)
|
||||||
|
@@ -41,3 +42,6 @@ ifeq ($(ARCH), x86_64)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
+ifeq ($(ARCH), aarch64)
|
||||||
|
+ LIBDIR := $(PREFIX)/lib64
|
||||||
|
+endif
|
||||||
|
diff --git a/Make.rules b/Make.rules
|
||||||
|
index 2749521..3553a03 100644
|
||||||
--- a/Make.rules
|
--- a/Make.rules
|
||||||
+++ b/Make.rules
|
+++ b/Make.rules
|
||||||
@@ -2,10 +2,11 @@
|
@@ -2,10 +2,11 @@
|
||||||
@ -41,28 +45,8 @@
|
|||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(INCDIR) $(BUILDFLAGS) $(CPPFLAGS) -c $< -o $@
|
$(CC) $(INCDIR) $(BUILDFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
--- a/util/Makefile
|
diff --git a/src/pesign.sysvinit b/src/pesign.sysvinit
|
||||||
+++ b/util/Makefile
|
index ea37c58..120a49c 100644
|
||||||
@@ -4,7 +4,7 @@ TOPDIR = $(SRCDIR)/..
|
|
||||||
include $(TOPDIR)/Make.defaults
|
|
||||||
|
|
||||||
FORMAT=efi-app-$(HOSTARCH)
|
|
||||||
-LDFLAGS = -nostdlib -T $(LIBDIR)/gnuefi/elf_$(HOSTARCH)_efi.lds -shared -Bsymbolic $(LIBDIR)/gnuefi/crt0-efi-$(HOSTARCH).o -L$(LIBDIR)
|
|
||||||
+LDFLAGS = -nostdlib -T $(LIBDIR)/elf_$(HOSTARCH)_efi.lds -shared -Bsymbolic $(LIBDIR)/crt0-efi-$(HOSTARCH).o -L$(LIBDIR)
|
|
||||||
LIBS=-lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name)
|
|
||||||
CCLDFLAGS =
|
|
||||||
BUILDFLAGS = -I/usr/include/efi/ -I/usr/include/efi/$(HOSTARCH)/ -I/usr/include/efi/protocol -fpic -fshort-wchar -fno-reorder-functions -fno-strict-aliasing -fno-merge-constants -mno-red-zone -Wimplicit-function-declaration
|
|
||||||
@@ -17,8 +17,8 @@ clean :
|
|
||||||
@rm -rfv *.o *.a *.so $(TARGETS)
|
|
||||||
|
|
||||||
install :
|
|
||||||
- $(INSTALL) -d -m 755 $(INSTALLROOT)/boot/efi/EFI/redhat/
|
|
||||||
- $(INSTALL) -m 755 *.efi $(INSTALLROOT)/boot/efi/EFI/redhat/
|
|
||||||
+ $(INSTALL) -d -m 755 $(INSTALLROOT)/boot/efi/EFI/SuSE/
|
|
||||||
+ $(INSTALL) -m 755 *.efi $(INSTALLROOT)/boot/efi/EFI/SuSE/
|
|
||||||
|
|
||||||
.PHONY: all clean install
|
|
||||||
|
|
||||||
--- a/src/pesign.sysvinit
|
--- a/src/pesign.sysvinit
|
||||||
+++ b/src/pesign.sysvinit
|
+++ b/src/pesign.sysvinit
|
||||||
@@ -6,21 +6,25 @@
|
@@ -6,21 +6,25 @@
|
||||||
@ -95,3 +79,27 @@
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
touch /var/lock/subsys/pesign
|
touch /var/lock/subsys/pesign
|
||||||
|
diff --git a/util/Makefile b/util/Makefile
|
||||||
|
index ff11cb8..5d4cebb 100644
|
||||||
|
--- a/util/Makefile
|
||||||
|
+++ b/util/Makefile
|
||||||
|
@@ -4,7 +4,7 @@ TOPDIR = $(SRCDIR)/..
|
||||||
|
include $(TOPDIR)/Make.defaults
|
||||||
|
|
||||||
|
FORMAT=efi-app-$(HOSTARCH)
|
||||||
|
-LDFLAGS = -nostdlib -T $(LIBDIR)/gnuefi/elf_$(HOSTARCH)_efi.lds -shared -Bsymbolic $(LIBDIR)/gnuefi/crt0-efi-$(HOSTARCH).o -L$(LIBDIR)
|
||||||
|
+LDFLAGS = -nostdlib -T $(LIBDIR)/elf_$(HOSTARCH)_efi.lds -shared -Bsymbolic $(LIBDIR)/crt0-efi-$(HOSTARCH).o -L$(LIBDIR)
|
||||||
|
LIBS=-lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name)
|
||||||
|
CCLDFLAGS =
|
||||||
|
BUILDFLAGS = -I/usr/include/efi/ -I/usr/include/efi/$(HOSTARCH)/ -I/usr/include/efi/protocol -fpic -fshort-wchar -fno-reorder-functions -fno-strict-aliasing -fno-merge-constants -mno-red-zone -Wimplicit-function-declaration
|
||||||
|
@@ -17,8 +17,8 @@ clean :
|
||||||
|
@rm -rfv *.o *.a *.so $(TARGETS)
|
||||||
|
|
||||||
|
install :
|
||||||
|
- $(INSTALL) -d -m 755 $(INSTALLROOT)/boot/efi/EFI/redhat/
|
||||||
|
- $(INSTALL) -m 755 *.efi $(INSTALLROOT)/boot/efi/EFI/redhat/
|
||||||
|
+ $(INSTALL) -d -m 755 $(INSTALLROOT)/boot/efi/EFI/SuSE/
|
||||||
|
+ $(INSTALL) -m 755 *.efi $(INSTALLROOT)/boot/efi/EFI/SuSE/
|
||||||
|
|
||||||
|
.PHONY: all clean install
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 31 07:16:40 UTC 2014 - glin@suse.com
|
||||||
|
|
||||||
|
- Update pesign-suse-build.patch to set LIBDIR for AArch64
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 28 08:47:34 UTC 2014 - glin@suse.com
|
Tue Oct 28 08:47:34 UTC 2014 - glin@suse.com
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user