1 |
commit: 37d5310f386fe475248a15d7ac484a4992bb3534 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 26 21:55:50 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 26 21:56:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37d5310f |
7 |
|
8 |
dev-embedded/u-boot-tools: respect user's AR setting, bug #718662 |
9 |
|
10 |
Reported-by: Agostino Sarubbo |
11 |
Closes: https://bugs.gentoo.org/718662 |
12 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
.../u-boot-tools/u-boot-tools-2020.04-r2.ebuild | 74 ++++++++++++++++++++++ |
16 |
1 file changed, 74 insertions(+) |
17 |
|
18 |
diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2020.04-r2.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2020.04-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..ac9b538b841 |
21 |
--- /dev/null |
22 |
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2020.04-r2.ebuild |
23 |
@@ -0,0 +1,74 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI="7" |
28 |
+ |
29 |
+inherit toolchain-funcs |
30 |
+ |
31 |
+MY_P="u-boot-${PV/_/-}" |
32 |
+DESCRIPTION="utilities for working with Das U-Boot" |
33 |
+HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome" |
34 |
+SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
39 |
+IUSE="" |
40 |
+ |
41 |
+BDEPEND=" |
42 |
+ sys-devel/bison |
43 |
+ sys-devel/flex |
44 |
+" |
45 |
+ |
46 |
+S=${WORKDIR}/${MY_P} |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ sed -i 's:\bpkg-config\b:${PKG_CONFIG}:g' \ |
51 |
+ scripts/kconfig/lxdialog/check-lxdialog.sh \ |
52 |
+ scripts/kconfig/Makefile \ |
53 |
+ tools/Makefile || die |
54 |
+} |
55 |
+ |
56 |
+src_configure() { |
57 |
+ tc-export AR CC PKG_CONFIG |
58 |
+} |
59 |
+ |
60 |
+src_compile() { |
61 |
+ # Unset a few KBUILD variables. Bug #540476 |
62 |
+ unset KBUILD_OUTPUT KBUILD_SRC |
63 |
+ |
64 |
+ emake \ |
65 |
+ V=1 \ |
66 |
+ AR="${AR}" \ |
67 |
+ CC="${CC}" \ |
68 |
+ HOSTCC="${CC}" \ |
69 |
+ HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \ |
70 |
+ HOSTLDFLAGS="${LDFLAGS}" \ |
71 |
+ tools-only_defconfig |
72 |
+ |
73 |
+ emake \ |
74 |
+ V=1 \ |
75 |
+ NO_SDL=1 \ |
76 |
+ HOSTSTRIP=: \ |
77 |
+ STRIP=: \ |
78 |
+ AR="${AR}" \ |
79 |
+ CC="${CC}" \ |
80 |
+ HOSTCC="${CC}" \ |
81 |
+ HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \ |
82 |
+ HOSTLDFLAGS="${LDFLAGS}" \ |
83 |
+ CONFIG_ENV_OVERWRITE=y \ |
84 |
+ tools-all |
85 |
+} |
86 |
+ |
87 |
+src_test() { :; } |
88 |
+ |
89 |
+src_install() { |
90 |
+ cd tools || die |
91 |
+ dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage |
92 |
+ dobin env/fw_printenv |
93 |
+ dosym fw_printenv /usr/bin/fw_setenv |
94 |
+ insinto /etc |
95 |
+ doins env/fw_env.config |
96 |
+ doman "${S}"/doc/mkimage.1 |
97 |
+} |