blob: bc6c16b9b961b6903083caf814fa7a4e4fd502de [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="881f3321bf80f5cb7028e0e870591c3d5ba13d2f"
CROS_WORKON_TREE="e2269c44d323e85280117929aa2ce59ca03cf53f"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_DESTDIR="${S}"
inherit toolchain-funcs cros-debug cros-workon
DESCRIPTION="TPM SmogCheck library"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
IUSE="-asan"
KEYWORDS="*"
RDEPEND=""
DEPEND="${RDEPEND}
sys-kernel/linux-headers"
src_unpack() {
cros-workon_src_unpack
S+="/smogcheck"
}
src_configure() {
asan-setup-env
cros-workon_src_configure
}
src_compile() {
tc-export CC
cros-debug-add-NDEBUG
emake clean
emake
}
src_install() {
emake DESTDIR="${D}" install
}