| # Copyright 2016 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=7 |
| |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_LOCALNAME="platform2" |
| CROS_WORKON_PROJECT="chromiumos/platform2" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| # TODO(https://crbug.com/809389) |
| CROS_WORKON_SUBTREE="common-mk metrics timberslide .gn" |
| |
| PLATFORM_SUBDIR="timberslide" |
| |
| inherit cros-workon platform |
| |
| DESCRIPTION="EC log concatenator for Chromium OS" |
| HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/master/timberslide/" |
| |
| LICENSE="BSD-Google" |
| KEYWORDS="~*" |
| IUSE="" |
| |
| RDEPEND=" |
| >=chromeos-base/metrics-0.0.1-r3152:= |
| dev-libs/re2:= |
| " |
| |
| DEPEND="${RDEPEND}" |
| |
| src_install() { |
| dobin "${OUT}/timberslide" |
| |
| # Install upstart configs and scripts |
| insinto /etc/init |
| doins init/*.conf |
| exeinto /usr/share/cros/init |
| doexe init/*.sh |
| } |
| |
| platform_pkg_test() { |
| platform_test "run" "${OUT}/timberslide_test_runner" |
| } |