blob: e4241a66a10d8f0de1220e4c46efa43d8fd6fa00 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI=7
CROS_WORKON_COMMIT=("60ea1ec3d80123784872dcf38627b89c149a4469" "edd831155f8b6827365d6186c0a4de0947c286f4")
CROS_WORKON_TREE=("7f6f065557d9ce1244d92fcc7f4d92fc45b14e93" "3099cb9dbe7c2cfdd1ee773a4dec8e4bb55c9bbb")
CROS_WORKON_PROJECT=(
"chromiumos/platform/ec"
"chromiumos/platform/ec"
)
CROS_WORKON_LOCALNAME=(
"platform/ec"
"platform/cr50"
)
CROS_WORKON_DESTDIR=(
"${S}/platform/ec"
"${S}/platform/cr50"
)
CROS_WORKON_EGIT_BRANCH=(
"master"
"cr50_stab"
)
CROS_WORKON_INCREMENTAL_BUILD=1
inherit cros-workon
DESCRIPTION="Exported headers from the embedded controller codebase."
HOMEPAGE="https://www.chromium.org/chromium-os/ec-development"
SRC_URI=""
LICENSE="BSD-Google"
KEYWORDS="*"
IUSE=""
RDEPEND=""
DEPEND=""
# No configuration or compilation necessary. This is a header only package.
src_configure() { :; }
src_compile() { :; }
src_install() {
dir_ec=${CROS_WORKON_DESTDIR[0]}
dir_cr50=${CROS_WORKON_DESTDIR[1]}
insinto /usr/include/trunks/cr50_headers/
doins "${dir_cr50}"/include/pinweaver_types.h
doins "${dir_cr50}"/include/u2f.h
doins "${dir_cr50}"/board/cr50/tpm2/virtual_nvmem.h
insinto /usr/include/chromeos/ec/
doins "${dir_ec}"/include/ec_commands.h
doins "${dir_ec}"/util/cros_ec_dev.h
}