blob: 35819fd485d2ae4fe7d00c86f7b8929b56e177f4 [file] [log] [blame]
# Copyright 2010 The ChromiumOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_PROJECT="chromiumos/platform/vboot_reference"
CROS_WORKON_LOCALNAME="platform/vboot_reference"
inherit cros-workon cros-sanitizers
DESCRIPTION="vboot tests"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/"
LICENSE="BSD-Google"
KEYWORDS="~*"
COMMON_DEPEND="dev-libs/libzip:=
dev-libs/openssl:=
sys-apps/flashrom:=
sys-apps/util-linux:="
RDEPEND="${COMMON_DEPEND}"
DEPEND="${COMMON_DEPEND}"
get_build_dir() {
echo "${S}/build-main"
}
src_configure() {
sanitizers-setup-env
default
}
src_compile() {
mkdir "$(get_build_dir)"
tc-export CC AR CXX PKG_CONFIG
# vboot_reference knows the flags to use
unset CFLAGS
emake BUILD="$(get_build_dir)" tests
}
src_install() {
emake BUILD="$(get_build_dir)" DESTDIR="${D}" install_dut_test
}