| # 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="6f9011123f3656c45bb34148673aa110a22326b3" |
| CROS_WORKON_TREE=("8a6aa0783afea740fe52cec225aef91187cbcde6" "791c6808b4f4f5f1c484108d66ff958d65f8f1e3" "13b6cac5121d40667689f2d48faddcb1bb34e1bb" "a06a3f47395fb7b584188c6852764bc773e5497e" "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 |
| dobin "${OUT}"/fake_pca_agentd |
| |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/hwsec-test-utils_testrunner" |
| } |