1 |
commit: 439222f49e0802834c2e5772d7b5cebd14f35e27 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 4 17:51:18 2022 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 4 18:08:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=439222f4 |
7 |
|
8 |
dev-embedded/u-boot-tools: add 2021.10 |
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-2021.10.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 c73978824566..381b4e4ab74f 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-2021.07.tar.bz2 17275746 BLAKE2B 1a209a604e0f30264781a14ca855bbb777e8f1c031de60d28de397084fc9bfc4a3771ad00ec22f5cdcfa721f22707a533b9b59004ac0b107df927f23dc5ab0a6 SHA512 210b206a4626feb0985580d9448a97b499b09bf9b9313ca847a66624785e9e9b0fae8f2e329acd344f5f75cb722d2093dd0ee394311ddd1fde05e400ee71a24d |
22 |
+DIST u-boot-2021.10.tar.bz2 17358295 BLAKE2B 2471e31236ae24778b985b8e7a032fe2d480e935e9c5ee77a6aff4821c61f7fb8b3d64f9f964d62d0c076e8ac526f1b9c19f7fa1a974f4665737ab0bfd950d03 SHA512 be5be1c9a54b270307a04177d5577a21c57a02b307bf8b63d0fa2655d1f025c7ce010dca6a1f7f60d4e639c2e6fb6f0a292a2e5d190f1fad478eb12dd786c9da |
23 |
|
24 |
diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2021.10.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2021.10.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..2c89fa57625c |
27 |
--- /dev/null |
28 |
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2021.10.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 |
+} |