| 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" |
| 11 SLOT="0" | 11 SLOT="0" |
| 12 KEYWORDS="~arm" | 12 KEYWORDS="~arm" |
| 13 IUSE="" | 13 IUSE="" |
| 14 | 14 |
| 15 DEPEND="" | 15 # U-Boot should have no runtime dependencies; everything it depends on must be |
| 16 RDEPEND="${DEPEND}" | 16 # statically linked. |
| 17 RDEPEND="" |
| 18 DEPEND="chromeos-base/vboot_reference" |
| 17 | 19 |
| 18 u_boot=${CHROMEOS_U_BOOT:-"files"} | 20 u_boot=${CHROMEOS_U_BOOT:-"files"} |
| 19 config=${CHROMEOS_U_BOOT_CONFIG:-"versatile_config"} | 21 config=${CHROMEOS_U_BOOT_CONFIG:-"versatile_config"} |
| 20 | 22 |
| 21 # | 23 # |
| 22 # Strip the ebuild directory to construct a valid CROS_WORKON_SUBDIR. This can | 24 # 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 | 25 # be removed once all of the overlay make.confs specify CHROMEOS_U_BOOT without |
| 24 # the u-boot directory prefixed. | 26 # the u-boot directory prefixed. |
| 25 # | 27 # |
| 26 CROS_WORKON_SUBDIR="${u_boot#u-boot/}" | 28 CROS_WORKON_SUBDIR="${u_boot#u-boot/}" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 39 src_compile() { | 41 src_compile() { |
| 40 tc-getCC | 42 tc-getCC |
| 41 tc-getSTRIP | 43 tc-getSTRIP |
| 42 | 44 |
| 43 emake \ | 45 emake \ |
| 44 ARCH=$(tc-arch-kernel) \ | 46 ARCH=$(tc-arch-kernel) \ |
| 45 CROSS_COMPILE="${CHOST}-" \ | 47 CROSS_COMPILE="${CHOST}-" \ |
| 46 USE_PRIVATE_LIBGCC=yes \ | 48 USE_PRIVATE_LIBGCC=yes \ |
| 47 HOSTCC=${CC} \ | 49 HOSTCC=${CC} \ |
| 48 HOSTSTRIP=${STRIP} \ | 50 HOSTSTRIP=${STRIP} \ |
| 51 VBOOT="${ROOT}/usr" \ |
| 49 all || die "U-Boot compile failed" | 52 all || die "U-Boot compile failed" |
| 50 } | 53 } |
| 51 | 54 |
| 52 src_install() { | 55 src_install() { |
| 53 dodir /u-boot | 56 dodir /u-boot |
| 54 | 57 |
| 55 insinto /u-boot | 58 insinto /u-boot |
| 56 doins u-boot.bin || die | 59 doins u-boot.bin || die |
| 57 | 60 |
| 58 dobin "${S}"/tools/mkimage || die | 61 dobin "${S}"/tools/mkimage || die |
| 59 } | 62 } |
| OLD | NEW |