blob: 32929b67b62821ec1878356bc42ea9863103e357 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
# $Header$
EAPI="2"
CROS_WORKON_PROJECT="chromiumos/platform/tpm"
inherit cros-workon autotools
CROS_WORKON_PROJECT="chromiumos/platform/tpm"
inherit cros-workon base
CROS_WORKON_PROJECT="chromiumos/platform/tpm"
inherit cros-workon eutils
CROS_WORKON_PROJECT="chromiumos/platform/tpm"
inherit cros-workon linux-info
DESCRIPTION="Various TPM tools"
LICENSE="BSD"
HOMEPAGE="http://src.chromium.org"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
DEPEND="app-crypt/trousers"
CROS_WORKON_LOCALNAME="../third_party/tpm"
src_compile() {
if tc-is-cross-compiler ; then
tc-getCC
tc-getCXX
tc-getAR
tc-getRANLIB
tc-getLD
tc-getNM
export PKG_CONFIG_PATH="${ROOT}/usr/lib/pkgconfig/"
export CCFLAGS="$CFLAGS"
fi
(cd nvtool; emake) || die emake failed
}
src_install() {
exeinto /usr/bin
doexe nvtool/tpm-nvtool
}