| OLD | NEW |
| (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 git toolchain-funcs |
| 7 |
| 8 DESCRIPTION="X-Loader: Initial Program Loader for OMAP-based boards" |
| 9 EGIT_REPO_URI="git://gitorious.org/x-load-omap3/mainline.git" |
| 10 HOMEPAGE="http://git.gitorious.org/x-load-omap3/mainline.git" |
| 11 LICENSE="GPL-2" |
| 12 SLOT="0" |
| 13 KEYWORDS="arm" |
| 14 IUSE="fastboot" |
| 15 |
| 16 DEPEND="" |
| 17 RDEPEND="${DEPEND}" |
| 18 |
| 19 src_prepare() { |
| 20 if use fastboot ; then |
| 21 epatch "${FILESDIR}/${P}-fastboot.patch" |
| 22 fi |
| 23 # http://beagleboard.googlecode.com/files/signGP.c |
| 24 cp "${FILESDIR}"/signGP.c "${S}" |
| 25 } |
| 26 |
| 27 src_configure() { |
| 28 local configuration="omap3530beagle_config" |
| 29 |
| 30 elog "Using X-Loader config: ${configuration}" |
| 31 |
| 32 emake distclean |
| 33 emake "${configuration}" \ |
| 34 || die "X-Loader configuration failed" |
| 35 } |
| 36 |
| 37 src_compile() { |
| 38 emake \ |
| 39 ARCH=$(tc-arch-kernel) \ |
| 40 CROSS_COMPILE="${CHOST}-" \ |
| 41 || die "X-Loader compile failed" |
| 42 "$(tc-getBUILD_CC)" -o signGP signGP.c \ |
| 43 || die "signGP compile failed" |
| 44 ./signGP x-load.bin |
| 45 } |
| 46 |
| 47 src_install() { |
| 48 dodir /boot |
| 49 cp -a "${S}"/x-load.bin.ift "${D}"/boot/ |
| 50 } |
| OLD | NEW |