| # Copyright 2019 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="d640cf36c1cb7d5b90023f4fb26b476a41d26b6f" |
| CROS_WORKON_TREE=("5ce03b99f33d64f242f02a09dcf165bdbad8d7d4" "2e036f417afe5d55dcbd138f7bfe2c98ab14403f" "8ca9c97a07408fdff5abf480fb1b2a15405b6bc0" "944879c9353c2df8adb7022407a8d319671325c1" "b2ae20cf5a237ca246eecb61de48d18247370fd5" "0c8e3de65339e7e6a1ffe16a54c7ae719bacc57c" "e7dba8c91c1f3257c34d4a7ffff0ea2537aeb6bb") |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk libhwsec libhwsec-foundation tpm_manager tpm2-simulator trunks .gn" |
| |
| PLATFORM_SUBDIR="libhwsec" |
| |
| inherit cros-workon platform |
| |
| DESCRIPTION="Crypto and utility functions used in TPM related daemons." |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/libhwsec/" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="*" |
| IUSE="test fuzzer tpm tpm2 tpm_dynamic" |
| |
| COMMON_DEPEND=" |
| chromeos-base/libhwsec-foundation |
| chromeos-base/tpm_manager-client |
| dev-libs/openssl:0= |
| dev-libs/flatbuffers |
| tpm2? ( |
| chromeos-base/pinweaver:= |
| chromeos-base/trunks:=[test?] |
| ) |
| tpm? ( app-crypt/trousers:= ) |
| fuzzer? ( |
| app-crypt/trousers:= |
| chromeos-base/trunks:= |
| ) |
| test? ( |
| chromeos-base/pinweaver:= |
| chromeos-base/trunks:=[test] |
| chromeos-base/tpm2-simulator:=[test] |
| ) |
| " |
| |
| RDEPEND="${COMMON_DEPEND}" |
| DEPEND="${COMMON_DEPEND}" |
| |
| src_install() { |
| platform_install |
| } |
| |
| |
| platform_pkg_test() { |
| platform test_all |
| } |