diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-12 00:13:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-12 00:13:29 +0100 |
commit | e56f5e9b2405e6c2142d3738d459b1eae966e99c (patch) | |
tree | fa74c6b9ab1b13b2b1d4f42064ee321bc8f95b41 /dev-embedded/u-boot-tools | |
parent | fbf92eff5af6136b559e861a10d9e8516e372006 (diff) |
gentoo auto-resync : 12:10:2023 - 00:13:28
Diffstat (limited to 'dev-embedded/u-boot-tools')
-rw-r--r-- | dev-embedded/u-boot-tools/Manifest | 2 | ||||
-rw-r--r-- | dev-embedded/u-boot-tools/u-boot-tools-2023.10.ebuild | 81 |
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-embedded/u-boot-tools/Manifest b/dev-embedded/u-boot-tools/Manifest index aaf297c116f8..db77f39460f7 100644 --- a/dev-embedded/u-boot-tools/Manifest +++ b/dev-embedded/u-boot-tools/Manifest @@ -1,3 +1,5 @@ DIST u-boot-2023.01.tar.bz2 18560442 BLAKE2B 9412da6c7c8da8be64e470347d150ea2ba9a33b84f463c8ff3109e3db6c2dbcf13c8ab2e02bf3a2c412ff57c91987da922e4dde6a26e317e7b9e65101f7a6d62 SHA512 417a28267eb7875820d08fafc7316f164663609378637539e71648b0b9b7d28796b6c381717f31b0ab6472805fefd32628ef7d1b2e7b9f3c51c8ad122993f679 +DIST u-boot-2023.10.tar.bz2 19645392 BLAKE2B 1404ab42e8b0c821fbfdf612cc00ed5d6b1a1d15d4e69647e788cf97536234f89fe000f480107f8a78b56f7dae7a022f5e742c06ca7f381050e2251889fcdb83 SHA512 f238a69b9cc08ee0a69ea8ca2fa26975f2f2ede14e978b4db274b1e4095e43af0052307ac39034658a72ec9706951cd03c0f316d0591f391adecaf2cc9496fc4 EBUILD u-boot-tools-2023.01.ebuild 1560 BLAKE2B 205376dfffd0a8f02dba4a7add2232fd369566cd5743a1d8113abbc1525243b34c0f1d80844d42859732218083a6afb3a2a91840ed70e40d32120c824f77b42c SHA512 fdec6a97334b9c999a3d238829db07ed246344fa17e45e05bfda0fb6f2a45dfe0a39cd709554ee0594d85e7be60d1fb08f9bb8bfc7b7dff07886c69c0e637acf +EBUILD u-boot-tools-2023.10.ebuild 1557 BLAKE2B de15ce004450038dc0411e31fe8c1c085b38d7d46bb894fc20a03e853932b4c47fed8845a92cf7c42fd422984815c01b14afed7a526eb5a6591d27ecfe4e4ebf SHA512 14374a6c1b8f511be6b14b7a213df0ef04aefeb16740b64da2678fd92b71d341573aa4134c3d9cf4a35e41c8d4922346c756b56c7e07dd9b1f108c69c481b205 MISC metadata.xml 451 BLAKE2B 8634c7b8cd333dadddeb3622fbe298d19b5a470b85743717fb972e310869ee2a897110a9fd7b5781de016ba9a8c9baf7c6b5ed89279e98f086a4d326cdcce807 SHA512 981503c1d3a7dd42ca141b00a29fac43eb379603140767f0e0de94f54fd4180b498cebea56692c017ab7dbf9a2afdfb222edc5942c58429490456c064b5fa41d 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 +} |