mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
sys-boot/gnu-efi: Sync with Gentoo
It's from Gentoo commit 0e727a3a16bc2abfd39386f10821d3e5ce89c45a.
This commit is contained in:
parent
ee570e8c4b
commit
a25005c349
@ -16,7 +16,7 @@ SRC_URI="https://downloads.sourceforge.net/gnu-efi/${P}.tar.bz2"
|
||||
# - GPL-2+ : setjmp_ia32.S
|
||||
LICENSE="GPL-2+ BSD BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 arm arm64 ~ia64 ~riscv x86"
|
||||
KEYWORDS="-* amd64 arm arm64 ~riscv x86"
|
||||
IUSE="abi_x86_32 abi_x86_64 custom-cflags"
|
||||
REQUIRED_USE="
|
||||
amd64? ( || ( abi_x86_32 abi_x86_64 ) )
|
||||
|
||||
@ -16,7 +16,7 @@ SRC_URI="https://downloads.sourceforge.net/gnu-efi/${P}.tar.bz2"
|
||||
# - GPL-2+ : setjmp_ia32.S
|
||||
LICENSE="GPL-2+ BSD BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 arm arm64 ~ia64 ~riscv x86"
|
||||
KEYWORDS="-* amd64 arm arm64 ~riscv x86"
|
||||
IUSE="abi_x86_32 abi_x86_64 custom-cflags"
|
||||
REQUIRED_USE="
|
||||
amd64? ( || ( abi_x86_32 abi_x86_64 ) )
|
||||
|
||||
@ -16,7 +16,7 @@ SRC_URI="https://downloads.sourceforge.net/gnu-efi/${P}.tar.bz2"
|
||||
# - GPL-2+ : setjmp_ia32.S
|
||||
LICENSE="GPL-2+ BSD BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 arm arm64 ~ia64 ~riscv x86"
|
||||
KEYWORDS="-* amd64 arm arm64 ~riscv x86"
|
||||
IUSE="abi_x86_32 abi_x86_64 custom-cflags"
|
||||
REQUIRED_USE="
|
||||
amd64? ( || ( abi_x86_32 abi_x86_64 ) )
|
||||
|
||||
@ -16,7 +16,7 @@ SRC_URI="https://downloads.sourceforge.net/gnu-efi/${P}.tar.bz2"
|
||||
# - GPL-2+ : setjmp_ia32.S
|
||||
LICENSE="GPL-2+ BSD BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ia64 ~riscv ~x86"
|
||||
KEYWORDS="-* amd64 ~arm arm64 ~riscv x86"
|
||||
IUSE="abi_x86_32 abi_x86_64 custom-cflags"
|
||||
REQUIRED_USE="
|
||||
amd64? ( || ( abi_x86_32 abi_x86_64 ) )
|
||||
|
||||
@ -16,7 +16,7 @@ SRC_URI="https://downloads.sourceforge.net/gnu-efi/${P}.tar.bz2"
|
||||
# - GPL-2+ : setjmp_ia32.S
|
||||
LICENSE="GPL-2+ BSD BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64 ~ia64 ~riscv ~x86"
|
||||
KEYWORDS="-* ~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
IUSE="abi_x86_32 abi_x86_64 custom-cflags"
|
||||
REQUIRED_USE="
|
||||
amd64? ( || ( abi_x86_32 abi_x86_64 ) )
|
||||
@ -42,7 +42,12 @@ check_and_set_objcopy() {
|
||||
# llvm-objcopy does not support EFI target, try to use binutils objcopy or fail
|
||||
tc-export OBJCOPY
|
||||
OBJCOPY="${OBJCOPY/llvm-/}"
|
||||
LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target"
|
||||
if ! use arm && ! use riscv; then
|
||||
# bug #939338
|
||||
# objcopy does not understand PE/COFF on these arches: arm32, riscv64 and mips64le
|
||||
# gnu-efi containes a workaround
|
||||
LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user