| 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 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 } |
| OLD | NEW |