blob: a691ff4ee524ac1e8737506f142000262286fc4d [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI=7
CROS_WORKON_COMMIT="aa47ab6eb5c5fe9fa6fcb8088b1224c547315b70"
CROS_WORKON_TREE=("db0340289c7e9651efd8e8db3f449408cec3e8c2" "cf397e9600a0b2d153f579c58419577cfca75ab7" "076d90695122ec2235bc1b00ccc2da310da88372" "ce30491f68e9563157a151f37a6466403bb77d74" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb")
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_SUBTREE="attestation common-mk hwsec-test-utils trunks .gn"
PLATFORM_SUBDIR="hwsec-test-utils"
inherit cros-workon platform
DESCRIPTION="Hwsec-related test-only features. This package resides in test images only."
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/hwsec-test-utils/"
LICENSE="BSD-Google"
KEYWORDS="*"
IUSE="test tpm tpm2"
REQUIRED_USE="tpm2? ( !tpm )"
RDEPEND="
tpm2? (
chromeos-base/trunks:=
)
!tpm2? (
app-crypt/trousers:=
)
"
DEPEND="${RDEPEND}
tpm2? (
chromeos-base/trunks:=[test?]
)
chromeos-base/attestation:=
chromeos-base/system_api:=
dev-libs/openssl:=
dev-libs/protobuf:=
"
src_install() {
# Installs attestation-injected-keys
dobin "${OUT}/attestation-injected-keys"
# Installs hwsec-test-va
dobin "${OUT}/hwsec-test-va"
# Install fake pca agent
insinto /etc/init
doins fake_pca_agent/fake_pca_agentd.conf
dobin "${OUT}"/fake_pca_agentd
}
platform_pkg_test() {
platform_test "run" "${OUT}/hwsec-test-utils_testrunner"
}