blob: dab65700bf132b8be503e524b02e7387d0b9d880 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
CROS_WORKON_COMMIT="f07e3dfe1be57bc778d84657bf051ff50443cf56"
CROS_WORKON_TREE="494e563c657338ba1ba1143bca562b932462cb9e"
CROS_WORKON_PROJECT="chromiumos/platform/vpd"
inherit cros-workon
DESCRIPTION="ChromeOS vital product data utilities"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE="static"
# util-linux is for libuuid.
DEPEND="sys-apps/util-linux"
# shflags for dump_vpd_log.
# chromeos-activate-date for ActivateDate upstart and script.
RDEPEND="
sys-apps/flashrom
dev-util/shflags
virtual/chromeos-activate-date
"
src_configure() {
cros-workon_src_configure
}
src_compile() {
tc-export CC
use static && append-ldflags -static
emake all
}
src_install() {
# This target list should be architecture specific
# (no ACPI stuff on ARM for instance)
dosbin vpd vpd_s util/dump_vpd_log
# install the init script
insinto /etc/init
doins init/vpd-log.conf
}
# disabled due to buildbot failure
#src_test() {
# emake test || die "test failed."
#}