| # Copyright 2019 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="6" |
| |
| CROS_WORKON_COMMIT="fc33550242495250878c540ce7efc4df287caf6f" |
| CROS_WORKON_TREE=("a9c9dfedee8947f546a02e996ac05ea263acfaa1" "446aeabff217c38c62cf67ae7cfc0019e7ecfb20" "d0da2c6f2a4d60f698c21101340d390c072e5d02" "fe7fcadbc951078b877f156adf4f155237b915da" "dc1506ef7c8cfd2c5ffd1809dac05596ec18773c") |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| # TODO(crbug.com/809389): Avoid directly including headers from other packages. |
| CROS_WORKON_SUBTREE="common-mk sealed_storage tpm_manager trunks .gn" |
| |
| PLATFORM_SUBDIR="sealed_storage" |
| |
| inherit cros-workon platform |
| |
| DESCRIPTION="Library for sealing data to device identity and state" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/sealed_storage" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| |
| IUSE="test tpm2" |
| |
| REQUIRED_USE="tpm2" |
| RDEPEND=" |
| chromeos-base/tpm_manager[test?] |
| chromeos-base/trunks[test?] |
| " |
| DEPEND="${RDEPEND} |
| chromeos-base/protofiles:= |
| chromeos-base/system_api |
| " |
| |
| src_install() { |
| dosbin "${OUT}"/sealed_storage_tool |
| dolib.a "${OUT}"/libsealed_storage.a |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/sealed_storage_testrunner" |
| } |