blob: 0be43b33e291a33a04ac5c2c9014f3850d1a035c [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="042861eb27d179fe221fe46aa9fb814c81ea6b9c"
CROS_WORKON_TREE=("0ffc67db3979effc8c3e1dc09a1b45719ea6814c" "c62f14ae1409f9eff86ba32c0ace68dfe5c65f92")
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_DESTDIR="${S}/platform2"
CROS_WORKON_SUBTREE="common-mk hammerd"
PLATFORM_SUBDIR="hammerd"
PYTHON_COMPAT=( python2_7 )
inherit cros-workon platform distutils-r1
DESCRIPTION="Python wrapper of hammerd API and some python utility scripts."
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/hammerd/"
LICENSE="BSD-Google"
SLOT=0
KEYWORDS="*"
IUSE="+hammerd_api"
RDEPEND="
chromeos-base/hammerd
"
DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
"
src_configure() {
platform_src_configure
distutils-r1_src_configure
}
src_compile() {
platform_src_compile
distutils-r1_src_compile
}
src_install() {
# Install exposed API.
dolib.so "${OUT}"/lib/libhammerd-api.so
insinto /usr/include/hammerd/
doins hammerd_api.h
distutils-r1_src_install
# Install hammer base tests on dut
dodir /usr/local/bin/hammertests
cp -R "${S}/hammertests" "${D}/usr/local/bin/hammertests"
}