Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Peter Jones
e9819de685 Fix a minor rebuild issue; note that this means it won't match the result that's in shim-15-8.
Signed-off-by: Peter Jones <pjones@redhat.com>
2020-01-21 16:09:39 -05:00
Igor Gnatenko
77ddce85cc add BuildRequires: gcc
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
2020-01-21 15:44:37 -05:00
3 changed files with 61 additions and 2 deletions

View file

@ -0,0 +1,25 @@
From 79f8e33de536909810578371dbc8a3043517b216 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 21 Jan 2020 14:37:59 -0500
Subject: [PATCH] CFLAGS: add -Wno-error=address-of-packed-member
Signed-off-by: Peter Jones <pjones@redhat.com>
---
Make.defaults | 1 +
1 file changed, 1 insertion(+)
diff --git a/Make.defaults b/Make.defaults
index e11ab5a7f2c..065b17445b5 100644
--- a/Make.defaults
+++ b/Make.defaults
@@ -41,6 +41,7 @@ EFI_LDS = $(TOPDIR)/elf_$(ARCH)_efi.lds
CFLAGS = -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic \
-fshort-wchar -Wall -Wsign-compare -Werror -fno-builtin \
+ -Wno-error=address-of-packed-member -Wno-error=pointer-sign \
-Werror=sign-compare -ffreestanding -std=gnu89 \
-I$(shell $(CC) -print-file-name=include) \
"-DDEFAULT_LOADER=L\"$(DEFAULT_LOADER)\"" \
--
2.24.1

26
0002-Fix-a-typo.patch Normal file
View file

@ -0,0 +1,26 @@
From 67756daa55f48f1166b3526dca1309e32c99ad89 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 12 Nov 2019 14:34:51 -0500
Subject: [PATCH] Fix a typo
Signed-off-by: Peter Jones <pjones@redhat.com>
---
lib/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/console.c b/lib/console.c
index 3fee403e2a8..39f29faadc4 100644
--- a/lib/console.c
+++ b/lib/console.c
@@ -360,7 +360,7 @@ static struct {
{ EFI_SECURITY_VIOLATION, L"Security Violation"},
// warnings
- { EFI_WARN_UNKOWN_GLYPH, L"Warning Unknown Glyph"},
+ { EFI_WARN_UNKNOWN_GLYPH, L"Warning Unknown Glyph"},
{ EFI_WARN_DELETE_FAILURE, L"Warning Delete Failure"},
{ EFI_WARN_WRITE_FAILURE, L"Warning Write Failure"},
{ EFI_WARN_BUFFER_TOO_SMALL, L"Warning Buffer Too Small"},
--
2.23.0

View file

@ -16,7 +16,7 @@
Name: shim-unsigned-aarch64
Version: 15
Release: 1%{?dist}
Release: 2%{?dist}
Summary: First-stage UEFI bootloader
ExclusiveArch: aarch64
License: BSD
@ -35,6 +35,10 @@ Source2: dbx.esl
Source100: shim-find-debuginfo.sh
Patch0001: 0001-CFLAGS-add-Wno-error-address-of-packed-member.patch
Patch0002: 0002-Fix-a-typo.patch
BuildRequires: gcc
BuildRequires: elfutils-libelf-devel
BuildRequires: git openssl-devel openssl
BuildRequires: pesign >= %{pesign_vre}
@ -76,7 +80,7 @@ BuildArch: noarch
%debug_desc
%prep
%autosetup -S git -n shim-%{version}
%autosetup -S git_am -n shim-%{version}
git config --unset user.email
git config --unset user.name
mkdir build-%{efiarch}
@ -130,6 +134,10 @@ cd ..
%files debugsource -f build-%{efiarch}/debugsource.list
%changelog
* Tue Jan 21 2020 Peter Jones <pjones@redhat.com> - 15-2
- Fix a minor rebuild issue; note that this means it won't match the
result that's in shim-15-8.
* Thu Apr 05 2018 Peter Jones <pjones@redhat.com> - 15-1
- Update to shim 15
- better checking for bad linker output