diff options
author | Jakov Smolić <jsmolic@gentoo.org> | 2023-01-25 07:33:45 +0100 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2023-01-25 07:33:45 +0100 |
commit | 2167f1a959d0aa0710b258d0ec00d3a2b76ddac2 (patch) | |
tree | 53ba22b6883e3bb5684417eb9613141c05cefa18 /dev-embedded | |
parent | dev-embedded/u-boot-tools: drop 2022.07 (diff) | |
download | gentoo-2167f1a959d0aa0710b258d0ec00d3a2b76ddac2.tar.gz gentoo-2167f1a959d0aa0710b258d0ec00d3a2b76ddac2.tar.bz2 gentoo-2167f1a959d0aa0710b258d0ec00d3a2b76ddac2.zip |
dev-embedded/u-boot-tools: add 2023.01
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/u-boot-tools/Manifest | 1 | ||||
-rw-r--r-- | dev-embedded/u-boot-tools/u-boot-tools-2023.01.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-embedded/u-boot-tools/Manifest b/dev-embedded/u-boot-tools/Manifest index 8972701796ea..cf31e2af8253 100644 --- a/dev-embedded/u-boot-tools/Manifest +++ b/dev-embedded/u-boot-tools/Manifest @@ -1 +1,2 @@ DIST u-boot-2022.10.tar.bz2 18365430 BLAKE2B 42aa7a6f131735888939982e579de4342e3909e064ab896b0df6f1ff56c20ed6cb11d25286da7c052a5f67dcef6fa7a746944d8df6dd504586f5a71502d157e1 SHA512 95bc1f915a3349f6045e59f46d8514485ca0de1d62303f7026b8e59f3ac539b9545895e0dd736ed7b26f28239db31672ecad2accc3fd99356a55269697039147 +DIST u-boot-2023.01.tar.bz2 18560442 BLAKE2B 9412da6c7c8da8be64e470347d150ea2ba9a33b84f463c8ff3109e3db6c2dbcf13c8ab2e02bf3a2c412ff57c91987da922e4dde6a26e317e7b9e65101f7a6d62 SHA512 417a28267eb7875820d08fafc7316f164663609378637539e71648b0b9b7d28796b6c381717f31b0ab6472805fefd32628ef7d1b2e7b9f3c51c8ad122993f679 diff --git a/dev-embedded/u-boot-tools/u-boot-tools-2023.01.ebuild b/dev-embedded/u-boot-tools/u-boot-tools-2023.01.ebuild new file mode 100644 index 000000000000..4d5d5d18ec53 --- /dev/null +++ b/dev-embedded/u-boot-tools/u-boot-tools-2023.01.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 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 +} |