blob: 80fd5c19e63aa6db1b22463356b27558e8465436 [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="12064988fac5456178ab8c2e2c3a9ca59a95ea90"
CROS_WORKON_TREE=("6f3abf0e1487e52593fe1b4fc780df5844fa9cc1" "eb7827cc64e17a1e076002ec4782ce4111b6e747" "9b75859c8a83283c2da46aa8823becccb702b3eb" "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"
}