1 |
commit: 16f3be66790df19991d406b9a2de69393f4e8c97 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 28 11:23:02 2021 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 30 21:21:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16f3be66 |
7 |
|
8 |
dev-embedded/u-boot-tools: Version bump to 2021.07 |
9 |
|
10 |
* Bump EAPI to 8 |
11 |
* Use https:// instead of ftp:// in SRC_URI |
12 |
* Combine same build flags into myemakeargs |
13 |
* Use toolchain-funcs to export BUILD_CC and |
14 |
set HOSTCC=${BUILD_CC}, which enables us |
15 |
to correctly cross-compile the package, |
16 |
otherwise the build system tries to use |
17 |
cross-compiler as HOSTCC |
18 |
* Add USE=envtools that builds and installs |
19 |
only target-side environment tools which is |
20 |
useful for low storage situations where we only |
21 |
need envtools to read and modify U-Boot environment |
22 |
variables. This functionality matches the uboot-envtools |
23 |
package which is available in OpenWRT |
24 |
|
25 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
26 |
|
27 |
dev-embedded/u-boot-tools/Manifest | 1 + |
28 |
dev-embedded/u-boot-tools/metadata.xml | 11 +-- |
29 |
.../u-boot-tools/u-boot-tools-2021.07.ebuild | 79 ++++++++++++++++++++++ |
30 |
3 files changed, 87 insertions(+), 4 deletions(-) |
31 |
|
32 |
diff --git a/dev-embedded/u-boot-tools/Manifest b/dev-embedded/u-boot-tools/Manifest |
33 |
index af7e7c744be..758cfea596b 100644 |
34 |
--- a/dev-embedded/u-boot-tools/Manifest |
35 |
+++ b/dev-embedded/u-boot-tools/Manifest |
36 |
@@ -1 +1,2 @@ |
37 |
DIST u-boot-2021.04-rc2.tar.bz2 16620315 BLAKE2B e16c167346ef3999443855b9a702bf28faacf51b7887c84096f7a372a0c820d6ed9f06c1dd209b4070adf8000853b58b7b9b81c5b32a973d37558acf1da2edfa SHA512 7bf07f15e0c5f5e63ef8cb9568278ea7c209e484bbb599c47b22a8d2e5c007cc204eec365e5328dea3e7b016cd6ba0cb4c917330cc76163b1016f7c7762ad1bf |
38 |
+DIST u-boot-2021.07.tar.bz2 17275746 BLAKE2B 1a209a604e0f30264781a14ca855bbb777e8f1c031de60d28de397084fc9bfc4a3771ad00ec22f5cdcfa721f22707a533b9b59004ac0b107df927f23dc5ab0a6 SHA512 210b206a4626feb0985580d9448a97b499b09bf9b9313ca847a66624785e9e9b0fae8f2e329acd344f5f75cb722d2093dd0ee394311ddd1fde05e400ee71a24d |
39 |
|
40 |
diff --git a/dev-embedded/u-boot-tools/metadata.xml b/dev-embedded/u-boot-tools/metadata.xml |
41 |
index 71b1461e114..899a677d0cd 100644 |
42 |
--- a/dev-embedded/u-boot-tools/metadata.xml |
43 |
+++ b/dev-embedded/u-boot-tools/metadata.xml |
44 |
@@ -1,8 +1,11 @@ |
45 |
<?xml version="1.0" encoding="UTF-8"?> |
46 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
47 |
<pkgmetadata> |
48 |
-<maintainer type="project"> |
49 |
- <email>embedded@g.o</email> |
50 |
- <name>Embedded Gentoo</name> |
51 |
-</maintainer> |
52 |
+ <maintainer type="project"> |
53 |
+ <email>embedded@g.o</email> |
54 |
+ <name>Embedded Gentoo</name> |
55 |
+ </maintainer> |
56 |
+ <use> |
57 |
+ <flag name="envtools">Build only the target-side environment tools</flag> |
58 |
+ </use> |
59 |
</pkgmetadata> |
60 |
|
61 |
diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2021.07.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2021.07.ebuild |
62 |
new file mode 100644 |
63 |
index 00000000000..8511d1c5504 |
64 |
--- /dev/null |
65 |
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2021.07.ebuild |
66 |
@@ -0,0 +1,79 @@ |
67 |
+# Copyright 1999-2021 Gentoo Authors |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+ |
70 |
+EAPI=8 |
71 |
+ |
72 |
+inherit toolchain-funcs |
73 |
+ |
74 |
+MY_P="u-boot-${PV/_/-}" |
75 |
+DESCRIPTION="utilities for working with Das U-Boot" |
76 |
+HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome" |
77 |
+SRC_URI="https://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2" |
78 |
+S="${WORKDIR}/${MY_P}" |
79 |
+ |
80 |
+LICENSE="GPL-2" |
81 |
+SLOT="0" |
82 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" |
83 |
+IUSE="envtools" |
84 |
+ |
85 |
+RDEPEND="dev-libs/openssl:=" |
86 |
+DEPEND="${RDEPEND}" |
87 |
+BDEPEND=" |
88 |
+ sys-devel/bison |
89 |
+ sys-devel/flex |
90 |
+ virtual/pkgconfig |
91 |
+" |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ default |
95 |
+ sed -i 's:\bpkg-config\b:${PKG_CONFIG}:g' \ |
96 |
+ scripts/kconfig/{g,m,n,q}conf-cfg.sh \ |
97 |
+ scripts/kconfig/Makefile \ |
98 |
+ tools/Makefile || die |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ tc-export AR BUILD_CC CC PKG_CONFIG |
103 |
+} |
104 |
+ |
105 |
+src_compile() { |
106 |
+ # Unset a few KBUILD variables. Bug #540476 |
107 |
+ unset KBUILD_OUTPUT KBUILD_SRC |
108 |
+ |
109 |
+ local myemakeargs=( |
110 |
+ V=1 |
111 |
+ AR="${AR}" |
112 |
+ CC="${CC}" |
113 |
+ HOSTCC="${BUILD_CC}" |
114 |
+ HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' |
115 |
+ HOSTLDFLAGS="${LDFLAGS}" |
116 |
+ ) |
117 |
+ |
118 |
+ emake "${myemakeargs[@]}" tools-only_defconfig |
119 |
+ |
120 |
+ emake "${myemakeargs[@]}" \ |
121 |
+ NO_SDL=1 \ |
122 |
+ HOSTSTRIP=: \ |
123 |
+ STRIP=: \ |
124 |
+ CONFIG_ENV_OVERWRITE=y \ |
125 |
+ $(usex envtools envtools tools-all) |
126 |
+} |
127 |
+ |
128 |
+src_test() { :; } |
129 |
+ |
130 |
+src_install() { |
131 |
+ cd tools || die |
132 |
+ |
133 |
+ if ! use envtools; then |
134 |
+ dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage |
135 |
+ fi |
136 |
+ |
137 |
+ dobin env/fw_printenv |
138 |
+ |
139 |
+ dosym fw_printenv /usr/bin/fw_setenv |
140 |
+ |
141 |
+ insinto /etc |
142 |
+ doins env/fw_env.config |
143 |
+ |
144 |
+ doman ../doc/mkimage.1 |
145 |
+} |