vboot_reference: update to minimal cgpt-only version

This commit is contained in:
Michael Marineau 2015-05-14 15:53:01 -07:00
parent 3de0a9c721
commit 8a835ed970
2 changed files with 6 additions and 38 deletions

View File

@ -5,53 +5,21 @@ EAPI="4"
CROS_WORKON_PROJECT="coreos/vboot_reference" CROS_WORKON_PROJECT="coreos/vboot_reference"
CROS_WORKON_REPO="git://github.com" CROS_WORKON_REPO="git://github.com"
CROS_WORKON_LOCALDIR="src/platform" CROS_WORKON_LOCALDIR="src/platform"
AUTOTOOLS_AUTORECONF=1
if [[ "${PV}" == 9999 ]]; then if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm ~x86" KEYWORDS="~amd64 ~arm ~x86"
else else
CROS_WORKON_COMMIT="7359eb09a7419bf025d9ab1f5234be1466bbb636" CROS_WORKON_COMMIT="8881575d1372b860744afe57b52a153a03c80c6a"
KEYWORDS="amd64 arm x86" KEYWORDS="amd64 arm x86"
fi fi
inherit cros-debug cros-workon cros-au inherit autotools-utils cros-workon
DESCRIPTION="Chrome OS verified boot tools"
DESCRIPTION="CoreOS Disk Utilities (e.g. cgpt)"
LICENSE="BSD" LICENSE="BSD"
SLOT="0" SLOT="0"
IUSE="cros_host" IUSE=""
RDEPEND="dev-libs/libyaml RDEPEND="sys-apps/util-linux"
dev-libs/openssl
sys-apps/util-linux"
DEPEND="${RDEPEND}" DEPEND="${RDEPEND}"
src_compile() {
mkdir "${S}"/build-main
tc-export CC AR CXX PKG_CONFIG
cros-debug-add-NDEBUG
# Vboot reference knows the flags to use
unset CFLAGS
emake BUILD="${S}"/build-main \
ARCH=$(tc-arch) all
unset CC AR CXX PKG_CONFIG
}
src_test() {
emake BUILD="${S}"/build-main \
ARCH=$(tc-arch) runtests
}
src_install() {
einfo "Installing programs"
# Installing on the host
emake BUILD="${S}"/build-main DESTDIR="${D}/usr/bin" install
# Install public headers to /build/${BOARD}/usr/include/vboot
einfo "Installing header files"
insinto /usr/include/vboot
doins firmware/include/* host/include/*
einfo "Installing host library"
dolib.a build-main/libvboot_host.a
}