-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-boot/shim: Move from cros_workon to upstream
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
- Loading branch information
1 parent
a103b3a
commit c5ad6c3
Showing
2 changed files
with
55 additions
and
70 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
sdk_container/src/third_party/coreos-overlay/sys-boot/shim/shim-15.7.ebuild
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
sdk_container/src/third_party/coreos-overlay/sys-boot/shim/shim-15.7.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright 2015 CoreOS, Inc. | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
inherit cros-workon multilib | ||
|
||
DESCRIPTION="UEFI Shim loader" | ||
HOMEPAGE="https://github.com/rhboot/shim" | ||
SRC_URI="https://github.com/rhboot/shim/releases/download/${PV}/shim-${PV}.tar.bz2 -> ${P}.tar.gz" | ||
KEYWORDS="amd64 arm64" | ||
|
||
LICENSE="BSD" | ||
SLOT="0" | ||
IUSE="" | ||
|
||
RDEPEND="" | ||
# TODO: Would be ideal to depend on sys-boot/gnu-efi package, but | ||
# currently the shim insists on using the bundled copy. This will need | ||
# to be addressed by patching this check out after making sure that | ||
# our copy of gnu-efi is as usable as the bundled one. | ||
DEPEND=" | ||
dev-libs/openssl | ||
coreos-base/coreos-sb-keys | ||
" | ||
src_compile() { | ||
local emake_args=( | ||
CROSS_COMPILE="${CHOST}-" | ||
) | ||
# Apparently our environment already has the ARCH variable in | ||
# it, and Makefile picks it up instead of figuring it out | ||
# itself with the compiler -dumpmachine flag. But also it | ||
# expects a different format of the values. It wants x86_64 | ||
# instead of amd64, and aarch64 instead of arm64. | ||
if use amd64; then | ||
emake_args+=( ARCH=x86_64 ) | ||
elif use arm64; then | ||
emake_args+=( ARCH=aarch64 ) | ||
fi | ||
emake_args+=( ENABLE_SBSIGN=1 ) | ||
emake_args+=( VENDOR_CERT_FILE="/usr/share/sb_keys/shim.der" ) | ||
emake "${emake_args[@]}" || die | ||
} | ||
|
||
src_install() { | ||
local suffix | ||
suffix='' | ||
if use amd64; then | ||
suffix=x64 | ||
elif use arm64; then | ||
suffix=aa64 | ||
fi | ||
insinto /usr/lib/shim | ||
newins "shim${suffix}.efi" 'shim.efi' | ||
newins "mm${suffix}.efi" "mm${suffix}.efi" | ||
} |
69 changes: 0 additions & 69 deletions
69
sdk_container/src/third_party/coreos-overlay/sys-boot/shim/shim-9999.ebuild
This file was deleted.
Oops, something went wrong.