blob: d575e795cb9f15a36efe6a28d93462d2418269b0 [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="b21a7cf2179d8b79a8de78796d6f393ea40a69d3"
CROS_WORKON_TREE="980cd1f95d90dc53a4822b5d5af69b070623c759"
CROS_WORKON_PROJECT="chromiumos/third_party/coreboot"
DESCRIPTION="lp0 resume blob for Tegra"
HOMEPAGE="http://www.coreboot.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* arm arm64"
IUSE=""
RDEPEND=""
DEPEND=""
CROS_WORKON_LOCALNAME="coreboot"
inherit cros-workon
src_compile() {
emake -C src/soc/nvidia/tegra210/lp0 \
GCC_PREFIX="${CHOST}-" || \
die "tegra_lp0_resume build failed"
}
src_install() {
insinto /lib/firmware/nvidia/tegra210/
doins src/soc/nvidia/tegra210/lp0/tegra_lp0_resume.fw
# Also install into /firmware so it can be picked up for signing
insinto /firmware
doins src/soc/nvidia/tegra210/lp0/tegra_lp0_resume.fw
}