aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools/coreutils: install readlinkFelix Fietkau2017-12-131-2/+2
| | | | | | | Parts of the build system use non-portable invocation of readlink Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 6bcc1c5331c797004e1b43168eb116d2d14b0102)
* tools/squashfs: use host cflagsFelix Fietkau2017-12-131-0/+1
| | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 20d363aed395e07ff42fe648f898b17f2077cc82)
* tools/pkg-config: Update to 0.29.2Daniel Engberg2017-12-132-20/+2
| | | | | | | | * Update pkg-config to 0.29.2 * Remove patch as it's upstreamed Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> (cherry picked from commit 965df21fd16e5966c64f207fe053ab8b6863081f)
* tar: override symlink permissionsFelix Fietkau2017-12-131-0/+10
| | | | | | | | | On Linux, symlink permissions cannot be altered and are always 0777. On Mac OS X they can be 0755. Force 0777 here to keep tarballs reproducible across systems Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit e25cedd0b5621dc02e47eea674006578ac062c9f)
* tools/sparse: Update to snapshot 2017-03-31Daniel Engberg2017-12-131-4/+4
| | | | | | | | Update sparse to snapshot 2017-03-31 Switch to HTTPS Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> (cherry picked from commit 9235a29e1a9764361940d4b38f4fce0358d8d9ee)
* tools/libressl: update to 2.5.4Hannu Nyman2017-12-131-3/+3
| | | | | Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> (cherry picked from commit d7a3120cdcc1aeed5a95636803d250e35ba8706e)
* tools/isl: update to 0.18Syrone Wong2017-12-131-2/+2
| | | | | Signed-off-by: Syrone Wong <wong.syrone@gmail.com> (cherry picked from commit a0f4b4b3a2cd4db1a2b9bab3c06970361192368f)
* tools/coreutils: Update to 8.27Daniel Engberg2017-12-131-2/+2
| | | | | | | Update coreutils to 8.27 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> (cherry picked from commit 80246ce67ec2a30dda51e3e4e135eab2ff249ccb)
* tools/libressl: Update to 2.5.1Daniel Engberg2017-12-131-2/+2
| | | | | | | Update libressl to 2.5.1 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> (cherry picked from commit e45ee66149688747a337a470a19beb182ce4dd61)
* tools/dosfstools: Update to 4.1Daniel Engberg2017-12-133-38/+4
| | | | | | | | | | Update to 4.1 Remove 0001-mkfs-Default-to-64-32-heads-sectors-for-targets-smal.patch as it's included in upstream repo. Refresh patch Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> (cherry picked from commit 49ded28027e5bba3ce623a8205aac0e8e70e250a)
* tools/sed: Update to 4.4Daniel Engberg2017-12-132-28/+3
| | | | | | | Update sed to 4.4 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> (cherry picked from commit 65d2800bd648a73a6814de2d42c074db1d290521)
* ccache: update to 3.3.4Kevin Darbyshire-Bryant2017-12-133-37/+3
| | | | | | | | | | Update from 3.3.2 to 3.3.4 & refresh patches. Remove 110-disable-assembler-support as ccache now understands the '.incbin' directive. Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> (cherry picked from commit 2cf00b640dce3ee9b09b41f2f1486a6a50bca45b)
* tools/m4: update 1.4.18Etienne Haarsma2017-12-132-19/+2
| | | | | | | Patch 100-fix-gets-removal.patch is removed because it's included in the new version. Signed-off-by: Etienne Haarsma <bladeoner112@gmail.com> (cherry picked from commit d90abebd06bbb004fc7957c39fe89202fbdca9f2)
* tools/sstrip: Fix compile under standard linux.Rosen Penev2017-12-131-4/+5
| | | | | | | bswap32 undefined is the issue. Added the proper header. Also fixed a few format/conversion warnings that clang complained about without -Wall or -Wextra. Signed-off-by: Rosen Penev <rosenp@gmail.com> (cherry picked from commit d6e34b735201805ae9112a7997f15b80f5926942)
* tools: patch various gnu tools for macOS 10.13Ryan Mounce2017-12-045-0/+125
| | | | | | | | | | | These host tools compile but may crash at runtime when building on macOS 10.13 (High Sierra). Backport upstream gnulib patch until new releases of affected tools. https://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00056.html https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=c41f233c4c38e84023a16339782ee306f03e7f59 Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
* tools/squashfs4: include sysmacros.h explicitlyAlex Maclean2017-10-255-16/+36
| | | | | | | | | | | | glibc is moving to remove the include of sys/sysmacros.h from sys/types.h, and some distros have done this early. Other libcs may already lack this include. Include sysmacros.h explicitly. Fixes: FS#1017 Signed-off-by: Alex Maclean <monkeh@monkeh.net> [refresh patches] Signed-off-by: Mathias Kresin <dev@kresin.me>
* tools/squashfs: include sysmacros.h explicitlyAlex Maclean2017-10-251-0/+20
| | | | | | | | | | glibc is moving to remove the include of sys/sysmacros.h from sys/types.h, and some distros have done this early. Other libcs may already lack this include. Include sysmacros.h explicitly. Fixes: FS#1018 Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* tools/mtd-utils: include sysmacros.h explicitlyAlex Maclean2017-10-251-0/+25
| | | | | | | | | | | | glibc is moving to remove the include of sys/sysmacros.h from sys/types.h, and some distros have done this early. Other libcs may already lack this include. Include sysmacros.h explicitly. Fixes: FS#1015 Signed-off-by: Alex Maclean <monkeh@monkeh.net> [refresh patches] Signed-off-by: Mathias Kresin <dev@kresin.me>
* tools/findutils: include sysmacros.h explicitlyAlex Maclean2017-10-251-0/+13
| | | | | | | | | | glibc is moving to remove the include of sys/sysmacros.h from sys/types.h, and some distros have done this early. Other libcs may already lack this include. Include sysmacros.h explicitly. Fixes: FS#1016 Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* cmake: fix build error with Xcode 9 on macOS 12Felix Fietkau2017-10-051-0/+15
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* firmware-utils: fix dgn3500sum compiler warningsMathias Kresin2017-06-262-4/+3
| | | | | | | | | | | The sum variable need to be initialised, otherwise it will points to random stack memory and a bogus image checksum might be calculated. While at it, fix the segfault in case the product region code isn't specified and enable compiler warnings which had revealed all the code issues. Signed-off-by: Mathias Kresin <dev@kresin.me>
* automake: import upstream fix for perl 5.26Daniel Golle2017-06-081-0/+30
| | | | | | | | Build broke as distributions now include Perl 5.26 and automake triggered an "Unescaped left brace in regex" error. Import upstream commit 13f00eb449 to fix that. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* firmware-utils: tplink-safeloader: add support for Archer C5 V2Rafał Miłecki2017-05-221-0/+34
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* tools: patch-image: fix file descriptor leak.Furong Xu2017-02-151-4/+0
| | | | | | Maybe this is committed by mistake, fix it. Signed-off-by: Furong Xu <xfr@outlook.com>
* ccache, samba36: fix samba.org addresses to use httpsHannu Nyman2017-02-021-1/+2
| | | | | | | | | | | | samba.org has started to enforce https and currently plain http downloads with curl/wget fail, so convert samba.org download links to use https. Modernise links at the same time. Also convert samba.org URL fields to have https. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* tools/cmake: remove HOST_CONFIGURE_CMD and re-distribute the args & varsAlexandru Ardelean2017-02-011-5/+2
| | | | | | | | | | The final semantic is the same, but this is a bit more correct. Build tested on Windows 10 (yes, there is some Ubuntu mode for Windows 10, and I've been also building LEDE on it for a few weeks). Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* tools: update kernel2minor to 0.24 versionSergey Sergeev2017-02-014-61/+4
| | | | Signed-off-by: Sergey Sergeev <adron@yapic.net>
* qemu: rename internal crypto/aes symbolsStijn Tintel2017-01-301-1/+7
| | | | | | | | | | | Qemu's local AES code defines symbols that conflict with LibreSSL/OpenSSL's libcrypto. Rename them to avoid build problems. See upstream commit c8d70e59738e672021926c7747af8ef9dea15c82. Fixes FS#444. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* tools/qemu: use default host configure rule ; set appropriate vars & argsAlexandru Ardelean2017-01-301-9/+7
| | | | | | | | | | | Admittedly, this is my own OCD wanting to get rid of this. Because I tried (a while back to upgrade QEMU to a newer version), and (during that attempt) I tried to get rid of this. Tested on Linux & Mac. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* cmake: properly pass host cflags/ldflags to the buildFelix Fietkau2017-01-131-1/+2
| | | | | | | | This should hopefully fix build issues where libraries that we ship in tools/ were accidentally picked up from other places on the system, e.g. /usr/local Signed-off-by: Felix Fietkau <nbd@nbd.name>
* cmake: support verbose build that shows compiler commandsFelix Fietkau2017-01-131-0/+4
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* cmake: restore parallel build support for bootstrapFelix Fietkau2017-01-132-1/+17
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: cmake: link librt if needed (FS#381)Jo-Philipp Wich2017-01-112-3/+33
| | | | | | | | | | Patch cmakes cmcurl component to unconditionally link librt when we discover a clock_gettime() symbol in -lrt. This is required to sucessfully link LibreSSL's libcrypto which might or might not reqauire librt. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: mkimage: pass crypto libraries through HOST_LOADLIBES (FS#381)Jo-Philipp Wich2017-01-111-2/+2
| | | | | | | | Since linker argument order is significant on modern host compilers, pass the required libcrypto libraries through the HOST_LOADLIBES variable in order to ensure proper order of the final linker command line. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: libressl: always build as PICMatthias Schiffer2017-01-101-0/+1
| | | | | | | | | Fixes link errors for host packages like ruby like the following: /usr/bin/ld: .../staging_dir/host/lib/libcrypto.a(libcrypto_la-md5_dgst.o): relocation R_X86_64_PC32 against symbol `memcpy@@GLIBC_2.14' can not be used when making a shared object; recompile with -fPIC Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* tools: remove obsolete yaffs toolFelix Fietkau2017-01-094-176/+1
| | | | | | This was added a long time ago and was apparently never used Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: reorganize dependencies, fix build after deleting staging dirFelix Fietkau2017-01-092-12/+18
| | | | | | | | | | | A lot of packages (especially those using libtool) depend on sed being available. xz fails on an incremental build pretty early if it's not there. Clean up handling if essential core tools (patch, tar, xz), build them in parallel and make them depend on sed Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: remove ubifs xz decompression supportFelix Fietkau2017-01-093-383/+5
| | | | | | | It has been unused, and less useful than squashfs for cases where flash space usage matters. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools/kernel2minor: fix permissions of created filesFelix Fietkau2017-01-061-0/+11
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools/kernel2minor: fix endian conversion issues, allow creating ↵Felix Fietkau2017-01-061-0/+33
| | | | | | little-endian images Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools/kernel2minor: fix portability issueFelix Fietkau2017-01-061-0/+13
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* firmware-utils: tplink-safeloader: add support for TP-Link WBS210/510 1.2Matthias Schiffer2017-01-051-0/+62
| | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* tools: cmake: use different approach for passing LDFLAGSJo-Philipp Wich2017-01-051-3/+5
| | | | | | | Funnel the required LDFLAGS environment through HOST_CONFIGURE_CMD for now as the HOST_CONFIGURE_VARS semantics are completely broken. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: cmake: use pkg-config to discover libcrypto linker flagsJo-Philipp Wich2017-01-051-1/+2
| | | | | | | | | LibreSSL's libcrypto.so has an indirect dependency to librt for clock_gettime() on Linux. Use pkg-config to portably discover the required linker flags. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: mkimage: use pkg-config to discover libcrypto linker flagsJo-Philipp Wich2017-01-051-2/+2
| | | | | | | | | LibreSSL's libcrypto.so has an indirect dependency to librt for clock_gettime() on Linux. Use pkg-config to portably discover the required linker flags. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: make libressl build depend on pkg-configJo-Philipp Wich2017-01-051-0/+1
| | | | | | | Ensure that pkg-config is available before building libressl as we're going to need it for setting proper link flags in utilities requiring libcrypto. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* cmake: update to version 3.7.1Felix Fietkau2017-01-054-571/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: make cmake depend on libressl, one of its utilities uses itFelix Fietkau2017-01-051-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: build libressl on all systemsFelix Fietkau2017-01-051-4/+2
| | | | | | | Useful for having a more consistent build environment and finding API issues faster Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: gmp: Update to 6.1.2Daniel Engberg2017-01-031-2/+2
| | | | | | Updates GMP to 6.1.2 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>