blob: 1fc0b54899febc1162dc07178e6b3da800180fa5 [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="207b9c95e801b90f6616962cb928bec371aed39f"
CROS_WORKON_TREE=("17f4a6efa079886fb3e23fd256264f932d59721d" "bb4dee90d55bade42c3f3483a0c5c19f1655bfd1")
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
CROS_WORKON_SUBTREE="common-mk disk_updater"
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"
}