blob: dd82f18d6dea3cd20a03dfc96749ece2b6506ac6 [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="4"
CROS_WORKON_COMMIT="37b2e13c99f1f2b9429569378c297aab852c8f53"
CROS_WORKON_TREE="479f684d89d4aec71d0670e12a6707161833f8f2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
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=""
DEPEND=""
RDEPEND="${DEPEND}
chromeos-base/chromeos-installer
sys-apps/hdparm"
platform_pkg_test() {
local tests=( 'ata' 'mmc' )
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"
}