| # Copyright 2014 The ChromiumOS Authors |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_WORKON_COMMIT="8b6e11a069e490c761cdab7ab3ff59434806cd9c" |
| CROS_WORKON_TREE=("41d899585b7a07ea908a0cca2944a7b8a4d13655" "965e6fa3585e2d6493be1567791c13c633a9e8d7" "0d9d2046eb78dc8620f7594f245298f9fd964832" "f91b6afd5f2ae04ee9a2c19109a3a4a36f7659e6") |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk tpm2-simulator libhwsec-foundation .gn" |
| |
| PLATFORM_SUBDIR="tpm2-simulator" |
| |
| inherit cros-workon platform tmpfiles user |
| |
| DESCRIPTION="TPM 2.0 Simulator" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/tpm2-simulator/" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="*" |
| |
| IUSE="selinux ti50_onboard tpm tpm2 test tpm2_simulator tpm2_simulator_manufacturer" |
| |
| COMMON_DEPEND=" |
| tpm? ( !test? ( dev-libs/libtpms:= ) ) |
| tpm2? ( |
| chromeos-base/tpm2:=[tpm2_simulator?] |
| chromeos-base/tpm2:=[tpm2_simulator_manufacturer?] |
| ) |
| test? ( chromeos-base/tpm2:=[test] ) |
| chromeos-base/libhwsec-foundation:= |
| chromeos-base/minijail:= |
| chromeos-base/pinweaver:= |
| ti50_onboard? ( !test? ( chromeos-base/ti50-emulator:= ) ) |
| chromeos-base/vboot_reference:=[tpm2_simulator?] |
| dev-libs/openssl:0= |
| sys-libs/libselinux:= |
| " |
| |
| RDEPEND=" |
| ${COMMON_DEPEND} |
| selinux? ( |
| chromeos-base/selinux-policy |
| ) |
| " |
| DEPEND="${COMMON_DEPEND}" |
| |
| BDEPEND=" |
| chromeos-base/minijail |
| " |
| |
| pkg_preinst() { |
| enewuser tpm2-simulator |
| enewgroup tpm2-simulator |
| } |