| # Copyright 2021 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| 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 chromeos-config hardware_verifier libmems metrics rmad .gn" |
| |
| PLATFORM_SUBDIR="rmad" |
| |
| inherit cros-workon cros-unibuild platform tmpfiles user |
| |
| DESCRIPTION="ChromeOS RMA daemon." |
| HOMEPAGE="" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="~*" |
| IUSE="cr50_onboard iioservice ti50_onboard" |
| |
| COMMON_DEPEND=" |
| chromeos-base/chromeos-config-tools:= |
| chromeos-base/minijail:= |
| " |
| |
| RDEPEND=" |
| ${COMMON_DEPEND} |
| cr50_onboard? ( chromeos-base/chromeos-cr50 ) |
| iioservice? ( chromeos-base/iioservice_simpleclient ) |
| ti50_onboard? ( chromeos-base/chromeos-ti50 ) |
| chromeos-base/croslog |
| chromeos-base/hardware_verifier |
| chromeos-base/libmems |
| chromeos-base/runtime_probe |
| " |
| |
| DEPEND=" |
| ${COMMON_DEPEND} |
| chromeos-base/cryptohome-client:= |
| chromeos-base/metrics:= |
| chromeos-base/shill-client:= |
| chromeos-base/system_api:= |
| chromeos-base/tpm_manager-client:= |
| chromeos-base/vboot_reference:= |
| " |
| |
| pkg_preinst() { |
| # Create user and group for RMA. |
| enewuser "rmad" |
| enewgroup "rmad" |
| } |
| |
| src_install() { |
| platform_install |
| |
| dotmpfiles tmpfiles.d/*.conf |
| } |
| |
| platform_pkg_test() { |
| platform test_all |
| } |