blob: d752fb34347cc8b3bec00f0da34f2d88cb9557b6 [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="14b649975b9f1c078fc7623b595ee917e1430d4b"
CROS_WORKON_TREE="00c78d02ca97a11dc65bd936d2ba6e8e76195c77"
CROS_WORKON_PROJECT="chromiumos/third_party/coreboot"
DESCRIPTION="lp0 resume blob for Tegra"
HOMEPAGE="http://www.coreboot.org"
LICENSE="GPL-2"
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
}