| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 2 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 |
| 4 EAPI=2 | 4 EAPI=2 |
| 5 | 5 |
| 6 inherit cros-workon toolchain-funcs | 6 inherit cros-workon toolchain-funcs |
| 7 | 7 |
| 8 DESCRIPTION="Das U-Boot boot loader" | 8 DESCRIPTION="Das U-Boot boot loader" |
| 9 HOMEPAGE="http://www.denx.de/wiki/U-Boot" | 9 HOMEPAGE="http://www.denx.de/wiki/U-Boot" |
| 10 LICENSE="GPL-2" | 10 LICENSE="GPL-2" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 # | 21 # |
| 22 # Strip the ebuild directory to construct a valid CROS_WORKON_SUBDIR. This can | 22 # Strip the ebuild directory to construct a valid CROS_WORKON_SUBDIR. This can |
| 23 # be removed once all of the overlay make.confs specify CHROMEOS_U_BOOT without | 23 # be removed once all of the overlay make.confs specify CHROMEOS_U_BOOT without |
| 24 # the u-boot directory prefixed. | 24 # the u-boot directory prefixed. |
| 25 # | 25 # |
| 26 CROS_WORKON_SUBDIR="${u_boot#u-boot/}" | 26 CROS_WORKON_SUBDIR="${u_boot#u-boot/}" |
| 27 | 27 |
| 28 src_configure() { | 28 src_configure() { |
| 29 elog "Using U-Boot config: ${config}" | 29 elog "Using U-Boot config: ${config}" |
| 30 | 30 |
| 31 emake distclean |
| 31 emake \ | 32 emake \ |
| 32 ARCH=$(tc-arch-kernel) \ | 33 ARCH=$(tc-arch-kernel) \ |
| 33 CROSS_COMPILE="${CHOST}-" \ | 34 CROSS_COMPILE="${CHOST}-" \ |
| 34 USE_PRIVATE_LIBGCC=yes \ | 35 USE_PRIVATE_LIBGCC=yes \ |
| 35 ${config} || die "U-Boot configuration failed" | 36 ${config} || die "U-Boot configuration failed" |
| 36 } | 37 } |
| 37 | 38 |
| 38 src_compile() { | 39 src_compile() { |
| 39 tc-getCC | 40 tc-getCC |
| 40 tc-getSTRIP | 41 tc-getSTRIP |
| 41 | 42 |
| 42 emake \ | 43 emake \ |
| 43 ARCH=$(tc-arch-kernel) \ | 44 ARCH=$(tc-arch-kernel) \ |
| 44 CROSS_COMPILE="${CHOST}-" \ | 45 CROSS_COMPILE="${CHOST}-" \ |
| 45 USE_PRIVATE_LIBGCC=yes \ | 46 USE_PRIVATE_LIBGCC=yes \ |
| 46 HOSTCC=${CC} \ | 47 HOSTCC=${CC} \ |
| 47 HOSTSTRIP=${STRIP} \ | 48 HOSTSTRIP=${STRIP} \ |
| 48 all || die "U-Boot compile failed" | 49 all || die "U-Boot compile failed" |
| 49 } | 50 } |
| 50 | 51 |
| 51 src_install() { | 52 src_install() { |
| 52 dodir /u-boot | 53 dodir /u-boot |
| 53 | 54 |
| 54 insinto /u-boot | 55 insinto /u-boot |
| 55 doins u-boot.bin || die | 56 doins u-boot.bin || die |
| 56 | 57 |
| 57 dobin "${S}"/tools/mkimage || die | 58 dobin "${S}"/tools/mkimage || die |
| 58 } | 59 } |
| OLD | NEW |