Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/u-boot-tools/
Date: Wed, 27 Apr 2022 19:47:13
Message-Id: 1651088815.3ef39472e2812a577839cdc72fe0e2a2942c9d96.jsmolic@gentoo
1 commit: 3ef39472e2812a577839cdc72fe0e2a2942c9d96
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 27 19:19:38 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 27 19:46:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ef39472
7
8 dev-embedded/u-boot-tools: add 2022.04
9
10 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
11
12 dev-embedded/u-boot-tools/Manifest | 1 +
13 .../u-boot-tools/u-boot-tools-2022.04.ebuild | 79 ++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/dev-embedded/u-boot-tools/Manifest b/dev-embedded/u-boot-tools/Manifest
17 index 4d6ee54ddb83..2e1b7e3617e9 100644
18 --- a/dev-embedded/u-boot-tools/Manifest
19 +++ b/dev-embedded/u-boot-tools/Manifest
20 @@ -1 +1,2 @@
21 DIST u-boot-2022.01.tar.bz2 17449627 BLAKE2B 574f9d248a8c19aa20b1b16cb55bb201d6c1ab2162da3f8789d39286a4f4a5a76b772d4a49c17e5572ff69f489d1d6fdc02d6e8f67a8bf6c50159b1a41e7c81d SHA512 d83c62bd8f0f51664d2aca329a3ce1379cfd1dfff439dccd6cfc2cb33cfef89a2b01855c97716f591b5550bfdf99e2f3aef7efa33f2e7834c820648f9eef3825
22 +DIST u-boot-2022.04.tar.bz2 17772787 BLAKE2B 5d2035130c0631f8f1b7f7963bedf71578a66994e3950eb103a404a08e85686cd971ba51e8172093ccb75d975101024bf2a94d4064763ad57ad8950c11092319 SHA512 113056e542db049eea3b1d1ccbbe52c79539a2f9bb6129d284ec9200dcffec7bd5969821913a9899631575b80991c84ad01bc845b4bba614e42e54466d9f0d64
23
24 diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild
25 new file mode 100644
26 index 000000000000..2c89fa57625c
27 --- /dev/null
28 +++ b/dev-embedded/u-boot-tools/u-boot-tools-2022.04.ebuild
29 @@ -0,0 +1,79 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit toolchain-funcs
36 +
37 +MY_P="u-boot-${PV/_/-}"
38 +DESCRIPTION="utilities for working with Das U-Boot"
39 +HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome"
40 +SRC_URI="https://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
41 +S="${WORKDIR}/${MY_P}"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
46 +IUSE="envtools"
47 +
48 +RDEPEND="dev-libs/openssl:="
49 +DEPEND="${RDEPEND}"
50 +BDEPEND="
51 + sys-devel/bison
52 + sys-devel/flex
53 + virtual/pkgconfig
54 +"
55 +
56 +src_prepare() {
57 + default
58 + sed -i 's:\bpkg-config\b:${PKG_CONFIG}:g' \
59 + scripts/kconfig/{g,m,n,q}conf-cfg.sh \
60 + scripts/kconfig/Makefile \
61 + tools/Makefile || die
62 +}
63 +
64 +src_configure() {
65 + tc-export AR BUILD_CC CC PKG_CONFIG
66 +}
67 +
68 +src_compile() {
69 + # Unset a few KBUILD variables. Bug #540476
70 + unset KBUILD_OUTPUT KBUILD_SRC
71 +
72 + local myemakeargs=(
73 + V=1
74 + AR="${AR}"
75 + CC="${CC}"
76 + HOSTCC="${BUILD_CC}"
77 + HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)'
78 + HOSTLDFLAGS="${LDFLAGS}"
79 + )
80 +
81 + emake "${myemakeargs[@]}" tools-only_defconfig
82 +
83 + emake "${myemakeargs[@]}" \
84 + NO_SDL=1 \
85 + HOSTSTRIP=: \
86 + STRIP=: \
87 + CONFIG_ENV_OVERWRITE=y \
88 + $(usex envtools envtools tools-all)
89 +}
90 +
91 +src_test() { :; }
92 +
93 +src_install() {
94 + cd tools || die
95 +
96 + if ! use envtools; then
97 + dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
98 + fi
99 +
100 + dobin env/fw_printenv
101 +
102 + dosym fw_printenv /usr/bin/fw_setenv
103 +
104 + insinto /etc
105 + doins env/fw_env.config
106 +
107 + doman ../doc/mkimage.1
108 +}