blob: ccc9cf3a50d775b92a52f8bb5afac33e3e963574 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
CROS_WORKON_COMMIT="a27c2e84964615fded123086a7d9b139b6e9e1b4"
CROS_WORKON_TREE=("6f3abf0e1487e52593fe1b4fc780df5844fa9cc1" "1ce309ed166bb47aefd8a7f251451131e695f415" "dc1506ef7c8cfd2c5ffd1809dac05596ec18773c")
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="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="+sata mmc nvme"
DEPEND=""
RDEPEND="${DEPEND}
chromeos-base/chromeos-common-script
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
}
src_install() {
insinto "/etc/init"
doins "scripts/chromeos-disk-firmware-update.conf"
dosbin "scripts/chromeos-disk-firmware-update.sh"
}