aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sunxi: add sysupgrade supportYousong Zhou2017-01-053-0/+91
| | | | | | | Enalbe builtin support for FAT filesystem as we need to mount boot partition to store sysupgrade.tgz there Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* sunxi: make sdcard image with squashfs as rootfsYousong Zhou2017-01-051-1/+2
| | | | | | | | | | | | | Two things that need to be noted - There is no partition type id allocated for squashfs yet. In the case of sunxi, any non-zero value should work and we keep it 83 (the value for ext4) - Remaining spare space within the rootfs partition, not the entire sdcard space will be formated as either f2fs or ext4 and mounted as overlay to serve the role of rootfs_data. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* sunxi: convert to new image generation methodYousong Zhou2017-01-0518-363/+171
| | | | | | | | | | | The new Device/xxx were transformed automatically from old profiles. Most device names are now taken from basename of the corresponding kernel device tree file. Device/sun5i-a13-olimex-som is an exception because it is not explicitly supported in the kernel yet and shares the same dts file with Device/sun5i-a13-olinuxino Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* uboot-sunxi: add uboot-sunxi-all for selecting all other variantsYousong Zhou2017-01-051-142/+50
| | | | | | | | | While at it, the following changes are introduced - Rewrite the Makefile for better readability - Make parallel builds possible Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* base-files: export x86 platform upgrade functions to common.shYousong Zhou2017-01-053-96/+95
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* sunxi: enable loopback device and f2fs supportYousong Zhou2017-01-051-0/+14
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* sunxi: fix dts name for Mele M9Yousong Zhou2017-01-051-1/+1
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* build: unzip: perform operations quietlyYousong Zhou2017-01-051-1/+1
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* x86: move sysupgrade.tgz only if it existsYousong Zhou2017-01-051-3/+6
| | | | | | | | To squash error messages at boot time mv: can't rename '/mnt/sysupgrade.tgz': No such file or directory Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* kernel: spi: allow setting chipselect gpio to sleepFelix Fietkau2017-01-051-0/+21
| | | | | | Fixes issues on some ar71xx MikroTik RouterBoard devices Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: remove a non-upstream spi core patchFelix Fietkau2017-01-055-208/+8
| | | | | | | - use standard flags instead - remove dead code from the rb4xx spi drivers Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ath9k: don't run periodic and nf calibration at the same timeFelix Fietkau2017-01-051-0/+26
| | | | | | Might fix some stability issues on older chips Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: use mkhash to replace various quirky md5sum/openssl callsFelix Fietkau2017-01-0522-45/+28
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: add a small standalone utility for calculating md5/sha256 hashFelix Fietkau2017-01-052-0/+833
| | | | | | | | This will be used to simplify the build system code for checking hashes. Instead of using various variants of md5sum / openssl, use one simple utility for all of them 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>
* host-build: remove openssl include path from host cflagsFelix Fietkau2017-01-051-5/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: build libressl on all systemsFelix Fietkau2017-01-052-18/+2
| | | | | | | Useful for having a more consistent build environment and finding API issues faster Signed-off-by: Felix Fietkau <nbd@nbd.name>
* oxnas: remove support for pre-4.4 kernels from driversDaniel Golle2017-01-044-63/+1
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel/modules: add SSSE3 SHA512 moduleStijn Tintel2017-01-041-1/+7
| | | | | | This module is optimized for SSSE3/AVX/AVX2. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel/modules: add SSSE3 SHA256 moduleStijn Tintel2017-01-041-1/+7
| | | | | | This module is optimized for SSSE3/AVX/AVX2/SHA-NI. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel/modules: add SSSE3 SHA1 moduleStijn Tintel2017-01-041-1/+7
| | | | | | This module is optimized for SSSE3/AVX/AVX2/SHA-NI. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: allow subtarget specific KernelPackageStijn Tintel2017-01-041-0/+2
| | | | | | | | | Add a call to KernelPackage/$(1)/$(BOARD)/$(SUBTARGET) to the KernelPackage macro. This allows to add kernel packages for x86/64, without breaking x86. It's not possible to do this with BOARD, as BOARD=x86 for x86_64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* x86/64: enable AES-NI support in kernelStijn Tintel2017-01-041-1/+2
| | | | | | | | | | | | | The kernel will detect if the host supports this, so we can just enable it in the kernel config. Tested on an APU2 with AES-NI support and a KVM VM on a Xeon E5520 host without AES-NI support. Throughput over an IPsec tunnel between these 2 hosts increased from ~63Mbps to ~140Mbps. Ciphers: AES_GCM_16_256/PRF_HMAC_SHA2_512/ECP_521. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* brcm47xx: generic: include Ethernet drivers in standard imageRafał Miłecki2017-01-041-0/+5
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm47xx: drop some personal profilesRafał Miłecki2017-01-043-50/+0
| | | | | | | | | | | | | | WL500GPv1 profile included ath5k which made it usable only for people who decided to replace default BCM4318 card with Atheros one. We can't have profile for every possible configuration. If someone adjusts hw in such a way he can always install a proper package. WRTSL54GS profile got extra packages for a specific USB usage. Our standard profile provides basic USB and we should stick to this. We can't make everyone happy by including packages for all common USB use cases and all common filesystems. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm47xx: generic: drop standalone profiles duplicating device onesRafał Miłecki2017-01-042-33/+0
| | | | | | We have identical profiles for these devices thanks to DEVICE_PACKAGES. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm47xx: generic: specify DEVICE_PACKAGES for all devicesRafał Miłecki2017-01-041-0/+6
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm47xx: fix bgmac packageRafał Miłecki2017-01-041-2/+5
| | | | | | With all recent patches & changes it needs more modules. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* build: add diffconfig targetJo-Philipp Wich2017-01-041-0/+4
| | | | | | | | Add a "diffconfig" build target which stores the output of "scripts/diffconfig.sh" as "config.seed" in the image output directory and invoke that target by default. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* powerpc: boot: fix build with parallel makeJo-Philipp Wich2017-01-041-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The powerpc boot wrapper Makefile is not parallel build safe, causing fixdep to fail reading dependency files of the addnote, hack-coff and mktree utilities when concurrently building different image targets. A typical failure looks like: Building modules, stage 2. HOSTCC arch/powerpc/boot/addnote HOSTCC arch/powerpc/boot/hack-coff DTC arch/powerpc/boot/taishan.dtb HOSTCC arch/powerpc/boot/addnote HOSTCC arch/powerpc/boot/hack-coff MODPOST 800 modules fixdep: error opening depfile: arch/powerpc/boot/.hack-coff.d: No such file or directory scripts/Makefile.host:91: recipe for target 'arch/powerpc/boot/hack-coff' failed make[5]: *** [arch/powerpc/boot/hack-coff] Error 2 make[5]: *** Waiting for unfinished jobs.... fixdep: error opening depfile: arch/powerpc/boot/.addnote.d: No such file or directory scripts/Makefile.host:91: recipe for target 'arch/powerpc/boot/addnote' failed make[5]: *** [arch/powerpc/boot/addnote] Error 2 rm arch/powerpc/boot/taishan.dtb arch/powerpc/Makefile:263: recipe for target 'cuImage.taishan' failed make[4]: *** [cuImage.taishan] Error 2 make[4]: *** Waiting for unfinished jobs.... Add a GNU make specific .NOTPARALLEL pseudo rule to enforce sequential building of the addnote, hack-coff and mktree executables. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* brcm47xx: mips74k: specify DEVICE_PACKAGES for all devicesRafał Miłecki2017-01-041-0/+39
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm47xx: legacy: specify DEVICE_PACKAGES for all devicesRafał Miłecki2017-01-041-1/+29
| | | | | | | This allows more feature complete images. Of course it affect the size, e.g. enabling b43 bumped rootfs from 1569618 to 2029122 for me. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* Revert "ath9k: Add airtime fairness scheduler"Felix Fietkau2017-01-049-728/+15
| | | | | | | | This reverts commit 528f46d0826afa01877ccc7670f2120a7a3b3ea8. After this commit, several users reported stability issues. Revert it now so it doesn't cause issues for the upcoming release Signed-off-by: Felix Fietkau <nbd@nbd.name>
* dnsmasq: add DHCP Unique Identifier for DHCPv6Arjen de Korte2017-01-031-1/+2
| | | | | | | Add DHCPv6 matching by DHCP Unique Identifier (RFC-3315) in addition to existing MAC-address (RFC-6939). The latter is not widely supported yet. Signed-off-by: Arjen de Korte <build+lede@de-korte.org>
* odhcpd: bump to git HEAD versionHans Dedecker2017-01-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | 091d8a9 dhcpv6-ia: fix static assignment check 11ce6b5 dhcpv6-ia: coding style fixes 561890e dhcpv6-ia: update valid_until only for non static DHCPv6 leases 0b45fce dhcpv4: coding style fixes 95b76c2 README: Add host leasetime uci parameter 541219e dhcpv6-ia: fix invalid IPv6/hostname entries in statefile 13937ab dhcpv6-ia: fix delete logic of an assignment in reconf_timer 60c3969 dhcpv6-ia : code style fixes bf4ebc0 config: use free_lease to delete a lease c24782a config: coding style fixes 0572d1a config: Create statefile dir ec833f4 dhcpv6-ia: use free_dhcpv6_assignment where needed 1d55edb dhcpv6-ia: make free_dhcpv6_assignment static f01e538 dhcpv4: make dhcpv4_msg_to_string static 700f5ab dhcpv4: fix DHCPv4 hostname handling 4c89614 Limit lifetime of non-static leases in case of release and decline Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* odhcp6c: bump to git HEAD versionHans Dedecker2017-01-031-5/+5
| | | | | | | | | 5d6fec3 Merge pull request #50 from sartura/libubox_md5_reuse 33a2ba1 odhcp6c: reuse md5 from libubox Switch PKG_SOURCE_URL to git.lede-project.org/project/odhcp6c.git Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* hostapd: enable SHA256-based algorithmsStijn Tintel2017-01-031-2/+2
| | | | | | | | | | | Enable support for stronger SHA256-based algorithms in hostapd and wpa_supplicant when using WPA-EAP or WPA-PSK with 802.11w enabled. We cannot unconditionally enable it, as it requires hostapd to be compiled with 802.11w support, which is disabled in the -mini variants. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Tested-by: Sebastian Kemper <sebastian_ml@gmx.net>
* hostapd: add function to handle wpa_key_mgmtStijn Tintel2017-01-031-9/+10
| | | | | | | | Now that wpa_key_mgmt handling for hostapd and wpa_supplicant are consistent, we can move parts of it to a dedicated function. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Tested-by: Sebastian Kemper <sebastian_ml@gmx.net>
* wpa_supplicant: rework wpa_key_mgmt handlingStijn Tintel2017-01-031-8/+9
| | | | | | | | Rework wpa_key_mgmt handling for wpa_supplicant to be consistent with how it is done for hostapd. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Tested-by: Sebastian Kemper <sebastian_ml@gmx.net>
* ath5k: select 802.11w supportStijn Tintel2017-01-031-1/+1
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* generic: mtd: add lock/unlock support for f25l32paVictor Shyba2017-01-031-0/+24
| | | | | | | This chip has write protection enabled on power-up, so this flag is necessary to support write operations. Signed-off-by: Victor Shyba <victor1984@riseup.net>
* generic: mtd: backport SPI_NOR_HAS_LOCKVictor Shyba2017-01-0332-183/+178
| | | | | | | | | This flag was added to 4.9 with upstream commit 76a4707de5e18dc32d9cb4e990686140c5664a15. Signed-off-by: Victor Shyba <victor1984@riseup.net> [refresh and adjust platform patches, fix commit message] Signed-off-by: Mathias Kresin <dev@kresin.me>
* layerscape: add ls2088ardb device supportYutang Jiang2017-01-0313-0/+2094
| | | | | | | | | | | | | | | | | | | The QorIQ LS2088A processor is built on the Layerscape architecture combining eight ARM A72 processor cores with advanced, high-performance datapath acceleration and network, peripheral interfaces required for networking, telecom, wireless infrastructure, aerospace applications and general-purpose embedded applications. Features summary: - Eight 64-bit ARM v8 Cortex-A72 CPUs - Two 64-bit DDR4 SDRAM memory controller with ECC - One 32-bit DDR3 SDRAM memory controller with ECC - Data path acceleration architecture 2.0 (DPAA2) - Ethernet interfaces - IFC, 4 PCIe, 2 SATA, 2 USB, 1 SDXC, 2 DUARTs etc Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
* layerscape: add ls1088ardb device supportYutang Jiang2017-01-0390-0/+44749
| | | | | | | | | | | | | | LS1088A is an ARMv8 implementation combining eight ARM A53 processor cores. The LS1088ARDB is an evaluatoin platform that supports the LS1088A family SoCs. Features summary: - Eight 64-bit ARM v8 Cortex-A53 CPUs - Data path acceleration architecture 2.0 (DPAA2) - Ethernet interfaces - QUADSPI flash, 3 PCIe, 2 USB, 1 SD, 2 DUARTs etc Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
* gre: add different per-protocol prefixes to GRE-TAP IPv4/6 tunnel interfaces.Roger Pueyo Centelles2017-01-032-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit modifies the /lib/netifd/proto/gre.sh script so that, when GRE-TAP tunnels are created, either IPv4 or IPv6, the prefix before the chosen interface name contains the "tap" substring, to differentiate them from non-TAP GRE tunnels. Right now, both GRE and GRE-TAP tunnel (either IPv4 or IPv6) interfaces defined in /etc/config/network are named equally ("gre-"+$ifname or "grev6"+$ifname) upon creation. For instance, the following tunnels: config interface 'tuna' option peeraddr '172.30.22.1' option proto 'gre' config interface 'tunb' option peeraddr '192.168.233.4' option proto 'gretap' config interface 'tunc' option peer6addr 'fdc5:7c9e:e93d:45af::1' option proto 'grev6' config interface 'tund' option peer6addr 'fdc0:6071:1348:31ff::2' option proto 'grev6tap' are named, respectively, "gre-tuna", "gre-tunb", "grev6-tunc" and "grev6-tund". The current change makes that each GRE tunnel interface of the four different types available (gre, gretap, grev6 and grev6tap) gets a different prefix. Therefore, the abovementioned tunnels will be named, respectively: "gre4-tuna", "gre4t-tunb", "gre6-tunc" and "gre6t-tund". This is coherent with other types of virtual interfaces (i.e. PPP, PPPoE, PPPoA) where the whole protocol name is used. For instance, a PPPoA interface named "p1" and a PPPoE interface named "p2" will respectively appear as "pppoa-p1" and "pppoe-p2", not as "ppp-p1" and "ppp-p2"). Since Linux interfaces names are limited to 15 characters, these prefixes leave, for the worst case (TAP tunnels), 9 characters for the actual name. Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
* build: drop `trapret` function from non-Linux HOST_TAR variantAlexandru Ardelean2017-01-032-21/+1
| | | | | | | | | | | | | | | | | | | | | | | | Looks like this was meant to workaround some limitations with non-GNU tar variants (like BSD-tar which are present on Mac os BSD hosts). Though, I cannot find any use of that `+s` option that's mentioned in the comment. Last hash of this I found was 24faf55360271cd0bfc4751753384f9210d52f7f In my case, it now this fails for `python-setuptools` on Mac OS X (the host-build with): ``` trapret 2 tar -C <home-dir>/work/sources-work/lede/build_dir/target-i386_pentium4_musl-1.1.15/python-setuptools-27.2.0 --strip-components=1 -xzf <home-dir>/work/sources-work/lede/dl/setuptools-27.2.0.tar.gz bash: trapret: command not found ``` So, I was thinking maybe it's time to remove this workaround (9 years later). I could also fix the `python-setuptools` host build. If that's more preferred. [ Btw, I just recently transitioned to a Mac machine for dev-ing, so a lot of (this Mac) stuff I'm finding out is new to me too. ] Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* elfutils: bump to 0.168Luiz Angelo Daros de Luca2017-01-036-218/+183
| | | | | | | | | | | Other changes: - Project moved to sourceware.org - musl patch where cleaned up and submitted upstream - TEMP_FAILURE_RETRY macro fixed and submitted upstream Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> [Jo-Philipp Wich: add missing .patch extension to 007-fix_TEMP_FAILURE_RETRY] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* download.pl: use curl in preference to wgetBrian J. Murrell2017-01-031-4/+22
| | | | | | | | | | | | | | | Because wget doesn't know how to do Negotiate authentication with a proxy and curl does, use curl if it's present. The user is expected to have a ~/.curlrc that sets the options necessary for any proxy authentication. A ~/.curlrc is completely optional however and curl will work in exactly the same manner as wget without one. Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca> [Jo-Philipp Wich: Rework code to detect curl usability by checking --version, Use vararg style open() to bypass the shell when downloading, Use Text::ParseWords to decompose env vars into arguments] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* curl: Remove PolarSSL and adjust default to mbedTLSRosen Penev2017-01-034-30/+14
| | | | | | | luci-ssl has already made the switch since mainline support for PolarSSL is almost over (2016). Signed-off-by: Rosen Penev <rosenp@gmail.com>
* 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>