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

Side by Side Diff: sys-boot/u-boot/u-boot-9999.ebuild

Issue 3187022: Add a "make distclean" to src_configure for U-Boot. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git
Patch Set: Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698