| # 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="9c1fda8ad7ee4f91662cc2984c925c0b76e2bfb9" |
| CROS_WORKON_TREE="bcc7ba5b025d3556ee35bc42b43baaffa6f658af" |
| 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 |
| sys-apps/mmc-utils" |
| |
| 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" |
| } |