Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3e3af80a0 | ||
|
|
77ddce85cc |
2 changed files with 34 additions and 2 deletions
25
0001-CFLAGS-add-Werror-address-of-packed-member.patch
Normal file
25
0001-CFLAGS-add-Werror-address-of-packed-member.patch
Normal 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 -Werror=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 \
|
||||
-Werror=sign-compare -ffreestanding -std=gnu89 \
|
||||
-I$(shell $(CC) -print-file-name=include) \
|
||||
"-DDEFAULT_LOADER=L\"$(DEFAULT_LOADER)\"" \
|
||||
--
|
||||
2.24.1
|
||||
|
||||
|
|
@ -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,9 @@ Source2: dbx.esl
|
|||
|
||||
Source100: shim-find-debuginfo.sh
|
||||
|
||||
Patch0001: 0001-CFLAGS-add-Werror-address-of-packed-member.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: elfutils-libelf-devel
|
||||
BuildRequires: git openssl-devel openssl
|
||||
BuildRequires: pesign >= %{pesign_vre}
|
||||
|
|
@ -76,7 +79,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 +133,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue