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