commit:     40739431fe7d2e5bccbbdced53da0799e3c6bc5c
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  4 08:08:16 2023 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Wed Oct 11 20:34:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40739431

dev-embedded/u-boot-tools: add 2023.10

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

 dev-embedded/u-boot-tools/Manifest                 |  1 +
 .../u-boot-tools/u-boot-tools-2023.10.ebuild       | 81 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/dev-embedded/u-boot-tools/Manifest 
b/dev-embedded/u-boot-tools/Manifest
index a521291f8f5c..583540ca5619 100644
--- a/dev-embedded/u-boot-tools/Manifest
+++ b/dev-embedded/u-boot-tools/Manifest
@@ -1 +1,2 @@
 DIST u-boot-2023.01.tar.bz2 18560442 BLAKE2B 
9412da6c7c8da8be64e470347d150ea2ba9a33b84f463c8ff3109e3db6c2dbcf13c8ab2e02bf3a2c412ff57c91987da922e4dde6a26e317e7b9e65101f7a6d62
 SHA512 
417a28267eb7875820d08fafc7316f164663609378637539e71648b0b9b7d28796b6c381717f31b0ab6472805fefd32628ef7d1b2e7b9f3c51c8ad122993f679
+DIST u-boot-2023.10.tar.bz2 19645392 BLAKE2B 
1404ab42e8b0c821fbfdf612cc00ed5d6b1a1d15d4e69647e788cf97536234f89fe000f480107f8a78b56f7dae7a022f5e742c06ca7f381050e2251889fcdb83
 SHA512 
f238a69b9cc08ee0a69ea8ca2fa26975f2f2ede14e978b4db274b1e4095e43af0052307ac39034658a72ec9706951cd03c0f316d0591f391adecaf2cc9496fc4

diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2023.10.ebuild 
b/dev-embedded/u-boot-tools/u-boot-tools-2023.10.ebuild
new file mode 100644
index 000000000000..af9277b09444
--- /dev/null
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2023.10.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2023 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="
+       dev-lang/swig
+       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
+       tc-export_build_env
+}
+
+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="${BUILD_CFLAGS} ${BUILD_CPPFLAGS}"' $(HOSTCPPFLAGS)'
+               HOSTLDFLAGS="${BUILD_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 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 via email to