Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/u-boot-tools/
Date: Thu, 21 May 2020 17:25:12
Message-Id: 1590081829.72f17f05fead2ac67b606bf1f1f7d1c6a6f2aff2.vapier@gentoo
1 commit: 72f17f05fead2ac67b606bf1f1f7d1c6a6f2aff2
2 Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
3 AuthorDate: Thu May 21 17:17:39 2020 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Thu May 21 17:23:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72f17f05
7
8 dev-embedded/u-boot-tools: switch build-only tools to BDEPEND
9
10 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
11
12 .../u-boot-tools/u-boot-tools-2020.04-r1.ebuild | 58 ++++++++++++++++++++++
13 1 file changed, 58 insertions(+)
14
15 diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2020.04-r1.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2020.04-r1.ebuild
16 new file mode 100644
17 index 00000000000..480bbd0f2a4
18 --- /dev/null
19 +++ b/dev-embedded/u-boot-tools/u-boot-tools-2020.04-r1.ebuild
20 @@ -0,0 +1,58 @@
21 +# Copyright 1999-2020 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI="7"
25 +
26 +inherit toolchain-funcs
27 +
28 +MY_P="u-boot-${PV/_/-}"
29 +DESCRIPTION="utilities for working with Das U-Boot"
30 +HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome"
31 +SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
32 +
33 +LICENSE="GPL-2"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
36 +IUSE=""
37 +
38 +BDEPEND="
39 + sys-devel/bison
40 + sys-devel/flex
41 +"
42 +
43 +S=${WORKDIR}/${MY_P}
44 +
45 +src_compile() {
46 + # Unset a few KBUILD variables. Bug #540476
47 + unset KBUILD_OUTPUT KBUILD_SRC
48 +
49 + emake \
50 + V=1 \
51 + HOSTCC="$(tc-getCC)" \
52 + HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
53 + HOSTLDFLAGS="${LDFLAGS}" \
54 + tools-only_defconfig
55 +
56 + emake \
57 + V=1 \
58 + NO_SDL=1 \
59 + HOSTSTRIP=: \
60 + STRIP=: \
61 + HOSTCC="$(tc-getCC)" \
62 + HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
63 + HOSTLDFLAGS="${LDFLAGS}" \
64 + CONFIG_ENV_OVERWRITE=y \
65 + tools-all
66 +}
67 +
68 +src_test() { :; }
69 +
70 +src_install() {
71 + cd tools || die
72 + dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
73 + dobin env/fw_printenv
74 + dosym fw_printenv /usr/bin/fw_setenv
75 + insinto /etc
76 + doins env/fw_env.config
77 + doman "${S}"/doc/mkimage.1
78 +}