We need shim available in order to provide image verification support in
grub.
This commit is contained in:
Matthew Garrett 2015-04-15 11:38:58 -07:00
parent b5b169fca9
commit 51e00171b1
4 changed files with 41 additions and 0 deletions

View File

@ -31,6 +31,7 @@ DEPEND="
sys-apps/debianutils
sys-apps/iproute2
sys-boot/grub
sys-boot/shim
sys-devel/crossdev
sys-firmware/edk2-ovmf
sys-fs/btrfs-progs

View File

@ -0,0 +1 @@
shim-9999.ebuild

View File

@ -0,0 +1,39 @@
# Copyright 2015 CoreOS, Inc.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_PROJECT="coreos/shim"
CROS_WORKON_REPO="git://github.com"
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64"
else
CROS_WORKON_COMMIT="03a1513b0985fd682b13a8d29fe3f1314a704c66"
KEYWORDS="amd64"
fi
inherit cros-workon
DESCRIPTION="UEFI Shim loader"
HOMEPAGE="https://github.com/rhinstaller/shim"
LICENSE="BSD"
SLOT="0"
IUSE=""
RDEPEND=""
DEPEND="sys-boot/gnu-efi dev-libs/openssl"
src_unpack() {
cros-workon_src_unpack
default_src_unpack
}
src_compile() {
make EFI_PATH=/usr/lib shim.efi
}
src_install() {
insinto /usr/lib/shim
doins "shim.efi"
}