blob: ef51eb33363dbc0aa378875efc653ff27aed1351 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="4170561bec558116fe6f6238606d27a8369180a5"
CROS_WORKON_TREE=("c9de2eb52379383658eaf7cbc29fdb5d8d32eb98" "989d840598227b15d78525d5f92c806011a9c158" "8b709631d01f33411578061c0dd8bc0a0b243694" "2ced48e9b94d92e5ba8378c2c335788f7b8b14c9" "9ff03a7edbc1bd7736e5de22c15b6f524189f881" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb")
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 libhwsec metrics trunks u2fd .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/0"
KEYWORDS="*"
COMMON_DEPEND="
chromeos-base/libhwsec:=
dev-libs/hidapi:=
"
RDEPEND="${COMMON_DEPEND}"
DEPEND="
${COMMON_DEPEND}
chromeos-base/chromeos-ec-headers:=
chromeos-base/u2fd:=
"
src_install() {
dobin "${OUT}"/g2ftool
dobin "${OUT}"/webauthntool
}
platform_pkg_test() {
platform_test "run" "${OUT}/g2f_client_test"
}