public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jakov Smolić" <jsmolic@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/u-boot-tools/
Date: Mon, 30 Aug 2021 21:23:21 +0000 (UTC)	[thread overview]
Message-ID: <1630358499.16f3be66790df19991d406b9a2de69393f4e8c97.jsmolic@gentoo> (raw)

commit:     16f3be66790df19991d406b9a2de69393f4e8c97
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 28 11:23:02 2021 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Mon Aug 30 21:21:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16f3be66

dev-embedded/u-boot-tools: Version bump to 2021.07

* Bump EAPI to 8
* Use https:// instead of ftp:// in SRC_URI
* Combine same build flags into myemakeargs
* Use toolchain-funcs to export BUILD_CC and
  set HOSTCC=${BUILD_CC}, which enables us
  to correctly cross-compile the package,
  otherwise the build system tries to use
  cross-compiler as HOSTCC
* Add USE=envtools that builds and installs
  only target-side environment tools which is
  useful for low storage situations where we only
  need envtools to read and modify U-Boot environment
  variables. This functionality matches the uboot-envtools
  package which is available in OpenWRT

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 dev-embedded/u-boot-tools/Manifest                 |  1 +
 dev-embedded/u-boot-tools/metadata.xml             | 11 +--
 .../u-boot-tools/u-boot-tools-2021.07.ebuild       | 79 ++++++++++++++++++++++
 3 files changed, 87 insertions(+), 4 deletions(-)

diff --git a/dev-embedded/u-boot-tools/Manifest b/dev-embedded/u-boot-tools/Manifest
index af7e7c744be..758cfea596b 100644
--- a/dev-embedded/u-boot-tools/Manifest
+++ b/dev-embedded/u-boot-tools/Manifest
@@ -1 +1,2 @@
 DIST u-boot-2021.04-rc2.tar.bz2 16620315 BLAKE2B e16c167346ef3999443855b9a702bf28faacf51b7887c84096f7a372a0c820d6ed9f06c1dd209b4070adf8000853b58b7b9b81c5b32a973d37558acf1da2edfa SHA512 7bf07f15e0c5f5e63ef8cb9568278ea7c209e484bbb599c47b22a8d2e5c007cc204eec365e5328dea3e7b016cd6ba0cb4c917330cc76163b1016f7c7762ad1bf
+DIST u-boot-2021.07.tar.bz2 17275746 BLAKE2B 1a209a604e0f30264781a14ca855bbb777e8f1c031de60d28de397084fc9bfc4a3771ad00ec22f5cdcfa721f22707a533b9b59004ac0b107df927f23dc5ab0a6 SHA512 210b206a4626feb0985580d9448a97b499b09bf9b9313ca847a66624785e9e9b0fae8f2e329acd344f5f75cb722d2093dd0ee394311ddd1fde05e400ee71a24d

diff --git a/dev-embedded/u-boot-tools/metadata.xml b/dev-embedded/u-boot-tools/metadata.xml
index 71b1461e114..899a677d0cd 100644
--- a/dev-embedded/u-boot-tools/metadata.xml
+++ b/dev-embedded/u-boot-tools/metadata.xml
@@ -1,8 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer type="project">
-	<email>embedded@gentoo.org</email>
-	<name>Embedded Gentoo</name>
-</maintainer>
+	<maintainer type="project">
+		<email>embedded@gentoo.org</email>
+		<name>Embedded Gentoo</name>
+	</maintainer>
+	<use>
+		<flag name="envtools">Build only the target-side environment tools</flag>
+	</use>
 </pkgmetadata>

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
new file mode 100644
index 00000000000..8511d1c5504
--- /dev/null
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2021.07.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_P="u-boot-${PV/_/-}"
+DESCRIPTION="utilities for working with Das U-Boot"
+HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome"
+SRC_URI="https://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="envtools"
+
+RDEPEND="dev-libs/openssl:="
+DEPEND="${RDEPEND}"
+BDEPEND="
+	sys-devel/bison
+	sys-devel/flex
+	virtual/pkgconfig
+"
+
+src_prepare() {
+	default
+	sed -i 's:\bpkg-config\b:${PKG_CONFIG}:g' \
+		scripts/kconfig/{g,m,n,q}conf-cfg.sh \
+		scripts/kconfig/Makefile \
+		tools/Makefile || die
+}
+
+src_configure() {
+	tc-export AR BUILD_CC CC PKG_CONFIG
+}
+
+src_compile() {
+	# Unset a few KBUILD variables. Bug #540476
+	unset KBUILD_OUTPUT KBUILD_SRC
+
+	local myemakeargs=(
+		V=1
+		AR="${AR}"
+		CC="${CC}"
+		HOSTCC="${BUILD_CC}"
+		HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)'
+		HOSTLDFLAGS="${LDFLAGS}"
+	)
+
+	emake "${myemakeargs[@]}" tools-only_defconfig
+
+	emake "${myemakeargs[@]}" \
+		NO_SDL=1 \
+		HOSTSTRIP=: \
+		STRIP=: \
+		CONFIG_ENV_OVERWRITE=y \
+		$(usex envtools envtools tools-all)
+}
+
+src_test() { :; }
+
+src_install() {
+	cd tools || die
+
+	if ! use envtools; then
+		dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
+	fi
+
+	dobin env/fw_printenv
+
+	dosym fw_printenv /usr/bin/fw_setenv
+
+	insinto /etc
+	doins env/fw_env.config
+
+	doman ../doc/mkimage.1
+}


             reply	other threads:[~2021-08-30 21:23 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-30 21:23 Jakov Smolić [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-03 20:40 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/u-boot-tools/ Sam James
2025-04-03 20:40 Sam James
2025-04-03 19:24 Arthur Zamarin
2025-04-03 19:24 Arthur Zamarin
2025-04-03 19:24 Arthur Zamarin
2025-04-03 16:52 Arthur Zamarin
2025-02-24  8:06 Florian Schmaus
2024-08-06 14:36 Jakov Smolić
2024-08-06 14:36 Jakov Smolić
2024-08-06 14:36 Jakov Smolić
2024-07-12 10:29 Sam James
2024-07-12 10:29 Sam James
2024-07-12  8:14 Arthur Zamarin
2024-07-12  8:14 Arthur Zamarin
2024-07-12  8:14 Arthur Zamarin
2024-07-12  8:14 Arthur Zamarin
2024-02-15 18:11 Florian Schmaus
2024-02-04 10:25 Jakov Smolić
2023-11-22 17:10 Jakov Smolić
2023-11-17 12:16 Arthur Zamarin
2023-11-17 12:07 Sam James
2023-11-17 11:13 Sam James
2023-11-17 11:09 Sam James
2023-11-17 11:09 Sam James
2023-11-17 11:09 Sam James
2023-10-11 21:07 Jakov Smolić
2023-04-03  7:33 Jakov Smolić
2023-03-29 20:08 Sam James
2023-03-29 14:36 Sam James
2023-03-29 14:36 Sam James
2023-03-29 14:33 Sam James
2023-03-29 14:33 Sam James
2023-03-29 14:33 Sam James
2023-01-25  6:44 Jakov Smolić
2023-01-25  6:44 Jakov Smolić
2022-12-12 23:09 Georgy Yakovlev
2022-12-04 17:56 Arthur Zamarin
2022-12-03 16:02 Arthur Zamarin
2022-12-03 11:43 Arthur Zamarin
2022-12-03 10:57 Sam James
2022-12-03 10:54 Sam James
2022-10-04 15:42 Jakov Smolić
2022-08-29  7:41 Jakov Smolić
2022-08-29  7:41 Jakov Smolić
2022-08-27 16:03 Sam James
2022-08-27 16:03 Sam James
2022-08-27 15:59 Jakov Smolić
2022-08-27 15:51 Arthur Zamarin
2022-08-27 15:49 Arthur Zamarin
2022-07-23 15:41 Jakov Smolić
2022-07-07 10:02 Jakov Smolić
2022-05-29 17:27 Jakov Smolić
2022-05-28 16:34 Jakov Smolić
2022-05-28 16:07 Jakov Smolić
2022-05-28 16:07 Jakov Smolić
2022-05-28 15:58 Jakov Smolić
2022-05-28 15:58 Jakov Smolić
2022-04-27 19:47 Jakov Smolić
2022-03-07 19:08 Jakov Smolić
2022-03-06 23:56 Sam James
2022-03-06  7:57 Sam James
2022-03-02  9:05 Agostino Sarubbo
2022-03-01 11:42 Jakov Smolić
2022-03-01 11:42 Jakov Smolić
2022-02-28 19:22 Jakov Smolić
2022-02-28 19:22 Jakov Smolić
2022-02-07 13:31 Jakov Smolić
2022-02-07  5:49 Sam James
2022-02-06  8:04 Agostino Sarubbo
2022-02-06  7:35 Sam James
2022-02-05 21:09 Jakov Smolić
2022-01-18 22:16 Sam James
2022-01-14 18:25 Jakov Smolić
2022-01-05 18:04 Arthur Zamarin
2022-01-04 18:08 Jakov Smolić
2021-10-04  6:34 Jakov Smolić
2021-10-03 18:48 Sam James
2021-10-03 17:52 Agostino Sarubbo
2021-10-02 15:43 Sam James
2021-07-24  6:22 John Helmert III
2021-06-22 19:45 Sam James
2021-06-21 19:05 Sam James
2021-06-21 19:05 Sam James
2021-02-28 12:22 Sergei Trofimovich
2021-02-19  8:18 Sergei Trofimovich
2021-01-06  6:37 Sam James
2021-01-06  6:34 Sam James
2021-01-06  1:05 Sam James
2020-08-31  9:23 Yixun Lan
2020-05-26 21:56 Sergei Trofimovich
2020-05-21 17:25 Mike Frysinger
2020-05-21 17:25 Mike Frysinger
2020-04-17  7:11 Sergei Trofimovich
2020-02-05 10:07 Tim Harder
2020-02-01 10:59 Sergei Trofimovich
2020-01-27 11:24 Mikle Kolyada
2020-01-17 10:30 Agostino Sarubbo
2020-01-17  9:29 Agostino Sarubbo
2020-01-16 20:25 Tim Harder
2019-12-13 19:56 Sergei Trofimovich
2019-12-13  7:01 Mikle Kolyada
2019-08-25  4:16 Georgy Yakovlev
2019-08-25  4:16 Georgy Yakovlev
2019-02-05  6:27 Tim Harder
2018-12-27  8:27 Tim Harder
2018-12-09 17:08 Mikle Kolyada
2018-11-10 22:50 Mikle Kolyada
2018-09-03 14:13 Mikle Kolyada
2018-06-26 17:42 Mikle Kolyada
2018-06-25 18:45 Tim Harder
2017-10-02  4:25 Tim Harder
2017-05-09  4:38 Tim Harder
2016-12-12  4:06 Tim Harder
2016-11-10 22:17 Tim Harder
2016-09-20  3:45 Tim Harder
2016-08-26  2:09 Tim Harder
2016-08-26  2:09 Tim Harder
2016-03-24  3:39 Tim Harder
2016-02-27 18:39 Stephen Klimaszewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1630358499.16f3be66790df19991d406b9a2de69393f4e8c97.jsmolic@gentoo \
    --to=jsmolic@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox