aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools: cmake: fix compatibility with LibreSSL as wellJo-Philipp Wich2016-12-011-0/+22
| | | | | | | | Sadly, LibreSSL claims to be OpenSSL v2.0.0 while not providing the new interfaces introduced with OpenSSL v1.1.x, so extend the pre-OpenSSL 1.1.x compat checks to consider LibreSSL as well. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: cmake: import another upstream commit for OpenSSL backwards compatibilityJo-Philipp Wich2016-12-012-1/+191
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tools: cmake: import upstream patch for OpenSSL 1.1.x compatibilityJo-Philipp Wich2016-12-011-0/+379
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* mkimage: fix openssl 1.1.x compat fix with libresslFelix Fietkau2016-11-301-1/+1
| | | | | | | libressl sets OPENSSL_VERSION_NUMBER to 0x20000000L, which breaks API checks based on it. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: mkimage: fix build with OpenSSL 1.1.x (FS#182)Jo-Philipp Wich2016-11-301-0/+97
| | | | | | | | The OpenSSL 1.1.x version series undergone some major API changes which made the RSA structure opaque and deprecated a number of methods, so add some conditional compat code to make the u-boot source build again. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* firmware-utils: replace md5 code with Alexander Peslyak's implementationRafał Miłecki2016-11-282-337/+306
| | | | | | | | | | | | | | | | | | | Our current implementation is pretty old and uses some pre-standard/old ANSI C style that triggers warnings like: warning: call to function 'MD5_Init' without a real prototype [-Wunprototyped-calls] This is caused by declarations specified in a following way: src/md5.h:60:6: note: 'MD5_Init' was declared here void MD5_Init (); Having these warnings makes it harded to notice real problems. We could try hiding them but it makes more sense to just use a cleaner code. Another tiny gain from this switch is slightly reduced binary size, on x86_64 tplink-safeloader's size 48104 became 48003. The new code is public domain, uses "heavily cut-down BSD license". Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* firmware-utils: Fix build failure in mkmerakifw.c FS#298Florian Fainelli2016-11-261-9/+9
| | | | | | | | | Earlier compilers such as GCC 4 do not like anynomous unions, make it a named union "u", and update the code where relevant. Fixes FS#298 Fixes: a72e1692b8b3 ("firmware-utils: Add support for the Cisco Meraki MX60/MX60W") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* tools/cmake: update to 3.7.0Hannu Nyman2016-11-263-6/+6
| | | | | | | Release notes at https://cmake.org/cmake/help/v3.7/release/3.7.html Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* tools/quilt: update to 0.65Hannu Nyman2016-11-262-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | User-visible changes since 0.64 are as follows: - Translation fixes - Project settings have priority - Reject binary files in patches - Fix a race condition in diff_file - Performance: Optimizations to the setup command - Performance: Optimizations to the bash completion script - Test suite: Improve the edit test case - Test suite: Make the symlink test more robust - Test suite: Test backup failure - Test suite: Test the header command with hard links - diff: Report diff failures - edit: Fix a corner case bug - mail: Fix the help text - push: Fix the synopsis - refresh: Do not remove symlinks - refresh: Break links to read-only patch files - refresh: Always preserve modification time - setup: Report failed look-ups in inspect-wrapper - quilt.el: Fix quilt-editable when patches are stored in subdirs - bash_completion: Handle spaces in file names - bash_completion: Update the list of commands - bash_completion: Add new command options - bash_completion: Fix handling of mail, new, push options - guards: Simplify the help text - guards: Include the file name also in the "Not found" case - guards: Add support for an external filelist in --check mode - guards: Report which config file has problem in --check mode - guards: Documentation update - guards: Clarify a user message Note to packagers: the Makefile was modified to take configure's --sysconfdir into account as other projects do. As a result, setting --prefix=/usr will no longer put the configuration files under /etc. You now need to explicitly pass --sysconfdir=/etc. If you don't, configuration files will go under /usr/etc, which is not what you want. This is somewhat less intuitive, but also more consistent with what other projects are doing. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* tools/scons: update to 2.5.1Hannu Nyman2016-11-261-2/+2
| | | | | | | | | RELEASE 2.5.1 - Mon, 03 Nov 2016 13:37:42 -0400 - Add scons-configure-cache.py to packaging. It was omitted - Use memoization to optimize PATH evaluation across all dependencies per node. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* firmware-utils: Add support for the Cisco Meraki MX60/MX60WChris Blake2016-11-211-11/+58
| | | | | | | | | | | | | | This patch adds header support for the Cisco Meraki MX60/MX60W, which are a part of the apm821xx target. Some structure changes were needed due to the fact this device uses U-Boot (unlike other devices in mkmerakifw.c) which uses a different header structure to define the load offsets for the image. A thanks to Christian for helping implement this properly. Cc: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
* firmware-utils: tplink-safeloader: keep per-device info on trailing charRafał Miłecki2016-11-201-5/+11
| | | | | | | | | | | | | | | | | Recent refactoring introduced a regression. It ignored second argument of make_support_list function which was originally true for C2600. The new generic build_image function always passes false. This patch allows specifying trailing char in a device specific info. It also switches Archer C9 to the \0 char to make it compliant with vendor images. I verified generated images to be binary identical to the ones that were created before whole refactoring. Reported-by: Jo-Philipp Wich <jo@mein.io> Fixes: fd924d2068f ("firmware-utils: tplink-safeloader: use one function for generating images") Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* firmware-utils: tplink-safeloader: add Archer C9 supportRafał Miłecki2016-11-191-0/+33
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* firmware-utils: tplink-safeloader: use one function for generating imagesRafał Miłecki2016-11-191-79/+29
| | | | | | Thanks to the struct device_info we can now use one unified function. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* firmware-utils: tplink-safeloader: add struct device_infoRafał Miłecki2016-11-191-6/+19
| | | | | | | This struct stores all device specific info which allows making do_eap function more generic. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* firmware-utils: add tool to create zyxel imagesVitaly Chekryzhev2016-11-172-0/+149
| | | | | | | Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com> [moved to firmware-utils package] [dropped the compiled binary] Signed-off-by: Mathias Kresin <dev@kresin.me>
* 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>