aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tools/cmake: fix parallel build with Make 4.2+Matthias Schiffer2016-07-071-2/+3
| | | | | | | | Avoid using the --parallel argument to the CMake bootstrap, as that doesn't allow us to remove the -j argument. Instead, pass the HOST_JOBS arguments in MAKEFLAGS. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* build: don't add -j for parallel builds with Make 4.2+Matthias Schiffer2016-07-072-2/+2
| | | | | | | | | | | | | | | | | | Make usually passes -j and jobserver arguments as part of MAKEFLAGS. LEDE removes MAKEFLAGS to have better control of the build, and re-adds the jobserver arguments with -j to the Make commandline where desired. Make 4.2+ behave differently with these arguments passed on the commandline than in MAKEFLAGS: -j will override the jobserver argument and the job count will be unlimited. Moving the flags to MAKEFLAGS will need many packages to be changed and tested; therefore, we opt for a less invasive change for now and just remove -j for Make 4.2+, as the jobserver argument alone is enough to enable parallel builds for these Make versions. Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* tools: patch-image: Added optional size optionVishnu Swaroop Duddu2016-07-072-12/+24
| | | | | | | | | | Added optional command line option for patch-image tool Default 16KB size is still maintained as this is an optional argument. if one wants to specify or increase size they can provide this option. sample usage: patch-dtb <file> <dtb> [dtb max size] Signed-off-by: Vishnu Swaroop Duddu <duddu.swaroop@intel.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ebtables: fix segmentation fault due to uninitialized extension dataJo-Philipp Wich2016-07-072-1/+250
| | | | | | | | | | | | | | | | | | | The ebtables code relies on the `-nostartfiles` linker argument to execute the extension modules' `_init()` functions automatically which is not working reliably across all supported targets and gcc versions. Running an ebtables executable linked this way just crashes with a segmentation fault at runtime on program startup, e.g. on ARM architectures. In order to fix the issue ... - remove the use of the -nostartfiles linker flag - rename the init procedures to a generic name without implicit semantics - explicitely annotate those init procedures as constructors The patch has been taken from the Alpine Linux distribution at http://git.alpinelinux.org/cgit/aports/tree/main/ebtables/fix-extension-init.patch Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* kernel: remove full cache flush in fuse_copy_do() for MIPSHauke Mehrtens2016-07-074-97/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch was introduced in commit r16412 for the brcm47xx target only and then moved to generic in commit r32395. It was initially added because of ticket #5186 and should fix some problems with fuse file systems and MIPS caches. The commit comment in r32395 says that this a generic problem in MIPS CPUs, but does not name any specifics about that. There was a fix added to kernel 2.6.21 in commit commit 7575a49f20 "[MIPS] Implement flush_anon_page()." that should fix this problem, but that was already available before both commits were done to OpenWrt. I just tested fuse with ntfs.3g without this patch on a BCM4704 (BMIPS3300 V0.6) SoC and haven't seen any problems. Someone reported that removing this patch improves some fuse operations by 5 times on some modern MIPS cores. My test was only a simple "dd if=/dev/zero of=/mnt/zero bs=5000" to an USB stick. This patch removes the patch to OpenWrt, because I assume that it is not needed any more and Felix, the orginal author, also thinks so. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: fix missing break in ubi auto-mounting patchHauke Mehrtens2016-07-073-4/+7
| | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
* kernel: remove one of two patches deactivating broken vdso support on mipsHauke Mehrtens2016-07-071-9/+0
| | | | | | | The patch target/linux/generic/patches-4.4/206-mips-disable-vdso.patch should be sufficient. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* package/kernel: Enable XATTR by defaultDaniel Dickinson2016-07-071-1/+3
| | | | | | | | OpenWrt enables XATTR support pretty much universally, therefore for filesystems that a loaded as modules also enable XATTR support so that there are no unexpected missing capabilities. Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
* e2fsprogs: fix build problem with very old libmagicHauke Mehrtens2016-07-071-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>
* odhcp6c: Upstep to latest versionHans Dedecker2016-07-071-2/+2
| | | | | | | | | Following fixes are included in the latest version: -Script is launched with incorrect action -Possible buffer overflows -Lots of minor bugfixes Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* kirkwood: add missing kernel symbolJo-Philipp Wich2016-07-061-0/+1
| | | | | | | The query for ARMADA_THERMAL is stalling the kconfig process and as long as we do not package it, simply disable the symbol. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* packages: make virtio-pci actually depend on PCI_SUPPORTZoltan HERPAI2016-07-061-0/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: add missing symbol for 4.4Zoltan HERPAI2016-07-061-0/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: add missing symbols into 3.18 and 4.1Zoltan HERPAI2016-07-062-0/+12
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* packages: add kernel version dependency for bmp085 moduleZoltan HERPAI2016-07-061-1/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: require admin permissions for swconfig set operationsFelix Fietkau2016-07-041-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: deny swconfig set requests for unprivileged usersJo-Philipp Wich2016-07-041-0/+3
| | | | | | | | | | | | | | | | | The swconfig kernel infrastructure fails to do any permissions checks when changing settings. As such an ordinary user account on a device with a switch can change switch settings without any special permissions. Routers generally have few non-admin users so this isn't a big hole, but it is a security hole. Likely the greatest danger is for multifunction devices which have a lot of extra daemons, compromising a low-security daemon would allow one to modify switch settings and cause the router/switch to appear to lock-up (or cause other sorts of troublesome nyetwork behavior). Implement a check for CAP_NET_ADMIN in swconfig_set_attr() and deny any requests originating from user contexts lacking this capability. Reported-by: Elliott Mitchell <ehem+openwrt@m5p.com> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* swconfig: improve failure reportingJo-Philipp Wich2016-07-042-7/+7
| | | | | | Report the translated error to the user if a get/set netlink operation failed. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* polarssl: enable AES-GCM and CAMELLIA-GCM ciphersuitesJo-Philipp Wich2016-07-042-11/+1
| | | | | | | | | | | Recent versions of Chrome require this ciphers to successfully handshake with a TLS enabled uhttpd server using the ustream-polarssl backend. If `CONFIG_GCM` is disabled, `ssl_ciphersuite_from_id()` will return `NULL` when cipher `0x9d` is looked up, causing the calling `ssl_ciphersuite_match()` to fail with `POLARSSL_ERR_SSL_INTERNAL_ERROR`. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* sparse: update to support llvm 3.5.0Stefan Sydow2016-07-041-3/+6
| | | | | | | | sparse-0.5.0 won't link against lvm 3.5.0 as "llvm-config --libs" does not include system libs like pthreads. This problem got fixed but not released yet, so we need to fetch from their git repo. Signed-off-by: Stefan Sydow <stefan.sydow@tu-berlin.de>
* strace: add option for enabling stack trace supportYousong Zhou2016-07-041-1/+10
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* tools/mkfwimage2: remove 256 length limit for partition imagesAlexander Couzens2016-07-041-1/+5
| | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* kernel: replace SMP cacheflush fix with some patches from linux-mti.gitFelix Fietkau2016-07-043-17/+354
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix mips MT_SMP kernel crash on cache flushFelix Fietkau2016-07-041-0/+17
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add support for uncompressed zImage on ARMFelix Fietkau2016-07-044-2/+137
| | | | | | | This can be used to prevent double compression for platforms where the boot loader already expects compressed images. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add common config symbolsFelix Fietkau2016-07-041-0/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: Configure status LED for WRT1900ACSRujun Wang2016-07-041-0/+3
| | | | Signed-off-by: Rujun Wang <chinawrj@gmail.com>
* mvebu: add a patch to deal with excessive latencies/delays during flash PIO ↵Felix Fietkau2016-07-041-0/+36
| | | | | | command processing Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: configure switch on WRT1200AC and WRT1900ACv2/SClaudio Leite2016-07-041-6/+4
| | | | | | Also collapses the three identical configurations into one block. Signed-off-by: Claudio Leite <leitec@staticky.com>
* mvebu: backport upstream ethernet driver improvements and enable buffer ↵Felix Fietkau2016-07-0429-6/+4334
| | | | | | manager support Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: fix device I/O coherency issuesFelix Fietkau2016-07-041-0/+47
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: correct patch name of the crypto sram fixFelix Fietkau2016-07-041-0/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: fix bus ranges for the crypto processor sramFelix Fietkau2016-07-041-0/+13
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: tune kernel config for performanceFelix Fietkau2016-07-041-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: enable core drivers in the kernel config instead of packaging themFelix Fietkau2016-07-0413-165/+72
| | | | | | Simplify profile package selection Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: add some more flash driver fixesFelix Fietkau2016-07-043-0/+156
| | | | | | | Disable marvell,nand-keep-config property on WRT1900AC to allow the flash driver to properly probe the chip Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: rename recently added flash driver fixFelix Fietkau2016-07-041-0/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: prevent crash in the flash driver in case of a spurious interruptFelix Fietkau2016-07-041-0/+13
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: update to linux 4.4Felix Fietkau2016-07-042-24/+15
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: fix portability issues in the image makefile codeFelix Fietkau2016-07-041-5/+5
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mvebu: backport an upstream NAND flash driver fixFelix Fietkau2016-07-041-0/+428
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* linux-firmware: fix md5sumHauke Mehrtens2016-07-041-1/+1
| | | | | | | | The copy on the mirror has a different md5sum as specified in this package Makefile. The content of the file on the mirror is the same as in the checkout so just update our md5sum. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* rtl8192su-firmware: move firmware to own packageHauke Mehrtens2016-07-042-17/+8
| | | | | | | Instead of downloading the firmware from some website take it from linux-firmware package and do not download it separately any more. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* rtl8192se-firmware: fix package buildHauke Mehrtens2016-07-041-1/+1
| | | | | | | The package did not pack the firmware because of a problem which looks like a copy and past error. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* mt76: update to the latest version, fixes a SMPS handling issueFelix Fietkau2016-07-041-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: update to latest version, adds survey support for mt76x2Felix Fietkau2016-07-041-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: update to the latest version, fixes a monitor mode injection crashFelix Fietkau2016-07-041-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: rename B53 symbols to avoid upstream kernel conflictRafał Miłecki2016-07-0413-52/+52
| | | | | | | | | In kernel 4.7 there is upstreamed b53 driver using (mostly?) the same symbols as our b53 does. Change our symbols so both drivers can coexist in kernel tree. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Acked-by: Jonas Gorski <jonas.gorski@gmail.com>
* kernel: backport bgmac changes from net-nextRafał Miłecki2016-07-049-11/+329
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* kernel: rename bgmac patches that went into the same kernelRafał Miłecki2016-07-044-0/+0
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>