summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2024-07-29 09:03:36 +0300
committerViorel Munteanu <ceamac@gentoo.org>2024-07-29 09:04:30 +0300
commit57927b014a90f5719a141e97596f9c26ad1ed9c5 (patch)
tree90381030212b0e7fc03efb4f9a25c5c1cfd94a55 /sys-boot
parentsys-boot/gnu-efi: drop 3.0.18 (diff)
downloadgentoo-57927b014a90f5719a141e97596f9c26ad1ed9c5.tar.gz
gentoo-57927b014a90f5719a141e97596f9c26ad1ed9c5.tar.bz2
gentoo-57927b014a90f5719a141e97596f9c26ad1ed9c5.zip
sys-boot/gnu-efi: drop 3.0.18-r1
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'sys-boot')
-rw-r--r--sys-boot/gnu-efi/files/gnu-efi-3.0.18-refind.patch126
-rw-r--r--sys-boot/gnu-efi/gnu-efi-3.0.18-r1.ebuild90
2 files changed, 0 insertions, 216 deletions
diff --git a/sys-boot/gnu-efi/files/gnu-efi-3.0.18-refind.patch b/sys-boot/gnu-efi/files/gnu-efi-3.0.18-refind.patch
deleted file mode 100644
index d198426c4635..000000000000
--- a/sys-boot/gnu-efi/files/gnu-efi-3.0.18-refind.patch
+++ /dev/null
@@ -1,126 +0,0 @@
-https://github.com/ncroxon/gnu-efi/commit/f5bb548df572c992fe3389a586bec3a19b092c18
-https://github.com/ncroxon/gnu-efi/commit/6b9dae0bef0fab82230a6672eaadd38d739e3e1e
-
-From f5bb548df572c992fe3389a586bec3a19b092c18 Mon Sep 17 00:00:00 2001
-From: Callum Farmer <gmbr3@opensuse.org>
-Date: Thu, 25 Apr 2024 15:27:26 +0100
-Subject: [PATCH] Align RTLIB CopyMem/SetMem with normal versions
-
-Looks like 699e452654df6de53890ae994756b0d47237e3ac broke rEFInd
-(https://sourceforge.net/p/refind/code/ci/189e405630293445df8565e36b831bba56e87093/)
---- a/inc/efirtlib.h
-+++ b/inc/efirtlib.h
-@@ -45,6 +45,7 @@ RtZeroMem (
- );
-
- VOID
-+EFIAPI
- RUNTIMEFUNCTION
- RtSetMem (
- IN VOID *Buffer,
-@@ -53,10 +54,11 @@ RtSetMem (
- );
-
- VOID
-+EFIAPI
- RUNTIMEFUNCTION
- RtCopyMem (
- IN VOID *Dest,
-- IN CONST VOID *Src,
-+ IN VOID *Src,
- IN UINTN len
- );
-
---- a/lib/runtime/efirtlib.c
-+++ b/lib/runtime/efirtlib.c
-@@ -42,6 +42,7 @@ RtZeroMem (
- #pragma RUNTIME_CODE(RtSetMem)
- #endif
- VOID
-+EFIAPI
- RUNTIMEFUNCTION
- RtSetMem (
- IN VOID *Buffer,
-@@ -61,10 +62,11 @@ RtSetMem (
- #pragma RUNTIME_CODE(RtCopyMem)
- #endif
- VOID
-+EFIAPI
- RUNTIMEFUNCTION
- RtCopyMem (
- IN VOID *Dest,
-- IN CONST VOID *Src,
-+ IN VOID *Src,
- IN UINTN len
- )
- {
-
-From 6b9dae0bef0fab82230a6672eaadd38d739e3e1e Mon Sep 17 00:00:00 2001
-From: Callum Farmer <gmbr3@opensuse.org>
-Date: Sat, 27 Apr 2024 13:14:28 +0100
-Subject: [PATCH] Fixup string functions for new CopyMem
-
-Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
---- a/lib/runtime/rtstr.c
-+++ b/lib/runtime/rtstr.c
-@@ -69,10 +69,13 @@ RtStrnCpy (
- )
- // copy strings
- {
-+ CHAR16 CopySrc = *Src;
-+ CHAR16 *PCopySrc = &CopySrc;
-+
- UINTN Size = RtStrnLen(Src, Len);
- if (Size != Len)
- RtSetMem(Dest + Size, (Len - Size) * sizeof(CHAR16), '\0');
-- RtCopyMem(Dest, Src, Size * sizeof(CHAR16));
-+ RtCopyMem(Dest, PCopySrc, Size * sizeof(CHAR16));
- }
-
- #ifndef __GNUC__
-@@ -105,10 +108,13 @@ RtStpnCpy (
- )
- // copy strings
- {
-+ CHAR16 CopySrc = *Src;
-+ CHAR16 *PCopySrc = &CopySrc;
-+
- UINTN Size = RtStrnLen(Src, Len);
- if (Size != Len)
- RtSetMem(Dest + Size, (Len - Size) * sizeof(CHAR16), '\0');
-- RtCopyMem(Dest, Src, Size * sizeof(CHAR16));
-+ RtCopyMem(Dest, PCopySrc, Size * sizeof(CHAR16));
- return Dest + Size;
- }
-
-@@ -137,10 +143,12 @@ RtStrnCat (
- )
- {
- UINTN DestSize, Size;
-+ CHAR16 CopySrc = *Src;
-+ CHAR16 *PCopySrc = &CopySrc;
-
- DestSize = RtStrLen(Dest);
- Size = RtStrnLen(Src, Len);
-- RtCopyMem(Dest + DestSize, Src, Size * sizeof(CHAR16));
-+ RtCopyMem(Dest + DestSize, PCopySrc, Size * sizeof(CHAR16));
- Dest[DestSize + Size] = '\0';
- }
-
---- a/lib/str.c
-+++ b/lib/str.c
-@@ -201,11 +201,13 @@ StrDuplicate (
- {
- CHAR16 *Dest;
- UINTN Size;
-+ CHAR16 CopySrc = *Src;
-+ CHAR16 *PCopySrc = &CopySrc;
-
- Size = StrSize(Src);
- Dest = AllocatePool (Size);
- if (Dest) {
-- CopyMem (Dest, (void *)Src, Size);
-+ CopyMem (Dest, PCopySrc, Size);
- }
- return Dest;
- }
diff --git a/sys-boot/gnu-efi/gnu-efi-3.0.18-r1.ebuild b/sys-boot/gnu-efi/gnu-efi-3.0.18-r1.ebuild
deleted file mode 100644
index 4261653d9664..000000000000
--- a/sys-boot/gnu-efi/gnu-efi-3.0.18-r1.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 2004-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs
-
-DESCRIPTION="Library for build EFI Applications"
-HOMEPAGE="https://sourceforge.net/projects/gnu-efi/"
-SRC_URI="https://downloads.sourceforge.net/gnu-efi/${P}.tar.bz2"
-
-# inc/, lib/ dirs (README.efilib)
-# - BSD-2
-# gnuefi dir:
-# - BSD (3-cluase): crt0-efi-ia32.S
-# - GPL-2+ : setjmp_ia32.S
-LICENSE="GPL-2+ BSD BSD-2"
-SLOT="0"
-KEYWORDS="-* amd64 arm arm64 ~ia64 ~riscv x86"
-IUSE="abi_x86_32 abi_x86_64 custom-cflags"
-REQUIRED_USE="
- amd64? ( || ( abi_x86_32 abi_x86_64 ) )
- x86? ( || ( abi_x86_32 abi_x86_64 ) )
-"
-
-# These objects get run early boot (i.e. not inside of Linux),
-# so doing these QA checks on them doesn't make sense.
-QA_EXECSTACK="usr/*/lib*efi.a:* usr/*/crt*.o"
-RESTRICT="strip"
-
-PATCHES=(
- "${FILESDIR}"/${P}-clang.patch
- "${FILESDIR}"/${P}-refind.patch
-)
-
-src_prepare() {
- default
- sed -i -e "s/-Werror//" Make.defaults || die
-}
-
-efimake() {
- local arch=
- case ${CHOST} in
- arm*) arch=arm ;;
- aarch64*) arch=aarch64 ;;
- ia64*) arch=ia64 ;;
- i?86*) arch=ia32 ;;
- riscv64*) arch=riscv64;;
- x86_64*) arch=x86_64 ;;
- *) die "Unknown CHOST" ;;
- esac
-
- local args=(
- ARCH="${arch}"
- HOSTCC="${BUILD_CC}"
- CC="${CC}"
- AS="${AS}"
- LD="${LD}"
- AR="${AR}"
- OBJCOPY="${OBJCOPY}"
- PREFIX="${EPREFIX}/usr"
- LIBDIR='$(PREFIX)'/$(get_libdir)
- )
- emake -j1 "${args[@]}" "$@"
-}
-
-src_compile() {
- tc-export BUILD_CC AR AS CC LD OBJCOPY
-
- if ! use custom-cflags; then
- unset CFLAGS CPPFLAGS LDFLAGS
- fi
-
- if use amd64 || use x86; then
- use abi_x86_32 && CHOST=i686 ABI=x86 efimake
- use abi_x86_64 && CHOST=x86_64 ABI=amd64 efimake
- else
- efimake
- fi
-}
-
-src_install() {
- if use amd64 || use x86; then
- use abi_x86_32 && CHOST=i686 ABI=x86 efimake INSTALLROOT="${D}" install
- use abi_x86_64 && CHOST=x86_64 ABI=amd64 efimake INSTALLROOT="${D}" install
- else
- efimake INSTALLROOT="${D}" install
- fi
- einstalldocs
-}