aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools: Add gzip-libdeflate advanced compressorMarkus Stockhausen2023-01-022-0/+33
| | | | | | | | | | | | | | | | | Several devices provide U-Boot versions with only gzip compressed kernel support (e.g. Realtek switches). This compression method produces larger images than lzma. To save space on flash and avoid going the hard way with lzma-loader we can make use of enhanced gzip tool based on libdeflate compression library from https://github.com/ebiggers/libdeflate. It keeps 100% deflate/gzip compatibility while improving compression ratio. The image can be unpacked by the default inflate routines inside U-Boot. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> [Switched to v1.15 and made it work with cmake] Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Reviewed-by: Robert Marko <robimarko@gmail.com> Reviewed-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Sander Vanheule <sander@svanheule.net>
* tools: Improve diffability/maintainabilityOlliver Schinagl2022-12-241-5/+37
| | | | | | | | | | | | | | | | | | There's no purpose to squish multiple tools into a single line (and spread those out over multiple lines). It might look 'nice' in certain conditions, but it's annoying to maintain. For example, but not limited to: * adding/removing tools, causes hard to read diffs * Duplicates are harder to spot * Sorting can not be (easily?) automated With this proposed change, the above annoyances go away. Inserting a new tool can be done with a single line-change-diff, sorting can be done by any editor (in vi, select, :sort for example) and dupes are much easier to spot. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
* tools/xz: update to 5.2.10Nick Hainke2022-12-191-2/+2
| | | | | | Update to latest version. Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/patchelf: update to 0.17.0Linhui Liu2022-12-181-5/+4
| | | | | | Update to the latest released version. Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/sed: Fix handling of symlinks of 128 charsHauke Mehrtens2022-12-181-0/+47
| | | | | | | | | | | If the absolute path a symlink is pointing to is 128 bytes long sed failed with an error message like this: "<path>/sedstbU8O: Not a directory" This fixes a problem building python seen in the build bot. This patch is on its way into upstream sed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* tools/libressl: update to 3.7.0Linhui Liu2022-12-181-2/+2
| | | | | | | | | Release notes: https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.0-relnotes.txt https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.1-relnotes.txt https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.7.0-relnotes.txt Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/bash: update to 5.2.15Linhui Liu2022-12-171-2/+2
| | | | | | Update to the latest released version. Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/mpc: update to 1.3.1Linhui Liu2022-12-171-2/+2
| | | | | | | | | | | | | | | | | Version 1.3.1 new features: Bug fix: It is again possible to include mpc.h without including stdio.h. Version 1.3.0 new features: New function: mpc_agm New rounding modes "away from zero", indicated by the letter "A" and corresponding to MPFR_RNDA on the designated real or imaginary part. New experimental ball arithmetic. New experimental function: mpc_eta_fund Bug fixes: mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)| mpc_pow_fr: sign of zero part of result when the base has up to sign the same real and imaginary part, and the exponent is an even positive integer mpc_fma: the returned int value was incorrect in some cases (indicating whether the rounded real/imaginary parts were smaller/equal/greater than the exact values), but the computed complex value was correct. Remove the unmaintained Makefile.vc; build files for Visual Studio are maintained independently by Brian Gladman. Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* tools/ccache: update to 4.7.4Linhui Liu2022-12-172-3/+3
| | | | | | | | Release Notes: https://ccache.dev/releasenotes.html#_ccache_4_7_3 https://ccache.dev/releasenotes.html#_ccache_4_7_4 Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
* firmware-utils: fix archive checksumSander Vanheule2022-12-151-1/+1
| | | | | | | | | PKG_SOURCE_DATE was modified after updating PKG_MIRROR_HASH, causing the latter to change. This results in a warning during builds and rejected downloads. Fixes: 232879a7b7f8 ("firmware-utils: bump to git HEAD") Signed-off-by: Sander Vanheule <sander@svanheule.net>
* firmware-utils: bump to git HEADSander Vanheule2022-12-151-3/+3
| | | | | | | | Adds support for building TP-Link CPE605v1 factory images bd856eff4850 tplink-safeloader: add TP-Link CPE605 v1 Support Signed-off-by: Sander Vanheule <sander@svanheule.net>
* tools/dosfstools: fix PKG_SOURCEStijn Tintel2022-12-141-2/+2
| | | | | | | | Both mirrors provided in the Makefile only serve gzipped tarballs. Fixes: #10871 Fixes: 9edfe7dd13d9 ("source: Switch to xz for packages and tools where possible") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* tools/cmake: update to 3.25.1Hannu Nyman2022-12-064-5/+5
| | | | | | | | Update cmake to version 3.25.1 * refresh patches Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* e2fsprogs: Fix CVE-2022-1304Hauke Mehrtens2022-12-062-1/+51
| | | | | | | | | This fixes CVE-2022-1304: An out-of-bounds read/write vulnerability was found in e2fsprogs 1.46.5. This issue leads to a segmentation fault and possibly arbitrary code execution via a specially crafted filesystem. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* tools/xz: update to 5.2.9Nick Hainke2022-12-031-2/+2
| | | | | | Update to latest release. Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/mpfr: update to 4.1.1Nick Hainke2022-11-273-4/+80
| | | | | | | | | | | | | | Changes: - Bug fixes - Improved manual formatting Refresh patches: - 001-only_src.patch Import patch fixing macro bug: - 002-Fix-mpfr_custom_get_kind-macro-bug.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/bash: update to 5.2.9Nick Hainke2022-11-261-2/+2
| | | | | | Update to latest release. Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/patch: apply patch for EACCES on xattr copyThomas Weißschuh2022-11-202-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling OpenWRT on a compressed btrfs volume the build fails in libtool. The file `libltdl/config/ltmain.m4sh` from `libtool-2.4.2.tar.xz` is missing write permissions, therefore patch falls back to copying the file and patching that. During this patch tries to preserve all file attribute on the new copy. However the attribute `btrfs.compression` is privileged and btrfs return EACCES. While patch ignores multiple other error codes during the copy of xattr copy it is not prepared for EACCES and aborts. EACCES should be ignored the same way as the other errors. Build log: ``` ... Applying ./patches/000-relocatable.patch using plaintext: patching file libltdl/config/general.m4sh patching file libtoolize.in patching file libtoolize.m4sh patching file libltdl/m4/libtool.m4 Applying ./patches/100-libdir-fixes.patch using plaintext: patching file libltdl/config/ltmain.m4sh File libltdl/config/ltmain.sh is read-only; trying to patch anyway patching file libltdl/config/ltmain.sh patch: setting attribute btrfs.compression for btrfs.compression: Permission denied Patch failed! Please fix ./patches/100-libdir-fixes.patch! ``` Link: https://lists.gnu.org/archive/html/bug-patch/2022-11/msg00000.html Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* tools/sed: update to 4.9Nick Hainke2022-11-181-2/+2
| | | | | | | Release Notes: https://lists.gnu.org/archive/html/info-gnu/2022-11/msg00001.html Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/xz: update to 5.2.8Nick Hainke2022-11-161-2/+2
| | | | | | Update to latest release. Signed-off-by: Nick Hainke <vincent@systemli.org>
* mac80211: remove old legacy legacy driversFelix Fietkau2022-11-091-1/+1
| | | | | | | | | | | Get rid of drivers that are either limited to 802.11b/g or don't even support cfg80211/mac80211. Most of these are either limited to boards that we don't even support anymore because of firmware size, or were only used for custom hacks by a really small number of users in the past. Let's get rid of those to reduce the maintenance effort and the number of useless packages Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools/fakeroot: update to 1.30.1Nick Hainke2022-11-052-5/+5
| | | | | | | | | | Release Notes: https://tracker.debian.org/news/1381350/accepted-fakeroot-1301-1-source-into-unstable/ Refresh patches: - 600-macOS.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/elfutils: update to 1.88Nick Hainke2022-11-051-2/+2
| | | | | | | Release Notes: https://sourceware.org/pipermail/elfutils-devel/2022q4/005561.html Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/mtd-utils: update to 2.1.5Nick Hainke2022-11-053-6/+6
| | | | | | | | | | | Release Notes: https://lore.kernel.org/buildroot/c0992bbb-9487-9a51-ea9f-39cf074b61ec@sigma-star.at/ Refresh patches: - 130-lzma_jffs2.patch - 320-mkfs.jffs2-SOURCE_DATE_EPOCH.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/mtools: update to 4.0.42Nick Hainke2022-11-051-2/+2
| | | | | | | Release Notes: https://lists.gnu.org/archive/html/info-mtools/2022-10/msg00000.html Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/ccache: update to 4.7.2Raihaan Shouhell2022-10-311-2/+2
| | | | | | | Release Notes: https://ccache.dev/releasenotes.html#_ccache_4_7_2 Signed-off-by: Raihaan Shouhell <raihaanhimself@gmail.com>
* tools/ccache: update to 4.7.1Raihaan Shouhell2022-10-312-3/+3
| | | | | | | Release Notes: https://ccache.dev/releasenotes.html#_ccache_4_7_1 Signed-off-by: Raihaan Shouhell <raihaanhimself@gmail.com>
* tools/ccache: update to 4.7Raihaan Shouhell2022-10-312-10/+10
| | | | | | | Release Notes: https://ccache.dev/releasenotes.html#_ccache_4_7 Signed-off-by: Raihaan Shouhell <raihaanhimself@gmail.com>
* expat: update to 2.5.0Nick Hainke2022-10-311-2/+2
| | | | | | | | | Fixes CVE-2022-43680. Changes: https://github.com/libexpat/libexpat/blob/R_2_5_0/expat/Changes Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/mkimage: bring back removed patchesDaniel Golle2022-10-233-0/+1612
| | | | | | | | | | | | Patches for mtk_image supporting newer SoCs have been dropped in the process of updating mkimage to U-Boot 2022.10. While it is true that the patches have been merged upstream a while ago, they were not merged in time to be part of the U-Boot 2022.10 release. See also commit 537b423d9f ("uboot-mediatek: update to U-Boot 2022.10") which explicitly mentions that. Fixes: 6e245777bd ("tools/mkimage: update to 2022.10") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* tools/genext2fs: Add dependency to libtoolHauke Mehrtens2022-10-231-0/+1
| | | | | | | | This fixes the following build error: ./autogen.sh: line 13: aclocal: command not found Fixes: b6d29af9475f ("tools/genext2fs: update to 1.5.0") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* tools/genext2fs: update to 1.5.0Nick Hainke2022-10-225-638/+9
| | | | | | | | | | | | Update to latest version. Remove patches: - 100-c99_scanf.patch - 200-autoconf.patch - 300-blocksize-creator.patch - 400-byteswap_fix.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/genext2fs: switch to codeload.github.comNick Hainke2022-10-221-2/+2
| | | | | | | | | | | As written on the genext2fs.sourceforge.net page: "If you want bugfixes and nicer features though, you will have to grab the source from github and build it yourself." This commit switches the download from sourceforge to codeload.github.com. Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/dwarves: update to 1.24Nick Hainke2022-10-221-4/+6
| | | | | | | | | Release Notes: https://lwn.net/Articles/905738/ Switch to https "fedorapeople.org"-mirror. Use $(AUTORELEASE). Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/bash: update to 5.2Nick Hainke2022-10-221-2/+2
| | | | | | | Release Notes: https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00056.html Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/zlib: update to 1.2.13Nick Hainke2022-10-221-5/+4
| | | | | | | | | Switch to "https github.com" for downloading source files. Release Announcements: https://github.com/madler/zlib/releases/tag/v1.2.13 Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/bc: update to 1.07.1Nick Hainke2022-10-222-13/+2
| | | | | | | | | | Changes: Fixed ibase extension causing problems for read() Fixed parallel make problem. Remove the "003-bc-fix-hang.patch" because the hang is fixed upstream. Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/mtools: update to 4.0.41Nick Hainke2022-10-221-2/+2
| | | | | | | Release Notes: https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00011.html Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/xz: update to 5.2.7Nick Hainke2022-10-221-2/+2
| | | | | | Update to latest version. Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/mkimage: update to 2022.10Nick Hainke2022-10-225-1625/+13
| | | | | | | | | | | | Remove upstreamed patches: - 020-tools-mtk_image-split-gfh-header-verification-into-a.patch - 021-tools-mtk_image-split-the-code-of-generating-NAND-he.patch - 022-tools-mtk_image-add-support-for-nand-headers-used-by.patch Refreshed manually: - 030-allow-to-use-different-magic.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools: remove implicit dependenciesRosen Penev2022-10-201-4/+4
| | | | | | Small cleanup. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools: add Host/Uninstall where possibleRosen Penev2022-10-2026-14/+100
| | | | | | This cleans staging_dir when calling tool/x/clean. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* build: prefer HTTPS if available (for packages)Daniel Cousens2022-10-051-1/+1
| | | | | | | | Changes PKG_SOURCE_URL's for arptables, bsdiff, dnsmasq, fortify-headers, ipset, ipset-dns, libaudit, libpcap, libressl, lua, lua5.3, tcpdump and valgrind, to HTTPS Signed-off-by: Daniel Cousens <github@dcousens.com>
* tools/cmake: update to 3.24.2Nick Hainke2022-10-021-2/+2
| | | | | | | Release Notes: https://www.kitware.com/cmake-3-24-2-is-available-for-download/ Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/expat: switch to tar.xz to save bandwidthNick Hainke2022-10-021-2/+2
| | | | | | | The tar.xz download is a bit smaller. Use this download to save traffic. Suggested-by: hardfalcon Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/expat: update to 2.4.9Nick Hainke2022-10-021-2/+2
| | | | | | | | | Fixes CVE-2022-40674. Release Notes: https://github.com/libexpat/libexpat/blob/R_2_4_9/expat/Changes Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/meson: backport WSL2 fixRosen Penev2022-10-021-0/+21
| | | | | | | For some reason, Microsoft's Plan9 driver returns IOError on missing file. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools: add option BUILD_ALL_HOST_TOOLS to compile all host toolsChristian Marangi2022-09-301-12/+12
| | | | | | | | Add option to compile all host tools even if not needed. This can be useful to prepare a universal precompiled host tools archive to use in another buildroot and speedup compilation. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* tools/cmake: fix compilation with host libzstd-devRosen Penev2022-09-301-0/+18
| | | | | | | | cmake's find_package looks at host paths first for some reason. Switch to using pkgconfig for the search, matching other modules. Fixes: 3848cf458ef9 ("tools/cmake: Build without some included libs") Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/cmake: Build without some included libsRosen Penev2022-09-294-3/+46
| | | | | | | | | Saves a little bit of time when compiling cmake. Added patches to fix searching liblzma and zlib. The issue is that because pkgconfig is not used, the system libraries get used. Signed-off-by: Rosen Penev <rosenp@gmail.com>