Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/overlays/overlay-beagleboard/sys-boot/u-boot/u-boot-2009.11.ebuild

Issue 661216: Move public board overlays to the chromeos repository. (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=2
5
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="Das U-Boot boot loader"
9 HOMEPAGE="http://www.denx.de/wiki/U-Boot"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="arm"
13 IUSE="fastboot"
14
15 DEPEND=""
16 RDEPEND="${DEPEND}"
17
18 u_boot=${CHROMEOS_U_BOOT:-"u-boot/files"}
19 config=${CHROMEOS_U_BOOT_CONFIG:-"omap3_beagle_config"}
20 files="${CHROMEOS_ROOT}/src/third_party/${u_boot}"
21
22 src_unpack() {
23 elog "Using U-Boot files: ${files}"
24
25 mkdir -p "${S}"
26 cp -a "${files}"/* "${S}" || die "U-Boot copy failed"
27 }
28
29 src_prepare() {
30 if use fastboot ; then
31 epatch "${FILESDIR}/${P}-fastboot.patch"
32 fi
33 }
34
35
36 src_configure() {
37 elog "Using U-Boot config: ${config}"
38
39 emake \
40 ARCH=$(tc-arch-kernel) \
41 CROSS_COMPILE="${CHOST}-" \
42 USE_PRIVATE_LIBGCC=yes \
43 ${config} || die "U-Boot configuration failed"
44 }
45
46 src_compile() {
47 emake \
48 ARCH=$(tc-arch-kernel) \
49 CROSS_COMPILE="${CHOST}-" \
50 USE_PRIVATE_LIBGCC=yes \
51 all || die "U-Boot compile failed"
52 }
53
54 src_install() {
55 dodir /boot
56 cp -a "${S}"/u-boot.bin "${D}"/boot/ || die
57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698