aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* ar71xx: add support for Buffalo BHR-4GRV2FUKAUMI Naoki2016-11-162-0/+224
| | | | Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
* firmware-utils: fix compilation on MacOS XAlexandru Ardelean2016-10-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Looking into /usr/include/stdlib.h, there's a `devname()` function defined under some #ifdef's which conflicts with the `static char *devname` definition in `src/mkwrggimg.c`. Defining `_ANSI_SOURCE` in the `src/mkwrggimg.c` file, omits that part of the header. Another more intrusive approach is to rename `devname` to something like `g_devname` in `src/mkwrggimg.c`. But I think the `_ANSI_SOURCE` define should be enough. Compilation error is: src/mkwrggimg.c:64:14: error: redefinition of 'devname' as different kind of symbol static char *devname; ^ /usr/include/stdlib.h:286:7: note: previous definition is here char *devname(dev_t, mode_t); ^ src/mkwrggimg.c:147:12: error: non-object type 'char *(dev_t, mode_t)' (aka 'char *(int, unsigned short)') is not assignable devname = optarg; ~~~~~~~ ^ src/mkwrggimg.c:192:6: warning: comparison of function 'devname' equal to a null pointer is always false [-Wtautological-pointer-compare] if (devname == NULL) { ^~~~~~~ ~~~~ src/mkwrggimg.c:192:6: note: prefix with the address-of operator to silence this warning if (devname == NULL) { ^ & src/mkwrggimg.c:251:27: warning: incompatible pointer types passing 'char *(dev_t, mode_t)' (aka 'char *(int, unsigned short)') to parameter of type 'const char *' [-Wincompatible-pointer-types] strncpy(header->devname, devname, sizeof(header->devname)); ^~~~~~~ /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest)) Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> [Jo-Philipp Wich: slightly reformat commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* firmware-utils: mkwrggimg: new tool for D-Link DAP-2695Stijn Tintel2016-10-272-0/+283
| | | | | | | Based on mkwrgimg.c. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
* ar71xx: Add support to TP-Link EAP120Henryk Heisig2016-10-181-0/+101
| | | | Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* tools/libressl: Update to 2.5.0 and use mirrorsDaniel Engberg2016-10-151-3/+5
| | | | | | Updates LibreSSL to 2.5.0 and switches from main site to mirrors as primary source. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* tools: add missing dependency for dosfstoolsFelix Fietkau2016-10-121-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* dosfstools: fix autotools dependencyÁlvaro Fernández Rojas2016-10-121-0/+2
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* tools: improve and simplify dosfstoolsÁlvaro Fernández Rojas2016-10-122-11/+27
| | | | | | | | | - use default host install and clean. - backport compatibility patch for OS X and LEDE (avoids having to force iconv for OS X). - use default HOST_BUILD_DIR. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* tools: remove old mkdosfs symlink from dosfstoolsÁlvaro Fernández Rojas2016-10-121-1/+0
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* tools: do not apply ccache dependency to xzJo-Philipp Wich2016-10-061-1/+1
| | | | | | | Since XZ is needed to bootstrap building ccache we must not depend on it, so remove the dependency on ccache to avoid circular dependencies. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: xz: force building without ccacheJo-Philipp Wich2016-10-061-0/+3
| | | | | | | Since XZ is required to bootstrap ccache we must not use the ccache compiler wrapper to avoid circular dependencies. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: make all tools depend on xzJo-Philipp Wich2016-10-061-0/+3
| | | | | | | Make all tools except tar (which is required to bootstrap xz-utils) and XZ itself depend on XZ, in order to be able to handle .tar.xz downloads. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: tar: use .bz2 archiveJo-Philipp Wich2016-10-061-2/+2
| | | | | | | The "tar" utility is required to bootstrap XZ which is required to handle .tar.xz archives, therfore revert to using the bz2 archive. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: xz: use .bz2 archiveJo-Philipp Wich2016-10-062-13/+10
| | | | | | | | | | In order to build XZ itself we cannot assume that XZ support is available, so fetch the bz2 archive variant of its sources instead. Also drop the FreeBSD portability patch and apply it at prepare time using sed, to avoid a dependency on GNU patch which in turn depends on XZ support. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* source: Switch to xz for packages and tools where possibleDaniel Engberg2016-10-069-20/+18
| | | | | | | | | | | * Change git packages to xz * Update mirror checksums in packages where they are used * Change a few source tarballs to xz if available upstream * Remove unused lines in packages we're touching, requested by jow- and blogic * We're relying more on xz-utils so add official mirror as primary source, master site as secondary. * Add SHA256 checksums to multiple git tarball packages Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* ccache: disable assembler support, it breaks kernel initramfs imagesFelix Fietkau2016-10-051-0/+32
| | | | | | | | The reason is that ccache does not recognize and process the .incbin directive, so caching is unreliable. See https://github.com/ccache/ccache/issues/136 for more information. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools/patchelf: Update to 0.9 and remove patchDaniel Engberg2016-10-042-10/+2
| | | | | | | Updates patchelf to 0.9 Patch removed, upstreamed. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* tools/upx: Update to 3.91 and use new tarball urldiizzyy2016-10-041-3/+3
| | | | | | Updates UPX to version 3.91 and also updates tarball url Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* tools/ppl: Update to 1.2diizzyy2016-10-041-2/+2
| | | | | | Updates ppl to version 1.2 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* tools/mpfr: Update to 3.1.5 and change to xz tarballdiizzyy2016-10-041-3/+3
| | | | | | Updates mpfr to 3.1.5 and changes tarball format to xz Signed-off-by: Daniel Engberg daniel.engberg.lists@pyret.net
* tools/expat: Update to 2.2.0diizzyy2016-10-041-3/+3
| | | | | | | | | | | | Updates expat to 2.2.0 Fixes several CVEs: CVE-2016-0718 CVE-2016-4472 CVE-2016-5300 CVE-2012-6702 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* tools/e2fsprogs: Update to 1.43.3diizzyy2016-10-041-2/+2
| | | | | | Update e2fsprogs to 1.43.3 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* tools/ccache: Update ccache 3.3.2 and refresh patchDaniel Engberg2016-10-042-27/+6
| | | | | | | | | | | | | | | | | | | | | | | Update ccache 3.3.2 and refresh patch Preserving the original patch comments here by Karl Vogel: "From 90762a9b8d9a50b6176f10bd6c2e2b9501117561 Mon Sep 17 00:00:00 2001 From: Karl Vogel <karl.vogel@gmail.com> Date: Tue, 14 Jul 2015 11:05:33 +0200 Subject: [PATCH] Include environment variable GCC_HONOUR_COPTS in hash. The OpenWRT patch, 910-mbsd_multi.patch, to GCC adds an extra compilation flag, -fhonour-copts, which is influenced by an environment variable called GCC_HONOUR_COPTS. Include this environment var in the hash calculation as otherwise the gcc stdout warning from a previous compilation might be shown where, even when GCC_HONOUR_COPTS is in 's'ilent mode. Signed-off-by: Karl Vogel <karl.vogel@gmail.com>" Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* ptgen: work around gcc miscompilationJonas Gorski2016-09-261-1/+3
| | | | | | | Some gcc versions seem to miscompile code using ternary operators, work around this by just returning the result if exp is 0. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* tools/firmware-utils: fix portability issue in mkmerakifw-oldFelix Fietkau2016-09-221-1/+1
| | | | | | Fixes build failure on Mac OS X Signed-off-by: Felix Fietkau <nbd@nbd.name>
* firmware-utils mkmerakifw-old: firmware generator for Z1Christian Lamparter2016-09-192-0/+370
| | | | | | This patch adds firmware generation tool for Cisco's Z1 Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
* firmware-utils: mksenaofw: rework option validationMathias Kresin2016-08-171-19/+22
| | | | | | | The options firmware_type, vendor_id and product_id are not required for decoding an image file. Signed-off-by: Mathias Kresin <dev@kresin.me>
* tools: make mtools/dosfstools unconditionalFelix Fietkau2016-08-281-1/+1
| | | | | | The list of targets that need them are getting longer Signed-off-by: Felix Fietkau <nbd@nbd.name>
* firmware-utils: mktplinkfw: add support for TP-Link's new region codesMatthias Schiffer2016-08-281-32/+37
| | | | | | | | | TP-Link has changed the way the region is stored in the firmware header, and now provides US- and EU-specific images for the Archer C7. Adding the new region codes is necessary to make LEDE/OpenWrt flashable on devices with the new stock firmwares again. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* tools: build GNU date from coreutils on non-Linux systemsFelix Fietkau2016-08-232-0/+39
| | | | | | Required for reproducible builds in the kernel build system Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: Select dosfstools for archs38Alexey Brodkin2016-08-181-1/+1
| | | | | | | | | | | | | | | | | In commit df4f41261cf9 ("archs38: Introduce images for SD-cards") we introduced building of SD-card images for ARC HS38-based boards. While building images mkdosfs utility is used. On machines I used for testing mentioned change this utility was already installed so I didn't figure-out that requirement. But thanks to Lede's autobuilder this missing bit was highlighted, see failed build job here: http://phase1.builds.lede-project.org/builders/archs38%2Fsd/builds/0/steps/images/logs/stdio Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: John Crispin <john@phrozen.org> Cc: Jo-Philipp Wich <jo@mein.io>
* tools/tar: Bump to 1.29Alexey Brodkin2016-08-162-19/+2
| | | | | | | | | This change updates tar from 1.28 to 1.29. Among other changes following commit http://git.savannah.gnu.org/cgit/tar.git/commit/lib/xattr-at.c?h=9c2b57232e3bc2e5ba85387560bcdd851849a128 substitutes previously used off-the-tree patch 100-fix_xattr_disable.patch Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
* tools/gmp: update to 6.1.1Hannu Nyman2016-08-151-2/+2
| | | | | | Update gmp to 6.1.1 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* tools/scons: update to 2.5.0Hannu Nyman2016-08-151-2/+2
| | | | | | Update scons to 2.5.0 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* tools/cmake: update to 3.6.1Hannu Nyman2016-08-153-7/+7
| | | | | | Update cmake to 3.6.1 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* tools: make_ext4fs: switch to LEDE git mirrorJo-Philipp Wich2016-08-141-1/+1
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: make_ext4fs: support creating empty filesystem imagesJo-Philipp Wich2016-08-141-3/+3
| | | | | | | Update make_ext4fs to latest git head in order to support creating empty filesystem images by making the source directory argument optional. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: flock: add NFSv4 compatibilityMathias Kresin2016-08-111-0/+16
| | | | | | | | | | | | | | | | | | | | | | This patch fixes the LEDE build on mounted NFSv4 shares. The lock file cannot be opened in read-write mode by default, because then we cannot use flock(1) to lock executable files. The read-write mode for lock files is necessary on NFSv4 where flock(2) is emulated by by fcntl() -- this situation is possible to detect by flock(2) EBADF error. The patch consist of the following util-linux/flock commits http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=eb742a1f66d5e3a7c5b43efce741c113f51bef3b http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=caf1ba11a367ad702fb774653daf9ebdcca49d7b without including the pre kernel 3.4 support. Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Felix Fietkau <nbd@nbd.name> [minor cleanup]
* tools: lzma: reduce copyright noiseSergey Ryazanov2016-08-041-0/+20
| | | | | | | | Move the copyright printing code to the usage printing function, to reduce noise from regular execution but preserve information about the author. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
* tools: bring back genext2fs for apm821xxFelix Fietkau2016-07-236-0/+688
| | | | | | | | This reverts commit 8c68c104eaba65273280c7a4727fbb10ab10f5af. It is used for apm821xx, which needs ext2 (not ext4) images for some devices. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* apm821xx: add support for the Cisco Meraki MR24Chris Blake2016-07-221-0/+10
| | | | | | | | | | | | | | | | | | | This patch adds support for the Cisco Meraki MR24 Access point to the apm821xx target. Board: MR24 - Meraki MR24 Cloud Managed Access Point CPU: APM82181 SoC 800 MHz (PLB=200 OPB=100 EBC=100) Flash size: 32MiB RAM Size: 128MiB Wireless: Atheros AR9380 5.0GHz + Atheros AR9380 2.4GHz Ethernet ports: 1x Gigabit Atheros AR8035 WARNING: The serial port needs a TTL/RS-232 v3.3 level converter! For flashing instructions, visit: <https://github.com/riptidewave93/Openwrt-MR24/blob/master/README.md#flashing> Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
* tools/isl: bump to 0.17.1Syrone Wong2016-07-151-2/+2
| | | | Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
* dosfstools: fix build on OS XÁlvaro Fernández Rojas2016-07-132-10/+2
| | | | | | | | - avoid using tools/include/endian.h on OS X to fix compilation. - remove unneeded Host/Compile definition. - refresh patches. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* tools: padjffs2: add option to output padding data to stdoutYousong Zhou2016-07-111-4/+16
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* tools: build b43 tools if the SDK was enabledFelix Fietkau2016-07-071-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: add kernel2minor utility for Mikrotik devicesSergey Sergeev2016-07-052-0/+32
| | | | | | | | This patch adds support of Mikrotik yaffs2 filesystem image for kernel file and tools/kernel2minor package. We neede this to boot kernel through RouterBoot on new Mikrotik NOR flash devices. Signed-off-by: Sergey Sergeev <adron@yapic.net>
* dosfstools: update to v4.0Álvaro Fernández Rojas2016-07-0416-2508/+43
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* e2fsprogs: fix build problem with very old libmagicHauke Mehrtens2016-06-301-0/+25
| | | | | | | | The libmagic shipped with RedHat 5 does not define MAGIC_NO_CHECK_ELF and MAGIC_NO_CHECK_COMPRESS. e2fsprogs should check for that, otherwise the build will fail. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
* tools: e2fsprogs: bump to 1.43.1Kevin Darbyshire-Bryant2016-06-225-16/+6
| | | | | | Bump e2fsprogs to v1.43.1 & refresh patches Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* squashfs4: use upstream xz compression header formatHauke Mehrtens2016-06-221-1/+1
| | | | | | | | | | | | | | | | | In the upstream kernel and the upstream squashfs4 tools the xz compression header looks the following: struct disk_comp_opts { __le32 dictionary_size; __le32 flags; }; We added some other members and also moved some existing members. Place the members which are already in upstream header at the same position as in that kernel and add our own at the end. The kernel should not have a problem when there are some additional members and just ignore them. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>