| # Copyright 2013 The ChromiumOS Authors |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="7" |
| CROS_WORKON_COMMIT="8b6e11a069e490c761cdab7ab3ff59434806cd9c" |
| CROS_WORKON_TREE=("41d899585b7a07ea908a0cca2944a7b8a4d13655" "243a1438a16f54c7d4c052aa77ee8e71b9ae7e3b" "f91b6afd5f2ae04ee9a2c19109a3a4a36f7659e6") |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| CROS_WORKON_SUBTREE="common-mk disk_updater .gn" |
| |
| PLATFORM_SUBDIR="disk_updater" |
| |
| inherit cros-workon platform |
| |
| DESCRIPTION="Root disk firmware updater" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/disk_updater/" |
| SRC_URI="" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="*" |
| IUSE="+sata mmc nvme" |
| |
| DEPEND=" |
| test? ( |
| sys-apps/diffutils |
| ) |
| " |
| |
| RDEPEND=" |
| chromeos-base/chromeos-common-script |
| dev-util/shflags |
| sata? ( sys-apps/hdparm ) |
| mmc? ( sys-apps/mmc-utils ) |
| nvme? ( sys-apps/nvme-cli ) |
| " |
| |
| platform_pkg_test() { |
| # We can test all, even if mmc or nvme are not installed. |
| local tests=( 'ata' 'mmc' 'nvme') |
| |
| local test_type |
| for test_type in "${tests[@]}"; do |
| platform_test "run" "tests/chromeos-disk-firmware-${test_type}-test.sh" |
| done |
| } |