blob: 09d0d371c111b668d0fb239036687efea17734cf [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="3e10da53529f0bbd3a08dd4474c5e24a5b5e33fb"
CROS_WORKON_TREE=("310a710d6c1f02a93504b35b3d8371875f253b6a" "3c248d11e3bf372cb07184924529eb067d0a1f4d" "496a75adbc926f5addb5a0f5fb5f8dc1c6a66cfc" "dc1506ef7c8cfd2c5ffd1809dac05596ec18773c")
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_INCREMENTAL_BUILD=1
# TODO(crbug.com/809389): Avoid directly including headers from other packages.
CROS_WORKON_SUBTREE="common-mk u2fd trunks .gn"
PLATFORM_SUBDIR="u2fd"
inherit cros-workon platform
DESCRIPTION="G2F gnubby (U2F+GCSE) development and testing tools"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/u2fd"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
RDEPEND="
chromeos-base/libbrillo
dev-libs/hidapi
"
DEPEND="
${RDEPEND}
chromeos-base/chromeos-ec-headers
"
src_install() {
dobin "${OUT}"/g2ftool
}
platform_pkg_test() {
platform_test "run" "${OUT}/g2f_client_test"
}