sys-boot/shim: fix up ebuild for cross compilation into board

This commit is contained in:
Nick Owens 2016-04-19 12:44:16 -07:00
parent 9728a647e3
commit 94e24eab0c
2 changed files with 8 additions and 4 deletions

View File

@ -6,13 +6,13 @@ CROS_WORKON_PROJECT="coreos/shim"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
if [[ "${PV}" == 9999 ]]; then if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64" KEYWORDS="~amd64 ~arm64"
else else
CROS_WORKON_COMMIT="03a1513b0985fd682b13a8d29fe3f1314a704c66" CROS_WORKON_COMMIT="03a1513b0985fd682b13a8d29fe3f1314a704c66"
KEYWORDS="amd64" KEYWORDS="amd64 arm64"
fi fi
inherit cros-workon inherit cros-workon multilib
DESCRIPTION="UEFI Shim loader" DESCRIPTION="UEFI Shim loader"
HOMEPAGE="https://github.com/rhinstaller/shim" HOMEPAGE="https://github.com/rhinstaller/shim"
@ -30,7 +30,11 @@ src_unpack() {
} }
src_compile() { src_compile() {
make EFI_PATH=/usr/lib shim.efi emake \
CROSS_COMPILE="${CHOST}-" \
EFI_INCLUDE="${ROOT}"usr/include/efi \
EFI_PATH="${ROOT}"usr/$(get_libdir) \
shim.efi || die
} }
src_install() { src_install() {