Skip to content

Commit 207f389

Browse files
committed
fix for gnu-efi 3.0.8
1 parent a29852b commit 207f389

File tree

7 files changed

+19
-16
lines changed

7 files changed

+19
-16
lines changed

Make.applets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ LOADLIBES += $(LIBGCC) $(LIBEXTRA)
5454
LOADLIBES += -T $(LDSCRIPT)
5555

5656
ifneq ($(HAVE_EFI_OBJCOPY),)
57-
FORMAT := --target efi-app-$(ARCH)
57+
FORMAT := --target efi-app-$(HOSTARCH)
5858
else
5959
SUBSYSTEM := 0xa
6060
FORMAT := -O binary

Make.defaults

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ endif
7777

7878
# FreeBSD (and possibly others) reports amd64 instead of x86_64
7979
ifeq ($(ARCH),amd64)
80-
override ARCH := x86_64
80+
override ARCH := x64
81+
endif
82+
ifeq ($(ARCH),x86_64)
83+
override ARCH := x64
8184
endif
8285

8386
#
@@ -103,7 +106,7 @@ ifeq ($(ARCH),ia32)
103106
endif
104107
endif
105108

106-
ifeq ($(ARCH),x86_64)
109+
ifeq ($(ARCH),x64)
107110
GCCVERSION := $(shell $(CC) -dumpversion | cut -f1 -d.)
108111
GCCMINOR := $(shell $(CC) -dumpversion | cut -f2 -d.)
109112
USING_CLANG := $(shell $(CC) -v 2>&1 | grep -q 'clang version' && echo clang)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = 3.0.3
1+
VERSION = 3.0.8
22
DESTDIR =
33
PREFIX = /usr
44
PACKAGE = gnu-efi-applets

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Install & Usage
77
make
88
make install
99
cd MYPATH
10-
$EDITOR MYAPPLETS.c
10+
${EDITOR:-vi} MYAPPLETS.c
1111
gnu-efi-applets-build MYAPPLETS.efi
1212

1313
References

efilibc/data.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ EFI_GUID LoadFileProtocol = LOAD_FILE_PROTOCOL;
100100
EFI_GUID DeviceIoProtocol = DEVICE_IO_PROTOCOL;
101101
EFI_GUID UnicodeCollationProtocol = UNICODE_COLLATION_PROTOCOL;
102102
EFI_GUID SerialIoProtocol = SERIAL_IO_PROTOCOL;
103-
EFI_GUID SimpleNetworkProtocol = EFI_SIMPLE_NETWORK_PROTOCOL;
104-
EFI_GUID PxeBaseCodeProtocol = EFI_PXE_BASE_CODE_PROTOCOL;
105-
EFI_GUID PxeCallbackProtocol = EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL;
106-
EFI_GUID NetworkInterfaceIdentifierProtocol = EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL;
103+
EFI_GUID SimpleNetworkProtocol = EFI_SIMPLE_NETWORK_PROTOCOL_GUID;
104+
EFI_GUID PxeBaseCodeProtocol = EFI_PXE_BASE_CODE_PROTOCOL_GUID;
105+
EFI_GUID PxeCallbackProtocol = EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL_GUID;
106+
EFI_GUID NetworkInterfaceIdentifierProtocol = EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL_GUID;
107107
EFI_GUID UiProtocol = EFI_UI_PROTOCOL;
108-
EFI_GUID PciIoProtocol = EFI_PCI_IO_PROTOCOL;
108+
EFI_GUID PciIoProtocol = EFI_PCI_IO_PROTOCOL_GUID;
109109
EFI_GUID SimplePointerProtocol = EFI_SIMPLE_POINTER_PROTOCOL_GUID;
110110
EFI_GUID AbsolutePointerProtocol = EFI_ABSOLUTE_POINTER_PROTOCOL_GUID;
111111

efilibc/string.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int memcmp(const void *s1, const void *s2, size_t n)
7777

7878
return 0;
7979
}
80-
80+
/*
8181
void *memset(void *s, int c, size_t n)
8282
{
8383
while(n--)
@@ -91,7 +91,7 @@ void *memcpy(void *dest, const void *src, size_t n)
9191
((uint8_t *)dest)[n] = ((uint8_t *)src)[n];
9292
return dest;
9393
}
94-
94+
*/
9595
size_t mbstowcs(wchar_t *dest, const char *src, size_t n)
9696
{
9797
int conv = 0;

gnu-efi-applets.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
%global debug_package %{nil}
22

33
Name: gnu-efi-applets
4-
Version: 3.0.3
5-
Release: 3
4+
Version: 3.0.8
5+
Release: 5
66
Summary: Building Applets using GNU-EFI
77
License: GPL, PD, MIT
88
Group: Development/System
@@ -40,5 +40,5 @@ make DESTDIR=%{buildroot} install
4040
%{_includedir}/efilibc
4141

4242
%changelog
43-
* Tue Sep 19 2017 Wei-Lun Chao <[email protected]> - 3.0.3
44-
- First release
43+
* Thu Jan 17 2019 Wei-Lun Chao <[email protected]> - 3.0.8
44+
- Rebuild for Fedora

0 commit comments

Comments
 (0)