aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools/qemu: use default host configure rule ; set appropriate vars & argsAlexandru Ardelean2017-01-181-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>
* tools/cmake: remove HOST_CONFIGURE_CMD and re-distribute the args & varsAlexandru Ardelean2017-01-161-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>
* 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>
* xz: Update to 5.2.3Daniel Engberg2017-01-031-2/+2
| | | | | | Update xz to 5.2.3 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* libressl: disable shared libraries, fixes build issuesFelix Fietkau2016-12-281-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain: remove ppl/cloog, disable graphite for gcc 4.8Felix Fietkau2016-12-244-133/+1
| | | | | | | | graphite is disabled by default and it's not worth carrying ppl and cloog for supporting this feature on the old gcc 4.8, which is only used for ARC Signed-off-by: Felix Fietkau <nbd@nbd.name>
* b43-tools: fix tarball hashFelix Fietkau2016-12-221-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up and unify PKG_VERSION for git based downloadsFelix Fietkau2016-12-227-31/+8
| | | | | | Also use default defintions for PKG_SOURCE_SUBDIR, PKG_SOURCE Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: Add support to TP-Link Archer MR200Henryk Heisig2016-12-221-0/+13
| | | | | | | | | | CPU: MT7620N 580MHz Flash: 8MB RAM: 64MB build-in modem 3G/4G four ethernet port 10/100Mbps Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* firmware-utils/tplink-safeloader: add support for TP-Link RE450Radek Dostál2016-12-221-0/+42
| | | | | | Signed-off-by: Radek Dostál <rd@radekdostal.com> [Jo-Philipp Wich: use .support_trail member] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* firmware-utils: kernel image generator for TP-Link RE450Tal Keren2016-12-222-0/+353
| | | | | | | | | | | | | | | | | The firmware image that is used in TP-Link RE450 (and some more devices from the RE series) is tplink-safeloader. In the kernel partition, the kernel is compressed in a regular tp-link firmware that is just used for booting. Since it is only used for compressing and booting, only four fields are filled in the header: Vendor, version, kernel load address and kernel entry point. mktplinkfw-kernel is a simpler version of mktpolinkfw that generate such images. It also specifies the hardware id (as it is in the product info section), so when doing a sysupgrade - the existing code will check for hardware compatibility. Signed-off-by: Tal Keren <kooolk@gmail.com> [rd@radekdostal.com: add build target to .../image/tp-link.mk] Signed-off-by: Radek Dostál <rd@radekdostal.com>
* firmware-utils: add support for TL-WR1043ND v4 to mktplinkfw and ↵Matthias Schiffer2016-12-202-0/+50
| | | | | | | | | tplink-safeloader The TL-WR1043ND v4 uses a kernel image with a mktplinkfw header inside the os-image partition of a tplink-safeloader image. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* firmware-utils/tplink-safeloader: refactor code for further board supportJo-Philipp Wich2016-12-201-301/+265
| | | | | | | | | In order to make it easier to add new boards in the future, refactor the code to describe the image layouts of supported boards in a struct array and alter the image generation routines to figure out the sysupgrade partitions automatically. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* firmware-utils/tplink-safeloader: make vendor data optionalJo-Philipp Wich2016-12-201-8/+6
| | | | | | | Restructure the code a bit to allow for omitting vendor data when generating factory images. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* tar: fix reproducibility issueFelix Fietkau2016-12-191-0/+22
| | | | | | | Force root/root as names for uid0/gid0 instead of using the system names. This helps make packed download tarballs more reproducible Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: add CHECK_ALL variable to allow make download/check to include not ↵Felix Fietkau2016-12-171-0/+5
| | | | | | selected packages Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: implement make check and make package/X/checkFelix Fietkau2016-12-171-0/+1
| | | | | | | | | | | | | | | | This is intended to be used for a wide array of package sanity checks. The first check that is implemented is for the hash of downloaded files. It checks: - Missing hash - Use of SHA256 instead of MD5 - dl/<file> hash not matching hash in makefile - deprecated MD5SUM variable The deprecated MD5SUM variable check is skipped for feeds/ until OpenWrt is updated as well Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up download hashesFelix Fietkau2016-12-1651-48/+51
| | | | | | Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* firmware-utils: add E2100L support to addpattern.cJo-Philipp Wich2016-12-141-0/+7
| | | | | | Based on OpenWrt PR#250 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* firmware-utils: tplink-safeloader: update support lists for CPE210/510/...Matthias Schiffer2016-12-121-4/+14
| | | | | | | Adds support for new EU and US variants; removes a few strings that were never actually used and have been removed from the stock firmwares. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* tools/upslug2: add SHA256 hash to use mirror tarballFelix Fietkau2016-12-051-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* 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>