blob: 98c367da1ae38fc8cd6c96ec7aca19f8c0948969 [file] [log] [blame] [edit]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit toolchain-funcs flag-o-matic
# The tarball for this package can be re-created from the upstream
# repository with the following commands:
# $ PN=u-boot PV=2013.07 P=${PN}-${PV}
# $ git clone git://git.denx.de/${PN}.git ${P}
# $ cd ${P}
# $ git checkout v${PV}
# $ rm -rf .git
# $ cd ..
# $ tar cf ${P}.tar ${P}
# $ bzip2 ${P}.tar
#
# TODO(jrbarnette): Really, we want to eliminate this ebuild
# altogether, and rely on the standard Chromium OS U-Boot ebuild.
# http://crbug.com/302022
DESCRIPTION="Das U-Boot for Chrome OS on beaglebone"
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
LOCAL_MIRROR="commondatastorage.googleapis.com/chromeos-localmirror/distfiles"
SRC_URI="https://${LOCAL_MIRROR}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="arm"
umake() {
env -u ARCH emake CROSS_COMPILE="${CHOST}-" "HOSTCC=${BUILD_CC}" "$@"
}
src_prepare() {
epatch "${FILESDIR}"/*.patch
}
src_configure() {
export LDFLAGS=$(raw-ldflags)
tc-export BUILD_CC
umake am335x_evm_config
}
src_compile() {
umake
}
src_install() {
insinto /firmware
doins u-boot u-boot.img MLO "${FILESDIR}"/uEnv.txt
}