commit:     ec9561279a978a3a64263fc30ddd30dc694fe237
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  4 15:37:00 2022 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Tue Oct  4 15:42:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec956127

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

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

 dev-embedded/u-boot-tools/Manifest                 |  1 +
 .../u-boot-tools/u-boot-tools-2022.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 5781b290f803..b73e288f4f19 100644
--- a/dev-embedded/u-boot-tools/Manifest
+++ b/dev-embedded/u-boot-tools/Manifest
@@ -1 +1,2 @@
 DIST u-boot-2022.07.tar.bz2 18087759 BLAKE2B 
bb78c7ccd56f12ebc622fb73d29cbf0a5db9d421133b191a6591845b4842b111145d2df649bae69011284bd468b8219ee0df20b61660ea4ec52006a93e14f09d
 SHA512 
e1b3621dafac876c644ffb3d24b6e2380f5a78454c420a5b17d174e3f0b57731a95cfbff28ae7d0af4493f4bbf8d21e7f9236d61bb2414ed12295332b3d557b6
+DIST u-boot-2022.10.tar.bz2 18365430 BLAKE2B 
42aa7a6f131735888939982e579de4342e3909e064ab896b0df6f1ff56c20ed6cb11d25286da7c052a5f67dcef6fa7a746944d8df6dd504586f5a71502d157e1
 SHA512 
95bc1f915a3349f6045e59f46d8514485ca0de1d62303f7026b8e59f3ac539b9545895e0dd736ed7b26f28239db31672ecad2accc3fd99356a55269697039147

diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2022.10.ebuild 
b/dev-embedded/u-boot-tools/u-boot-tools-2022.10.ebuild
new file mode 100644
index 000000000000..87f4e46b9f07
--- /dev/null
+++ b/dev-embedded/u-boot-tools/u-boot-tools-2022.10.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2022 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 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 via email to