| # 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="dbb1136242ba822d539eaf11493f3b68815adb7f" |
| CROS_WORKON_TREE=("46debaa1a374952167d5a2ca0bdf36013f053bc3" "60fa47aebd6ebfb702012849bd560717fceddcd4" "d3dca65ea14d72be7cfe4a01dcee20b783804e56" "2e036f417afe5d55dcbd138f7bfe2c98ab14403f" "8ca9c97a07408fdff5abf480fb1b2a15405b6bc0" "944879c9353c2df8adb7022407a8d319671325c1" "0c8e3de65339e7e6a1ffe16a54c7ae719bacc57c" "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 libhwsec libhwsec-foundation tpm_manager 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/+/HEAD/hwsec-test-utils/" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="*" |
| IUSE="test tpm tpm_dynamic tpm2" |
| REQUIRED_USE=" |
| tpm_dynamic? ( tpm tpm2 ) |
| !tpm_dynamic? ( ?? ( tpm tpm2 ) ) |
| " |
| |
| RDEPEND=" |
| tpm2? ( |
| chromeos-base/trunks:= |
| ) |
| tpm? ( |
| app-crypt/trousers:= |
| ) |
| chromeos-base/libhwsec:= |
| " |
| |
| DEPEND="${RDEPEND} |
| tpm2? ( |
| chromeos-base/trunks:=[test?] |
| ) |
| chromeos-base/attestation:= |
| chromeos-base/libhwsec-foundation:= |
| chromeos-base/system_api:= |
| dev-libs/openssl:= |
| dev-libs/protobuf:= |
| " |
| |
| src_install() { |
| platform_install |
| } |
| |
| platform_pkg_test() { |
| platform test_all |
| } |