openwrt.git
8 years agousign: force installation to $(STAGING_DIR_HOST)
nbd [Mon, 25 Jan 2016 23:05:49 +0000 (23:05 +0000)]
usign: force installation to $(STAGING_DIR_HOST)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48500 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokirkwood: drop 4.3 support
luka [Mon, 25 Jan 2016 22:54:52 +0000 (22:54 +0000)]
kirkwood: drop 4.3 support

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48499 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: update kernel 4.3 to version 4.3.4
hauke [Mon, 25 Jan 2016 21:44:48 +0000 (21:44 +0000)]
kernel: update kernel 4.3 to version 4.3.4

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48498 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: update kernel 4.1 to version 4.1.16
hauke [Mon, 25 Jan 2016 21:44:12 +0000 (21:44 +0000)]
kernel: update kernel 4.1 to version 4.1.16

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48497 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: update kernel 3.18 to 3.18.26
hauke [Mon, 25 Jan 2016 21:43:26 +0000 (21:43 +0000)]
kernel: update kernel 3.18 to 3.18.26

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48496 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: Don't add local hostname if ula prefix is not specified
jow [Mon, 25 Jan 2016 17:47:22 +0000 (17:47 +0000)]
dnsmasq: Don't add local hostname if ula prefix is not specified

Commit 6a7e56b adds support for adding local hostname for own lan ula adress
but if ula prefix is not specified results into an invalid config (address=/OpenWrt.lan/1)
causing dnsmasq not to start up.
Use lanaddr6 when adding local hostname as the lan ula address is constructed based on the
UCI parameters ip6hint and ip6ifaceid and thus not always ula prefix suffixed with 1

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48495 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agopackage/uhttpd: generate 2048 bit RSA key
nbd [Mon, 25 Jan 2016 17:42:25 +0000 (17:42 +0000)]
package/uhttpd: generate 2048 bit RSA key

RSA keys should be generated with sufficient length.
Using 1024 bits is considered unsafe.
In other packages the used key length is 2048 bits.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48494 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobase-files: remove default /etc/config/network, generate it via board.d instead
nbd [Mon, 25 Jan 2016 16:30:41 +0000 (16:30 +0000)]
base-files: remove default /etc/config/network, generate it via board.d instead

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48493 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoinclude/cmake.mk: search in $(STAGING_DIR)/usr instead of plain $(STAGING_DIR) to...
nbd [Mon, 25 Jan 2016 15:49:49 +0000 (15:49 +0000)]
include/cmake.mk: search in $(STAGING_DIR)/usr instead of plain $(STAGING_DIR) to avoid picking up stuff from host/

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48492 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoinclude/cmake.mk: adjust for STAGING_DIR_HOST split
nbd [Mon, 25 Jan 2016 15:49:44 +0000 (15:49 +0000)]
include/cmake.mk: adjust for STAGING_DIR_HOST split

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48491 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomac80211: add iremap cflags
nbd [Mon, 25 Jan 2016 15:49:36 +0000 (15:49 +0000)]
mac80211: add iremap cflags

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48490 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: use -iremap feature to replace __FILE__ absolute path names in packages with...
nbd [Mon, 25 Jan 2016 15:49:31 +0000 (15:49 +0000)]
build: use -iremap feature to replace __FILE__ absolute path names in packages with ones relative to $(BUILD_DIR)

improves reproducible builds

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48489 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoiwinfo: add support for VHT rates to Lua binding
jow [Mon, 25 Jan 2016 15:04:29 +0000 (15:04 +0000)]
iwinfo: add support for VHT rates to Lua binding

Update to Git HEAD in order to include VHT rate support in the Lua binding.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48488 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoiwinfo: add support for VHT rates
jow [Mon, 25 Jan 2016 14:31:32 +0000 (14:31 +0000)]
iwinfo: add support for VHT rates

Update to upstream Git HEAD to include VHT rate support and a number of
coverity scan fixes.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48487 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomusl: update to 1.1.12 + git from 2016-01-22
nbd [Mon, 25 Jan 2016 12:42:00 +0000 (12:42 +0000)]
musl: update to 1.1.12 + git from 2016-01-22

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48486 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogcc: backport a libgcc fix for a dependency on libc write() on ARM
nbd [Mon, 25 Jan 2016 12:41:55 +0000 (12:41 +0000)]
gcc: backport a libgcc fix for a dependency on libc write() on ARM

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48485 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: wpan: mrf24j40 depends on regmap-spi
nbd [Mon, 25 Jan 2016 12:41:19 +0000 (12:41 +0000)]
kernel: wpan: mrf24j40 depends on regmap-spi

kmod-mrf24j40 select REGMAP_SPI since 4.3, thus add dependency to
kmod-regmap.

Found by buildbot:
Package kmod-mrf24j40 is missing dependencies for the following libraries:
regmap-spi.ko

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48484 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobase-files: fix sysupgrade 'wget' handling for uclient-fetch
nbd [Mon, 25 Jan 2016 12:35:21 +0000 (12:35 +0000)]
base-files: fix sysupgrade 'wget' handling for uclient-fetch

change 48451 tried to add support for uclient-fetch by moving
/usr/bin/wget to /bin/wget, but this change kept the symbolic
link to /bin/busybox as install_bin creates links to param 1

the desired fix is to link to uclient-fetch to wget:
  install_bin /bin/uclient-fetch /bin/wget

Signed-off-by: John Clark <inindev@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48483 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: fix a small bug in the MIPS highmem fix
nbd [Mon, 25 Jan 2016 10:28:29 +0000 (10:28 +0000)]
kernel: fix a small bug in the MIPS highmem fix

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48482 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: disable CONFIG_USERFAULTFD, it is unused
nbd [Mon, 25 Jan 2016 10:28:19 +0000 (10:28 +0000)]
kernel: disable CONFIG_USERFAULTFD, it is unused

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48481 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: mtdsplit: document Seama splitter a bit
rmilecki [Mon, 25 Jan 2016 07:18:47 +0000 (07:18 +0000)]
kernel: mtdsplit: document Seama splitter a bit

Rename kernel_size variable as it includes whole entity size, not just a
kernel size. Also update comments to match it and describe better what
are we checking/looking for.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48480 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoinclude: restrict separate kmod repo handling to base packages
jow [Sun, 24 Jan 2016 18:01:43 +0000 (18:01 +0000)]
include: restrict separate kmod repo handling to base packages

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48479 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoiptables: improve iptables listing output of xt_id match
jow [Sun, 24 Jan 2016 18:01:40 +0000 (18:01 +0000)]
iptables: improve iptables listing output of xt_id match

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48478 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: add some missing kernel config options
hauke [Sun, 24 Jan 2016 18:00:53 +0000 (18:00 +0000)]
kernel: add some missing kernel config options

The built bots found these missing kernel configuration options.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48477 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agox86/64: add missing kernel symbol
jow [Sun, 24 Jan 2016 15:36:10 +0000 (15:36 +0000)]
x86/64: add missing kernel symbol

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48476 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoinclude: group kmod ipk files into a "kernel" subdirectory
jow [Sun, 24 Jan 2016 15:36:05 +0000 (15:36 +0000)]
include: group kmod ipk files into a "kernel" subdirectory

This is useful to just use the kmods from an official build while supplying
base packages from a custom feed or the other way around; for just overriding
the kmods with a local repo while using official repos for the rest.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48475 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogeneric: fix relocate build with binutils 2.25.1
jogo [Sun, 24 Jan 2016 12:36:15 +0000 (12:36 +0000)]
generic: fix relocate build with binutils 2.25.1

The new .abiflags section was kept, pushing the appended arguments to
the wrong offset and causing it to read the section instead, making
it fail on boot.

Fix this by dropping this section as well as the other sections.

Closes #21679.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48474 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobrcm63xx: fix build of lzma-loader with binutils 2.25.1
jogo [Sun, 24 Jan 2016 12:36:10 +0000 (12:36 +0000)]
brcm63xx: fix build of lzma-loader with binutils 2.25.1

Apply the same fix as ar71xx needed in r46893.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48473 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoswconfig: simplify init code
jogo [Sun, 24 Jan 2016 12:36:06 +0000 (12:36 +0000)]
swconfig: simplify init code

Directly return the return value of genl_register_family_with_ops()
instead of storing it in a temporary variable, then returning it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48472 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoswconfig: drop linux < 3.13 code paths
jogo [Sun, 24 Jan 2016 12:35:59 +0000 (12:35 +0000)]
swconfig: drop linux < 3.13 code paths

The oldest kernel we support is 3.18, no need to keep code paths
for older kernels.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48471 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: add -fno-plt to default cflags, it improves PIC code optimization
nbd [Sun, 24 Jan 2016 00:16:36 +0000 (00:16 +0000)]
build: add -fno-plt to default cflags, it improves PIC code optimization

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48470 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoramips: re-enable highmem support for MT7621 now that it's fixed
nbd [Sun, 24 Jan 2016 00:16:32 +0000 (00:16 +0000)]
ramips: re-enable highmem support for MT7621 now that it's fixed

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48469 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: fix MIPS highmem breakage
nbd [Sun, 24 Jan 2016 00:16:27 +0000 (00:16 +0000)]
kernel: fix MIPS highmem breakage

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48468 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomusl: Add format attribute to some function declarations
hauke [Sun, 24 Jan 2016 00:05:14 +0000 (00:05 +0000)]
musl: Add format attribute to some function declarations

GCC and Clang are able to check the format arguments given to a
function and warn the user if there is a error in the format arguments
or if there is a potential uncontrolled format string security problem
in the code. GCC does this automatically for some functions like
printf(), but it is also possible to annotate other functions in a way
that it will check them too. This feature is used by glibc for many
functions. This patch adds the attribute to the some functions of musl
expect for these functions where gcc automatically adds it.

GCC automatically adds checks for these functions: printf, fprintf,
sprintf, scanf, fscanf, sscanf, strftime, vprintf, vfprintf and
vsprintf.

The documentation from gcc is here:
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html

The documentation from Clang is here:
http://clang.llvm.org/docs/AttributeReference.html#format-gnu-format

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48467 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomusl: mips: add vdso support
hauke [Sat, 23 Jan 2016 23:48:55 +0000 (23:48 +0000)]
musl: mips: add vdso support

vdso support is available on mips starting with kernel 4.4, see kernel
commit a7f4df4e21 "MIPS: VDSO: Add implementations of gettimeofday()
and clock_gettime()" for details.

These are my micro benchmark results for 1.000.000 calls to
clock_gettime(CLOCK_MONOTONIC, &tp)

without vdso:
root@OpenWrt:/# time ./vdso-test
real 0m 0.95s
user 0m 0.24s
sys 0m 0.70s

with vdso:
root@OpenWrt:/# time /usr/bin/vdso-test
real 0m 0.35s
user 0m 0.34s
sys 0m 0.00s

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48466 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agouclient: update to the latest version, now truncates files when overwriting them
nbd [Sat, 23 Jan 2016 20:02:34 +0000 (20:02 +0000)]
uclient: update to the latest version, now truncates files when overwriting them

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48465 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: add a package for bcm-phy-lib.ko, fixes build errors with kmod-phy-broadcom
nbd [Sat, 23 Jan 2016 20:01:26 +0000 (20:01 +0000)]
kernel: add a package for bcm-phy-lib.ko, fixes build errors with kmod-phy-broadcom

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48464 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agouclient: update to the latest version, improves interoperability with quirky servers
nbd [Sat, 23 Jan 2016 18:53:17 +0000 (18:53 +0000)]
uclient: update to the latest version, improves interoperability with quirky servers

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48463 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoustream-ssl: update to the latest version, fixes handling SSL connection close notifi...
nbd [Sat, 23 Jan 2016 18:53:12 +0000 (18:53 +0000)]
ustream-ssl: update to the latest version, fixes handling SSL connection close notification

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48462 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: add a fix for deadlocks on dump_stack
nbd [Sat, 23 Jan 2016 18:02:59 +0000 (18:02 +0000)]
kernel: add a fix for deadlocks on dump_stack

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48461 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoRevert "kernel: work around CONFIG_CPU_SW_DOMAIN_PAN breakage on ARM11 MPCore"
nbd [Sat, 23 Jan 2016 18:02:55 +0000 (18:02 +0000)]
Revert "kernel: work around CONFIG_CPU_SW_DOMAIN_PAN breakage on ARM11 MPCore"

This reverts commit r48335

The workaround is incomplete and cannot cover all possible cases. The
only real solution to this problem is to disable this feature on
ARM11MPcore entirely.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48460 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: add missing config symbol
nbd [Sat, 23 Jan 2016 17:05:56 +0000 (17:05 +0000)]
kernel: add missing config symbol

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48459 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolinux-atm: add missing br2684ctl patch chunk
nbd [Sat, 23 Jan 2016 15:24:19 +0000 (15:24 +0000)]
linux-atm: add missing br2684ctl patch chunk

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48458 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoltq-vdsl-app: mask out VDSL bits when ATM is selected, fixes compatibility issues...
nbd [Sat, 23 Jan 2016 12:37:17 +0000 (12:37 +0000)]
ltq-vdsl-app: mask out VDSL bits when ATM is selected, fixes compatibility issues with some DSLAMs

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48457 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoRevert "ar71xx: Use full 128MB flash on Netgear WNDR4300 and WNDR3700v4"
nbd [Fri, 22 Jan 2016 19:50:09 +0000 (19:50 +0000)]
Revert "ar71xx: Use full 128MB flash on Netgear WNDR4300 and WNDR3700v4"

This reverts commit r48276.
This can overwrite the caldata_backup partition, so the layout needs to
be changed in a different way.

Thanks to Arjen de Korte for spotting the issue.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48456 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoqos-scripts: bump version
nbd [Fri, 22 Jan 2016 13:06:09 +0000 (13:06 +0000)]
qos-scripts: bump version

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48455 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: Add kernel module for Freescale SNVS RTC on chip module
nbd [Fri, 22 Jan 2016 12:02:11 +0000 (12:02 +0000)]
kernel: Add kernel module for Freescale SNVS RTC on chip module

Signed-off-by: Petr Štetiar <ynezz@true.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48454 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agox86_64: Add missing symbols
nbd [Fri, 22 Jan 2016 12:02:07 +0000 (12:02 +0000)]
x86_64: Add missing symbols

Update to kernel 4.4 missed some symbols, fix that.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48453 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoqos-scripts: Add IPv6 support
nbd [Fri, 22 Jan 2016 11:59:03 +0000 (11:59 +0000)]
qos-scripts: Add IPv6 support

This adds IPv6 support to qos-scripts for both tc/qdisc and the
iptables classification rules.  The tc/qdisc part is accomplished
by removing "protocol ip" from the tc command line, causing the
rule to be applied to all protocols.  The iptables part is
accomplished by adding each rule using both iptables and ip6tables.

This patch is based on previous work by Ilkka Ollakka and
Dominique Martinet.

Signed-off-by: Michael Marley <michael@michaelmarley.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48452 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobase-files: fix sysupgrade 'wget' handling
nbd [Fri, 22 Jan 2016 09:41:58 +0000 (09:41 +0000)]
base-files: fix sysupgrade 'wget' handling

with r48379 and r48386 the path of wget changed.
respect that and adjust the dirname.

this fixes #21680

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48451 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: add uclient-fetch to the default packages, in case opkg is not selected
nbd [Fri, 22 Jan 2016 09:41:53 +0000 (09:41 +0000)]
build: add uclient-fetch to the default packages, in case opkg is not selected

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48450 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: backport bcma stuff sent for 4.6
rmilecki [Fri, 22 Jan 2016 09:22:37 +0000 (09:22 +0000)]
kernel: backport bcma stuff sent for 4.6

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48449 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoath9k: allow multiple virtual interfaces on DFS channels
nbd [Fri, 22 Jan 2016 00:54:34 +0000 (00:54 +0000)]
ath9k: allow multiple virtual interfaces on DFS channels

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48448 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoflock: do not use ccache, fixes build error
nbd [Thu, 21 Jan 2016 23:22:11 +0000 (23:22 +0000)]
flock: do not use ccache, fixes build error

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48447 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoqos-scripts: Allow classification by the traffic's source interface
nbd [Thu, 21 Jan 2016 23:22:06 +0000 (23:22 +0000)]
qos-scripts: Allow classification by the traffic's source interface

This adds a "srciface" option that can be used on classification
rules in /etc/config/qos.  This is useful to allow prioritization
based on the local network from which the traffic originates, for
example to deprioritize traffic from a guest network.

Signed-off-by: Michael Marley <michael@michaelmarley.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48446 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoqos-scripts: stop overriding tx queue length
nbd [Thu, 21 Jan 2016 22:26:15 +0000 (22:26 +0000)]
qos-scripts: stop overriding tx queue length

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48445 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomusl: backport a fix that caused the wrong relocations to be emitted on some architec...
nbd [Thu, 21 Jan 2016 19:00:51 +0000 (19:00 +0000)]
musl: backport a fix that caused the wrong relocations to be emitted on some architectures

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48444 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: clean up redundant SLUB/SLAB related defines for 4.4
nbd [Thu, 21 Jan 2016 16:08:19 +0000 (16:08 +0000)]
kernel: clean up redundant SLUB/SLAB related defines for 4.4

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48443 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: switch to SLUB by default in 4.4 (for improved performance)
nbd [Thu, 21 Jan 2016 16:08:15 +0000 (16:08 +0000)]
kernel: switch to SLUB by default in 4.4 (for improved performance)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48442 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agouclient: update to the latest version, fixes overwrite with wget -O
nbd [Thu, 21 Jan 2016 15:59:39 +0000 (15:59 +0000)]
uclient: update to the latest version, fixes overwrite with wget -O

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48441 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomac80211: only strip the platform/ prefix from path for pci devices
nbd [Thu, 21 Jan 2016 15:55:35 +0000 (15:55 +0000)]
mac80211: only strip the platform/ prefix from path for pci devices

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48440 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomac80211: fix check for existing config section from r48426
nbd [Thu, 21 Jan 2016 15:51:52 +0000 (15:51 +0000)]
mac80211: fix check for existing config section from r48426

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48439 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoath9k: ignore EEPROM mismatch on flash based devices (fixes #21611)
nbd [Thu, 21 Jan 2016 15:37:43 +0000 (15:37 +0000)]
ath9k: ignore EEPROM mismatch on flash based devices (fixes #21611)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48438 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: make backlight support depend on display support
nbd [Thu, 21 Jan 2016 15:37:38 +0000 (15:37 +0000)]
kernel: make backlight support depend on display support

Mark backlight core package as hidden

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48437 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: mark kmod-drm as hidden so that it only gets selected if a driver for it...
nbd [Thu, 21 Jan 2016 15:37:30 +0000 (15:37 +0000)]
kernel: mark kmod-drm as hidden so that it only gets selected if a driver for it can be selected

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48436 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: reduce AddDepends related cargo cult programming in video.mk
nbd [Thu, 21 Jan 2016 15:37:20 +0000 (15:37 +0000)]
kernel: reduce AddDepends related cargo cult programming in video.mk

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48435 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: video: add DRM core and IMX DRM support for HDMI/LVDS
nbd [Thu, 21 Jan 2016 15:37:10 +0000 (15:37 +0000)]
kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48434 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: video: add fbcon support
nbd [Thu, 21 Jan 2016 15:37:01 +0000 (15:37 +0000)]
kernel: video: add fbcon support

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48433 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: add backlight kernel module support
nbd [Thu, 21 Jan 2016 15:36:53 +0000 (15:36 +0000)]
kernel: add backlight kernel module support

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48432 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agooprofile: delete the package, it has become useless now that perf is working
nbd [Thu, 21 Jan 2016 15:36:47 +0000 (15:36 +0000)]
oprofile: delete the package, it has become useless now that perf is working

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48431 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoelfutils: fix compatibility with non-glibc builds
nbd [Thu, 21 Jan 2016 14:08:33 +0000 (14:08 +0000)]
elfutils: fix compatibility with non-glibc builds

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48429 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agox86: fix kernel crash on geode devices (#21667)
nbd [Thu, 21 Jan 2016 13:28:25 +0000 (13:28 +0000)]
x86: fix kernel crash on geode devices (#21667)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48428 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: download.mk: bugfix download.pl argument call order
nbd [Thu, 21 Jan 2016 13:28:18 +0000 (13:28 +0000)]
build: download.mk: bugfix download.pl argument call order

Change wrong download.pl argument call order.
See download.pl argument list.

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48427 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomac80211: strip platform/ prefix from device path to improve compatibility between...
nbd [Thu, 21 Jan 2016 13:28:09 +0000 (13:28 +0000)]
mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48426 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomac80211: make the path phy lookup more robust regarding config upgrades, allow parti...
nbd [Thu, 21 Jan 2016 13:28:04 +0000 (13:28 +0000)]
mac80211: make the path phy lookup more robust regarding config upgrades, allow partial path matching

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48425 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogrub2: switch back to installing to STAGING_DIR_HOST
nbd [Thu, 21 Jan 2016 11:46:18 +0000 (11:46 +0000)]
grub2: switch back to installing to STAGING_DIR_HOST

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48424 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobcm53xx: fix iProc regression with sent patch instead of a revert
rmilecki [Thu, 21 Jan 2016 05:59:16 +0000 (05:59 +0000)]
bcm53xx: fix iProc regression with sent patch instead of a revert

This properly fixes #21393.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48423 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobinutils: use nls.mk to fix libbfd link errors in other packages
nbd [Wed, 20 Jan 2016 23:50:36 +0000 (23:50 +0000)]
binutils: use nls.mk to fix libbfd link errors in other packages

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48422 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoinclude/autotools.mk: fix gettext installation path
nbd [Wed, 20 Jan 2016 23:21:09 +0000 (23:21 +0000)]
include/autotools.mk: fix gettext installation path

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48421 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogettext-full: fix relocatable patch
nbd [Wed, 20 Jan 2016 23:21:03 +0000 (23:21 +0000)]
gettext-full: fix relocatable patch

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48420 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agovalgrind: fix build with mips soft-float
nbd [Wed, 20 Jan 2016 22:59:34 +0000 (22:59 +0000)]
valgrind: fix build with mips soft-float

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48419 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobzip2: install to STAGING_DIR/host instead of STAGING_DIR/host/usr
nbd [Wed, 20 Jan 2016 22:59:29 +0000 (22:59 +0000)]
bzip2: install to STAGING_DIR/host instead of STAGING_DIR/host/usr

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48418 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: add logging for package host builds
nbd [Wed, 20 Jan 2016 21:31:56 +0000 (21:31 +0000)]
build: add logging for package host builds

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48417 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: add locking for downloads (fixes race conditions with multiple variants)
nbd [Wed, 20 Jan 2016 21:31:50 +0000 (21:31 +0000)]
build: add locking for downloads (fixes race conditions with multiple variants)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48416 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: split BUILD_LOG logs per variant
nbd [Wed, 20 Jan 2016 21:31:43 +0000 (21:31 +0000)]
build: split BUILD_LOG logs per variant

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48415 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agorules.mk: make the locked template available even if flock has not been built yet...
nbd [Wed, 20 Jan 2016 21:31:38 +0000 (21:31 +0000)]
rules.mk: make the locked template available even if flock has not been built yet (fall back to unlocked shell command)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48414 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agotools: compile flock before everything else
nbd [Wed, 20 Jan 2016 21:31:34 +0000 (21:31 +0000)]
tools: compile flock before everything else

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48413 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoRevert "include/autoconf.mk: decouple host fixups from target fixups"
nbd [Wed, 20 Jan 2016 20:46:20 +0000 (20:46 +0000)]
Revert "include/autoconf.mk: decouple host fixups from target fixups"

This reverts commit r48403

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48412 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: use a separate variable checking the subdir path (for host packages)
nbd [Wed, 20 Jan 2016 20:13:40 +0000 (20:13 +0000)]
build: use a separate variable checking the subdir path (for host packages)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48410 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: fix module load issue in the dma-buf debloat patch
nbd [Wed, 20 Jan 2016 20:09:43 +0000 (20:09 +0000)]
kernel: fix module load issue in the dma-buf debloat patch

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48409 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobzip2: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)
nbd [Wed, 20 Jan 2016 19:36:23 +0000 (19:36 +0000)]
bzip2: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48408 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogettext-full: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)
nbd [Wed, 20 Jan 2016 19:36:18 +0000 (19:36 +0000)]
gettext-full: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48407 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogettext: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)
nbd [Wed, 20 Jan 2016 19:36:14 +0000 (19:36 +0000)]
gettext: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48406 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolua: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)
nbd [Wed, 20 Jan 2016 19:36:10 +0000 (19:36 +0000)]
lua: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48405 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoinclude/autoconf.mk: decouple host fixups from target fixups
nbd [Wed, 20 Jan 2016 19:12:28 +0000 (19:12 +0000)]
include/autoconf.mk: decouple host fixups from target fixups

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48403 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolibiconv: install to the new prefix
nbd [Wed, 20 Jan 2016 19:12:22 +0000 (19:12 +0000)]
libiconv: install to the new prefix

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48402 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agohost-build.mk: change default installation prefix of package/* host builds to staging...
nbd [Wed, 20 Jan 2016 19:12:13 +0000 (19:12 +0000)]
host-build.mk: change default installation prefix of package/* host builds to staging_dir/target-*/host

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48401 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild: move host build directories of package/* to build_dir/target-*/host/
nbd [Wed, 20 Jan 2016 19:12:06 +0000 (19:12 +0000)]
build: move host build directories of package/* to build_dir/target-*/host/

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48400 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agotoolchain: Reverse glibc/eglibc conditionals to check for eglibc
nbd [Wed, 20 Jan 2016 19:12:01 +0000 (19:12 +0000)]
toolchain: Reverse glibc/eglibc conditionals to check for eglibc

This will make adding future glibc versions easier because the
conditionals won't have to be modified again.

Signed-off-by: Michael Marley <michael@michaelmarley.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48399 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agooxnas: finally make board names consistent
nbd [Wed, 20 Jan 2016 19:11:48 +0000 (19:11 +0000)]
oxnas: finally make board names consistent

r48337 unfortunately incorrectly changed the boardname of the stg212
into stg-212 which is not the name of the image of DTS file or
boardname using sysupgrade, which is 'stg212' and imho should stay
that way.
The changes r48337 made for pogoplug-pro and pogoplug-v3 were correct,
thus this commit only partially reverts r48337.
Also properly set default for USB LED while already at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48398 3c298f89-4303-0410-b956-a3cf2f4a3e73