blob: 2dadd0fb9338f3a39d5bc76efdf75bcf239f2190 [file] [log] [blame]
# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="664dd274b214ba5093b9d6bda81bcfb6b9f82e48"
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="amd64 arm x86"
IUSE=""
DEPEND="sys-apps/util-linux" # util-linux is for libuuid.
RDEPEND="sys-apps/flashrom"
# This target list should be architecture specific
# (no ACPI stuff on ARM for instance)
TARGETS='vpd util/dump_vpd_log'
src_compile() {
tc-export CXX PKG_CONFIG
emake CC="$(tc-getCC)" all || die "compilation failed."
}
src_install() {
dosbin ${TARGETS} || die "installation failed ($?)"
}
# disabled due to buildbot failure
#src_test() {
# emake test || die "test failed."
#}