| # Copyright 2017 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="5" |
| |
| DESCRIPTION="Firmware for tools based on Chromium OS EC" |
| HOMEPAGE="https://www.chromium.org/chromium-os/ec-development" |
| |
| C2D2_NAME="c2d2_v2.4.35-f1113c92b" # servo-firmware-R81-12768.40.0 |
| SERVO_MICRO_NAME="servo_micro_v2.4.35-f1113c92b" # servo-firmware-R81-12768.40.0 |
| SERVO_V4_NAME="servo_v4_v2.4.35-f1113c92b" # servo-firmware-R81-12768.40.0 |
| SERVO_V4P1_NAME="servo_v4p1_v2.0.5159-529612865" # Local builds are temporary b/153464312 |
| SWEETBERRY_NAME="sweetberry_v2.3.7-096c7ee84" # servo-firmware-R70-11011.14.0 |
| UPDATER_PATH="/usr/share/servo_updater/firmware" |
| |
| MIRROR_PATH="gs://chromeos-localmirror/distfiles/" |
| |
| SRC_URI=" |
| ${MIRROR_PATH}/${C2D2_NAME}.tar.gz |
| ${MIRROR_PATH}/${SERVO_MICRO_NAME}.tar.gz |
| ${MIRROR_PATH}/${SERVO_V4_NAME}.tar.gz |
| ${MIRROR_PATH}/${SERVO_V4P1_NAME}.tar.xz |
| ${MIRROR_PATH}/${SWEETBERRY_NAME}.tar.gz |
| " |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| ISUE="" |
| |
| DEPEND="" |
| RDEPEND="!<chromeos-base/ec-devutils-0.0.2" |
| |
| S="${WORKDIR}" |
| |
| src_install() { |
| insinto "${UPDATER_PATH}" |
| |
| doins "${C2D2_NAME}.bin" |
| dosym "${C2D2_NAME}.bin" "${UPDATER_PATH}/c2d2.bin" |
| |
| doins "${SERVO_MICRO_NAME}.bin" |
| dosym "${SERVO_MICRO_NAME}.bin" "${UPDATER_PATH}/servo_micro.bin" |
| |
| doins "${SERVO_V4_NAME}.bin" |
| dosym "${SERVO_V4_NAME}.bin" "${UPDATER_PATH}/servo_v4.bin" |
| |
| doins "${SERVO_V4P1_NAME}.bin" |
| dosym "${SERVO_V4P1_NAME}.bin" "${UPDATER_PATH}/servo_v4p1.bin" |
| |
| doins "${SWEETBERRY_NAME}.bin" |
| dosym "${SWEETBERRY_NAME}.bin" "${UPDATER_PATH}/sweetberry.bin" |
| } |