openwrt/staging/blogic.git
7 years agouboot-omap: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:25:49 +0000 (12:25 +0100)]
uboot-omap: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-mxs: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:15:19 +0000 (12:15 +0100)]
uboot-mxs: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-mvebu: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:09:10 +0000 (12:09 +0100)]
uboot-mvebu: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-layerscape-32b: simplify the package, it does not build anything
Felix Fietkau [Mon, 23 Jan 2017 10:56:42 +0000 (11:56 +0100)]
uboot-layerscape-32b: simplify the package, it does not build anything

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-layerscape: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:50:22 +0000 (10:50 +0100)]
uboot-layerscape: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-imx6: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:14:55 +0000 (10:14 +0100)]
uboot-imx6: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-at91: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:00:17 +0000 (10:00 +0100)]
uboot-at91: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-kirkwood: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 08:25:26 +0000 (09:25 +0100)]
uboot-kirkwood: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-ar71xx: switch to using u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 07:23:55 +0000 (08:23 +0100)]
uboot-ar71xx: switch to using u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-lantiq: switch to using u-boot.mk
Felix Fietkau [Sun, 22 Jan 2017 18:36:00 +0000 (19:36 +0100)]
uboot-lantiq: switch to using u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: add generic build template for u-boot packages
Felix Fietkau [Sun, 22 Jan 2017 18:33:21 +0000 (19:33 +0100)]
build: add generic build template for u-boot packages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-kirkwood: add uboot for nsa310b
Alberto Bursi [Sun, 22 Jan 2017 13:43:51 +0000 (14:43 +0100)]
uboot-kirkwood: add uboot for nsa310b

this commit allows to make a standalone u-boot for nsa310b.

While both first-stage and second-stage u-boot work fine if
installed to flash or loaded with kwboot,
I could not get stock u-boot nor bodhi's u-boot to chainload
any second stage u-boot (I also tried with dockstar's uboot
that works fine on this device if loaded with kwboot).

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agosdk: explicitely remove ccache directories when packing SDK
Jo-Philipp Wich [Tue, 24 Jan 2017 14:29:20 +0000 (15:29 +0100)]
sdk: explicitely remove ccache directories when packing SDK

Upon first invocation, the ccache program will create the required directory
hierarchy so there is no point in shipping these empty directories.

Removing those paths also avoids shipping dangling symlinks in case the
directories got linked elsewhere, e.g. into a shared global cache.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: make the touch .autoremove call non-fatal
Felix Fietkau [Tue, 24 Jan 2017 12:55:52 +0000 (13:55 +0100)]
build: make the touch .autoremove call non-fatal

Fixes build issues when there is nothing to do on the compile step (e.g.
with unselected packages).

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolantiq: remove CPU_TYPE:=mips32r2, it gets overwritten anyway
Felix Fietkau [Tue, 24 Jan 2017 12:33:45 +0000 (13:33 +0100)]
lantiq: remove CPU_TYPE:=mips32r2, it gets overwritten anyway

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agox86: unify CPU_TYPE for legacy and geode
Felix Fietkau [Tue, 24 Jan 2017 12:11:43 +0000 (13:11 +0100)]
x86: unify CPU_TYPE for legacy and geode

According to some reports, -march=pentium-mmx is a better choice for
older Geode CPUs than -march=geode anyway.

Bump the minimum architecture of the legacy target from i486 to
pentium-mmx. Anything older is not worth supporting anyway.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouml: mark as source-only
Felix Fietkau [Tue, 24 Jan 2017 11:44:59 +0000 (12:44 +0100)]
uml: mark as source-only

Get rid of a special case in the buildbot script

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomalta: mark as source-only to avoid wasting build resources
Felix Fietkau [Tue, 24 Jan 2017 11:41:40 +0000 (12:41 +0100)]
malta: mark as source-only to avoid wasting build resources

The le64 and be64 subtargets do not share a package architecture with
any other targets, so they are pretty wasteful for a development-only
target.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomalta: move FEATURES to the target makefile
Felix Fietkau [Tue, 24 Jan 2017 11:41:19 +0000 (12:41 +0100)]
malta: move FEATURES to the target makefile

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: remove mips16 feature flag from target makefiles
Felix Fietkau [Tue, 24 Jan 2017 11:40:00 +0000 (12:40 +0100)]
build: remove mips16 feature flag from target makefiles

It can be implicitly derived from the MIPS32 revision support in the
kernel configuration

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: remove obsolete mips32r2 CPU_TYPE
Felix Fietkau [Tue, 24 Jan 2017 11:30:26 +0000 (12:30 +0100)]
build: remove obsolete mips32r2 CPU_TYPE

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoramips/rt288x: switch CPU_TYPE to 24kc
Felix Fietkau [Tue, 24 Jan 2017 11:25:05 +0000 (12:25 +0100)]
ramips/rt288x: switch CPU_TYPE to 24kc

While rt288x only has a MIPS 4KEc processor, it implements the MIPS32r2
architecture just like the 24Kc, so the instruction set should be 100%
compatible.
Switching it to 24kc allows it to share the package architecture with a
lot of other targets instead of creating a special case, saving
buildbot resources.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Tue, 24 Jan 2017 09:01:00 +0000 (10:01 +0100)]
odhcpd: update to git HEAD version

e447ff9 router: fix compile issue on 64 bit systems

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agopackages: mark packages depending on a target as nonshared
Mathias Kresin [Thu, 19 Jan 2017 08:18:57 +0000 (09:18 +0100)]
packages: mark packages depending on a target as nonshared

The packages can't be build as shared packages due to the unmet
dependencies.

Fixes FS#418.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agox86: drop ep80579-drivers
Mathias Kresin [Thu, 19 Jan 2017 08:03:13 +0000 (09:03 +0100)]
x86: drop ep80579-drivers

The subtarget on which the driver still depends was removed with
dee8986b95dcc200550faebe49c143e5d2357c60 because it was unmaintained
for a long time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agobuild: do not auto-clean packages where the autoremove step has not run
Felix Fietkau [Mon, 23 Jan 2017 20:53:47 +0000 (21:53 +0100)]
build: do not auto-clean packages where the autoremove step has not run

This avoids repeatedly unpacking and rebuilding packages that are
failing the build. Re-running the failing step should be much faster.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Mon, 23 Jan 2017 17:36:25 +0000 (18:36 +0100)]
odhcpd: update to git HEAD version

237f1f4 router: convert syslog lifetime traces into LOG_INFO prio
da660c7 treewide: rework prio of syslog messages
0485580 ndp: code cleanup
c5040fe router: add syslog debug tracing for trouble shooting
df023ad treewide: use RELAYD_MAX_ADDRS as address array size
c8ac572 ndp: don't scan netlink attributes in case of netlink route
event

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agohostapd: fix stray "out of range" shell errors in hostapd.sh
Jo-Philipp Wich [Mon, 23 Jan 2017 13:52:27 +0000 (14:52 +0100)]
hostapd: fix stray "out of range" shell errors in hostapd.sh

The hostapd_append_wpa_key_mgmt() procedure uses the possibly uninitialized
$ieee80211r and $ieee80211w variables in a numerical comparisation, leading
to stray "netifd: radio0 (0000): sh: out of range" errors in logread when
WPA-PSK security is enabled.

Ensure that those variables are substituted with a default value in order to
avoid emitting this (harmless) shell error.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: use if-then to avoid non-zero return codes in bin/ packaging code
Felix Fietkau [Mon, 23 Jan 2017 12:40:15 +0000 (13:40 +0100)]
build: use if-then to avoid non-zero return codes in bin/ packaging code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years ago6in4: add missing colon when setting default ca_path
Daniel Golle [Mon, 23 Jan 2017 12:39:52 +0000 (13:39 +0100)]
6in4: add missing colon when setting default ca_path

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agobuild: fix bin/ package empty check
Felix Fietkau [Mon, 23 Jan 2017 11:32:04 +0000 (12:32 +0100)]
build: fix bin/ package empty check

$(wildcard) is evaluated too early in the build process

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: do not create empty directories in bin/
Felix Fietkau [Mon, 23 Jan 2017 09:49:57 +0000 (10:49 +0100)]
build: do not create empty directories in bin/

Some packages may not install any files

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: fix CONFIG_AUTOREMOVE for packages with multiple variants
Felix Fietkau [Sun, 22 Jan 2017 16:40:29 +0000 (17:40 +0100)]
build: fix CONFIG_AUTOREMOVE for packages with multiple variants

Calling the clean target removes all .ipk files and un-stages the
package. Add a new target just for clearing the build dir and call that
one instead of the full clean target

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-lantiq: fix build issue
Felix Fietkau [Sun, 22 Jan 2017 14:04:04 +0000 (15:04 +0100)]
uboot-lantiq: fix build issue

Do not reference BIN_DIR in the package install section directly, use
$(1) instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoubus: update to the latest version
Felix Fietkau [Sun, 22 Jan 2017 13:37:24 +0000 (14:37 +0100)]
ubus: update to the latest version

Adds uloop related libubus fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoRevert "build: always run package/cleanup before package/compile"
Felix Fietkau [Sun, 22 Jan 2017 12:47:24 +0000 (13:47 +0100)]
Revert "build: always run package/cleanup before package/compile"

This reverts commit 2990a21058243b067bb56fed36ee69205595993e.
This introduces a race condition, let's fix this in buildbot instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: always run package/cleanup before package/compile
Felix Fietkau [Sun, 22 Jan 2017 12:30:39 +0000 (13:30 +0100)]
build: always run package/cleanup before package/compile

Remove unnecessary stampfile indirection
Fixes an issue with the command sequence used by buildbot

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolibtool: don't clobber host libtool infrastructure
Jo-Philipp Wich [Sat, 21 Jan 2017 23:28:54 +0000 (00:28 +0100)]
libtool: don't clobber host libtool infrastructure

The libtool target package stages its files into the host staging directory
and moves the libltdl library parts from there into the target staging
directory afterwards.

By doing so, the package essentially renders the host libtool infrastructure
unusable, leading to the below error in subsequent package builds:

    libtoolize: $pkgltdldir is not a directory: `.../hostpkg/share/libtool`

Prevent this problem by using a dedicated libltdl install prefix in order to
avoid overwriting and moving away preexisting files belonging to tools/libtool.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoopenvpn: let all openvpn variants provide a virtual openvpn package
Jo-Philipp Wich [Sat, 21 Jan 2017 22:03:36 +0000 (23:03 +0100)]
openvpn: let all openvpn variants provide a virtual openvpn package

Add PROVIDES:=openvpn to the default recipe in order to let all build variants
provide a virtual openvpn package.

The advantage of this approach is that downstream packages can depend on just
"openvpn" without having to require a specific flavor.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: fix regression in handling ABI_VERSION
Felix Fietkau [Sat, 21 Jan 2017 17:29:56 +0000 (18:29 +0100)]
build: fix regression in handling ABI_VERSION

The code was updated without changing $$@ into the proper target
filename

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokmod-sched-cake: fix parameter passing kernel/user space
Kevin Darbyshire-Bryant [Fri, 23 Dec 2016 16:46:45 +0000 (16:46 +0000)]
kmod-sched-cake: fix parameter passing kernel/user space

The last two parameters passed between user space tc and kernel space
sched-cake were transposed due to a merge mistake in a parameter header
file.

As such, using a packet overhead figure was likely to set cake to wash
packet DSCP values.  Similarly, the DSCP wash flag was used as an offset
to the displayed packet overhead value.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agomac80211: rt2x00: add support for external LNA on MT7620
Daniel Golle [Fri, 20 Jan 2017 15:08:03 +0000 (16:08 +0100)]
mac80211: rt2x00: add support for external LNA on MT7620

Reported-by: Tom Psyborg <pozega.tomislav@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agoRevert "tools: wrt400n: fix making factory images with kernel bigger than 1MB"
John Crispin [Fri, 20 Jan 2017 05:39:39 +0000 (06:39 +0100)]
Revert "tools: wrt400n: fix making factory images with kernel bigger than 1MB"

This reverts commit 5f9b20bc7d0bde6c100a3dec5f02b56f7ef7a61d.

The builders were failing with a segfault when generating the image

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoRevert "ar71xx: wrt400n: lift size limit on kernel and rootfs part"
John Crispin [Fri, 20 Jan 2017 05:39:35 +0000 (06:39 +0100)]
Revert "ar71xx: wrt400n: lift size limit on kernel and rootfs part"

This reverts commit 78c2ec0f477bab5b5c2622b5a18c14e51dea7249.

The builders were failing with a segfault when generating the image

Signed-off-by: John Crispin <john@phrozen.org>
7 years agokernel: fix chipidea module dependencies
John Crispin [Fri, 20 Jan 2017 05:38:59 +0000 (06:38 +0100)]
kernel: fix chipidea module dependencies

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoubus: update to the latest version
Felix Fietkau [Fri, 20 Jan 2017 10:34:26 +0000 (11:34 +0100)]
ubus: update to the latest version

- Adds support for passing file descriptors in ubus invoke requests
- Fixes clearing pending timers on ubus_shutdown()
- Fixes checking the amount of written data in ubusd
- Fixes an ubusd crash when trying to subscribe to system objects

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolede-keyring: bundle latest usign certificates
Jo-Philipp Wich [Fri, 20 Jan 2017 09:09:30 +0000 (10:09 +0100)]
lede-keyring: bundle latest usign certificates

Includes the public usign certificates used by the 17.01.* release builds.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agosdk: fix Git URL detection
Jo-Philipp Wich [Fri, 20 Jan 2017 08:51:38 +0000 (09:51 +0100)]
sdk: fix Git URL detection

Instead of relying on complex sed patterns that trip up make syntax rules, use
GNU Makes builtin filter function to match desired URLs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: add support for PQI Air Pen
YuheiOKAWA [Tue, 10 Jan 2017 09:47:19 +0000 (18:47 +0900)]
ar71xx: add support for PQI Air Pen

SoC: AR9331
Ethernet x1, Wireless 2.4G, uSD card slot x1.
USB Power, include Li-Po Battery.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
Changes in v2:
alphabetical ordering, tabs fron spaces.

7 years agoar71xx: wrt400n: lift size limit on kernel and rootfs part
Yousong Zhou [Thu, 29 Dec 2016 07:26:59 +0000 (15:26 +0800)]
ar71xx: wrt400n: lift size limit on kernel and rootfs part

While at it, convert to new build method

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agotools: wrt400n: fix making factory images with kernel bigger than 1MB
Yousong Zhou [Thu, 29 Dec 2016 07:26:58 +0000 (15:26 +0800)]
tools: wrt400n: fix making factory images with kernel bigger than 1MB

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoar71xx: add Abicom SC1750 support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:05 +0000 (22:01 +0000)]
ar71xx: add Abicom SC1750 support

Support Abicom International Scorpion SC1750 Board

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB Nand Flash
16MB Nor Flash
1x SFP, 1x PCIe
2x 10/100/1000 Ethernet
135x100 mm
802.11ng/g/b
802.11ac/an/a

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoar71xx: add Abicom SC450 support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:04 +0000 (22:01 +0000)]
ar71xx: add Abicom SC450 support

Support Abicom International Scorpion SC450 Board

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB NAND Flash
16MB NOR Flash
10/100/1000 Ethernet
15W Max, 3x3 Mode, Full Power TX Power
802.3-at POE+ & DC Input options
100x 85mm
USB
PCIe
SFP
GPIO/LED

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoar71xx: add Abicom SC300M support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:03 +0000 (22:01 +0000)]
ar71xx: add Abicom SC300M support

Support Abicom International Scorpion SC300M Module

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB Nand Flash
16MB SPI Flash
802.11a/na/b/g/ng
GPIO x 22, USB x2, PCIe x2
10/100/1000 Ethernet
23dBm, Optional Onboard Antenna
DC Input, 8-20V DC
85 x 55 mm

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoramips: ZyXEL Keenetic series update wan mac
Vitaly Chekryzhev [Thu, 5 Jan 2017 11:25:59 +0000 (16:25 +0500)]
ramips: ZyXEL Keenetic series update wan mac

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: ZyXEL Keenetic Omni align factory images
Vitaly Chekryzhev [Thu, 5 Jan 2017 11:23:07 +0000 (16:23 +0500)]
ramips: ZyXEL Keenetic Omni align factory images

ZyXEL web-flasher requires squashfs to be aligned to 64kb.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: correct keenetic-series switch index
Vitaly Chekryzhev [Sun, 1 Jan 2017 21:46:33 +0000 (02:46 +0500)]
ramips: correct keenetic-series switch index

Fix switch name typo

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoar71xx: Chipidea USB device support
Svetoslav Neykov [Fri, 30 Dec 2016 15:06:43 +0000 (17:06 +0200)]
ar71xx: Chipidea USB device support

Changes the platform to use the Chipidea driver instead of the
generic USB host driver which has support for both host and
device modes (selected on boot).

The changes in 930-chipidea-pullup.patch are already in mainline.
I'll upstream 920-usb-chipidea-AR933x-platform-support.patch once I
can test the changes with a newer kernel.

Signed-off-by: Svetoslav Neykov <svetoslav@neykov.name>
7 years agoocteon: fix mtd partitions for erlite on cmdline
Jiri Kastner [Wed, 18 Jan 2017 09:45:23 +0000 (10:45 +0100)]
octeon: fix mtd partitions for erlite on cmdline

erlite mtdparts exposes boot0, boot1 and eeprom regions
as read/write.
this patch adds readonly flags, so these regions can't be
modified. same as it is already for ER profile.

Signed-off-by: Jiri Kastner <cz172638@gmail.com>
7 years agosdk: avoid using private repository clone urls as base repo entry
Jo-Philipp Wich [Thu, 19 Jan 2017 19:41:46 +0000 (20:41 +0100)]
sdk: avoid using private repository clone urls as base repo entry

Only consider the repository origin url as valid base feed entry if it is a
git://, http:// or https:// location.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolantiq: fix an ethernet stability issue triggered by receving packets during boot
Felix Fietkau [Thu, 19 Jan 2017 13:25:09 +0000 (14:25 +0100)]
lantiq: fix an ethernet stability issue triggered by receving packets during boot

Disabling ethernet during reboot (only to enable it again when the
ethernet driver attaches) can put the chip into a faulty state where it
corrupts the header of all incoming packets.

This happens if packets arrive during the time window where the core is
disabled, and it can be easily reproduced by rebooting while sending a
flood ping to the broadcast address.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used
Felix Fietkau [Thu, 19 Jan 2017 11:41:59 +0000 (12:41 +0100)]
build: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: include CONFIG_AUTOREMOVE in HOST_STAMP_PREPARED
Felix Fietkau [Thu, 19 Jan 2017 11:37:39 +0000 (12:37 +0100)]
build: include CONFIG_AUTOREMOVE in HOST_STAMP_PREPARED

Fixes build issues when changing the CONFIG_AUTOREMOVE setting

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolantiq: fix spurious irq storm
Felix Fietkau [Thu, 19 Jan 2017 11:31:34 +0000 (12:31 +0100)]
lantiq: fix spurious irq storm

Since the MIPS IRQ stack patches, lantiq devices were emitting a storm
of messages like this:

[  567.872172] Spurious IRQ: CAUSE=0x1100c300

Fix this by reworking the IRQ dispatch code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: include CONFIG_AUTOREMOVE in STAMP_PREPARED
Felix Fietkau [Thu, 19 Jan 2017 10:37:02 +0000 (11:37 +0100)]
build: include CONFIG_AUTOREMOVE in STAMP_PREPARED

Fixes build issues when changing the CONFIG_AUTOREMOVE setting

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: fix triggering opkg/host compilation
Jo-Philipp Wich [Thu, 19 Jan 2017 01:41:02 +0000 (02:41 +0100)]
build: fix triggering opkg/host compilation

Commit 131db36 "build: remove separate /install step for host builds" dropped
the package/*/host/install targets in favor to performing the install steps
within the compile target instead.

Adjust package/Makefile accordingly in order to prevent a missing
staging_dir/host/bin/opkg when staging package archives into the rootfs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agogettext-full: fix to use $STAGING_DIR_HOSTPKG instead of $STAGING_DIR/host
Matthias Schiffer [Wed, 18 Jan 2017 23:04:09 +0000 (00:04 +0100)]
gettext-full: fix to use $STAGING_DIR_HOSTPKG instead of $STAGING_DIR/host

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agorules.mk: export STAGING_DIR_HOSTPKG
Matthias Schiffer [Wed, 18 Jan 2017 23:03:32 +0000 (00:03 +0100)]
rules.mk: export STAGING_DIR_HOSTPKG

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agobuild: extend CONFIG_AUTOREMOVE to tools/
Felix Fietkau [Wed, 18 Jan 2017 17:00:00 +0000 (18:00 +0100)]
build: extend CONFIG_AUTOREMOVE to tools/

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: remove separate /install step for host builds
Felix Fietkau [Wed, 18 Jan 2017 16:56:13 +0000 (17:56 +0100)]
build: remove separate /install step for host builds

Reduces the number of recursive make invocations

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: add support for automatically removing build dir contents during build
Felix Fietkau [Wed, 18 Jan 2017 14:37:57 +0000 (15:37 +0100)]
build: add support for automatically removing build dir contents during build

This is used to save space on buildbot instances.
If any part of a package needs to be rebuild, the whole package is
rebuilt from scratch. Stamp files are preserved to allow dependency
checks to work

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: stage bin/ packages inside PKG_BUILD_DIR
Felix Fietkau [Wed, 18 Jan 2017 19:38:36 +0000 (20:38 +0100)]
build: stage bin/ packages inside PKG_BUILD_DIR

This makes the build slightly more efficient by avoiding the need to
re-stage packages on every full build run.

It is also necessary for the upcoming CONFIG_AUTOREMOVE feature

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: stage unstripped packages inside PKG_BUILD_DIR
Felix Fietkau [Wed, 18 Jan 2017 15:19:03 +0000 (16:19 +0100)]
build: stage unstripped packages inside PKG_BUILD_DIR

This makes the build slightly more efficient by avoiding the need to
re-stage packages on every full build run.

It is also necessary for the upcoming CONFIG_AUTOREMOVE feature

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: write ABI_VERSION file when staging the package
Felix Fietkau [Wed, 18 Jan 2017 14:28:36 +0000 (15:28 +0100)]
build: write ABI_VERSION file when staging the package

The make target does not rewrite the file if the contents didn't
change. This causes make to always consider the target old.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: introduce extra targets that contain only proper dependencies
Felix Fietkau [Wed, 18 Jan 2017 13:27:04 +0000 (14:27 +0100)]
build: introduce extra targets that contain only proper dependencies

This can be used to check if targets like prepare or compile are up to date

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: define common subdir targets in rules.mk
Felix Fietkau [Wed, 18 Jan 2017 13:00:48 +0000 (14:00 +0100)]
build: define common subdir targets in rules.mk

Reduce build system clutter and enable further rework

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agogit-kernel: $(SUBDIR) should always be $(LINUX_VERSION)
Mirko Vogt [Wed, 18 Jan 2017 13:36:45 +0000 (14:36 +0100)]
git-kernel: $(SUBDIR) should always be $(LINUX_VERSION)

Before SUBDIR was set to $(PATCHVER) which may
or may not include the minor version number of
the linux kernel version. Usually it doesn't.

So the git-clone'd linux kernel was packed without
the minor version number taken into account, which
broke further processing, as it expected the
extracted dir being named linux-$(LINUX_VERSION)
(=with minor version) rather than linux-$(PATCHVER)
(=without minor version).

Changing SUBDIR to $(LINUX_VERSION) creates
consistent behaviour here.

Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
7 years agobuild: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common directory for...
Matthias Schiffer [Wed, 18 Jan 2017 18:47:36 +0000 (19:47 +0100)]
build: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common directory for all targets

Using a single host package staging dir (and build dir) significantly speeds up
builds when multiple targets are built in succession, especially for large host
packages like NodeJS.

$(STAGING_DIR)/host is kept in addition to $(STAGING_DIR_HOSTPKG) in most
places; it is still used as destination for host files in Build/InstallDev.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agobase-files: add /etc/iproute2/rt_protos
Hans Dedecker [Tue, 17 Jan 2017 21:50:40 +0000 (22:50 +0100)]
base-files: add /etc/iproute2/rt_protos

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoramips: add support for Netgear WN3000RPv3
Thibaut VARENE [Wed, 18 Jan 2017 10:34:56 +0000 (11:34 +0100)]
ramips: add support for Netgear WN3000RPv3

This patch adds support for the Netgear WN3000RPv3
http://www.netgear.com/support/product/wn3000rpv3.aspx

Specifications:
- SoC: MediaTek MT7620A (580MHz, ramips)
- RAM: 32MB DDR
- Storage: 8MB NOR SPI flash
- Wireless: builtin MT7620A, 2x2:2 with u.FL connectors
- Ethernet: 1x100M
- Serial: JP1 header, 57600-8N1
- Stock firmware based on OpenWRT Kamikaze

Like the EX2700, the bootloader expects a secondary image signature,
see https://forum.openwrt.org/viewtopic.php?pid=312577#p312577
This is why the same fakeroot image is used for the WN3000

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: mark soft_config mtd part as writeable for RB-941-2nD
Thibaut VARENE [Wed, 18 Jan 2017 09:44:19 +0000 (10:44 +0100)]
ar71xx: mark soft_config mtd part as writeable for RB-941-2nD

The soft_config partition must be writeable for rbcfg to be able to
enact changes to the routerboot configuration.
The read-only flag was a mistake in the initial patch. Removing it
brings mach-rb941.c in line with all other RB platforms.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoipq806x: Fix wireless support for Netgear Nighthawk X4S D7800
Zhang Jingye [Mon, 16 Jan 2017 12:10:51 +0000 (20:10 +0800)]
ipq806x: Fix wireless support for Netgear Nighthawk X4S D7800

D7800 has a simular hardware to R7800 and uses dual QCA9980 for both 2.4GHz and 5GHz band.
However there is no proper initialization for them, which causes a kernel panic due to failed firmware loading.

This patch adds d7800 to ath10k caldata extraction list.
I can get two functional wireless bands after making change to it.

Signed-off-by: Zhang Jingye <934526987@qq.com>
7 years agoramips: fix mac address of miwifi-mini
BangLang Huang [Wed, 18 Jan 2017 09:45:48 +0000 (17:45 +0800)]
ramips: fix mac address of miwifi-mini

For the miwifi-mini, the offset of ethernet mac should be 0x28
which you can easyily dump from 'Factory' partition.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
7 years agotools/qemu: use default host configure rule ; set appropriate vars & args
Alexandru Ardelean [Mon, 9 Jan 2017 12:46:18 +0000 (14:46 +0200)]
tools/qemu: use default host configure rule ; set appropriate vars & args

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>
7 years agoramips: simplify EX2700 network config
Joseph C. Lehner [Fri, 13 Jan 2017 15:37:36 +0000 (16:37 +0100)]
ramips: simplify EX2700 network config

Don't create a vlan for the Netgear EX2700's only Ethernet port.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agoramips: Add back sdhci-mt7620 driver to default config
Rosen Penev [Wed, 18 Jan 2017 00:35:29 +0000 (16:35 -0800)]
ramips: Add back sdhci-mt7620 driver to default config

The driver no longer causes kernel panics and CPU hangs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
7 years agobcm53xx: use accepted BCM5301X patches for R8000 and Luxul devices
Rafał Miłecki [Wed, 18 Jan 2017 06:16:37 +0000 (07:16 +0100)]
bcm53xx: use accepted BCM5301X patches for R8000 and Luxul devices

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: move (& update) upstream accepted brcmfmac patches
Rafał Miłecki [Tue, 17 Jan 2017 21:41:18 +0000 (22:41 +0100)]
mac80211: move (& update) upstream accepted brcmfmac patches

These 3 patches are now in wireless-drivers-next tree.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agosdk: do not strip static libraries
Jo-Philipp Wich [Wed, 18 Jan 2017 02:15:31 +0000 (03:15 +0100)]
sdk: do not strip static libraries

Do not strip static libraries shipped with the SDK in order to preserve the
archive index. If we strip the index of the shipped libraries, host programs
will fail to link these libraries with errors like:

    libssl.a: error adding symbols: Archive has no index; run ranlib to add one

The error was found while investigating a Python host build failure within
the SDK environment.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agonetifd: update to git HEAD version
Hans Dedecker [Tue, 17 Jan 2017 13:00:02 +0000 (14:00 +0100)]
netifd: update to git HEAD version

a057f6e device: fix DEV_OPT_SENDREDIRECTS definition

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobuild: properly pass CPP and CXX flags in HOST_MAKE_VARS
Jo-Philipp Wich [Tue, 17 Jan 2017 08:29:50 +0000 (09:29 +0100)]
build: properly pass CPP and CXX flags in HOST_MAKE_VARS

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: introduce default HOST_MAKE_VARS for host-builds
Alexandru Ardelean [Mon, 9 Jan 2017 12:59:02 +0000 (14:59 +0200)]
build: introduce default HOST_MAKE_VARS for host-builds

Inspired/adapted from `package-defaults.mk` MAKE_VARS.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agotools/cmake: remove HOST_CONFIGURE_CMD and re-distribute the args & vars
Alexandru Ardelean [Thu, 12 Jan 2017 13:31:13 +0000 (15:31 +0200)]
tools/cmake: remove HOST_CONFIGURE_CMD and re-distribute the args & vars

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>
7 years agox86: add kernel module for sp5100_tco watchdog
Chris Blake [Sat, 14 Jan 2017 16:20:25 +0000 (10:20 -0600)]
x86: add kernel module for sp5100_tco watchdog

This change adds the sp5100_tco driver as a kernel module for the x86
target. Specifically, this can be used by the PCEngines APU2/APU3. The
reason for having this as a kernel module is to allow users to
load/unload it on demand, as the I2C interface on the APU2/APU3 will not
work while this module is loaded. More info can be found on GitHub at
https://github.com/riptidewave93/LEDE-APU2/pull/5#issuecomment-255667736

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86: Add sp5100_tco AMD patches
Chris Blake [Sat, 14 Jan 2017 16:20:24 +0000 (10:20 -0600)]
x86: Add sp5100_tco AMD patches

This adds the following patches to the x86 target:

sp5100_tco: Add AMD Mullins platform support
sp5100_tco: Add AMD Carrizo platform support
sp5100_tco: fix the device check for SB800 and later chipsets
watchdog: sp5100_tco: properly check for new register layouts

With these added, the sp5100_tco driver can then be used on newer AMD
platforms, such as the PCEngines APU2/APU3 boards.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86: remove the xen_domu subtarget
Felix Fietkau [Fri, 13 Jan 2017 14:04:17 +0000 (15:04 +0100)]
x86: remove the xen_domu subtarget

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agox86/generic: add xen DomU support
Felix Fietkau [Fri, 13 Jan 2017 14:03:24 +0000 (15:03 +0100)]
x86/generic: add xen DomU support

Copy the relevant config options from the xen_domu subtarget

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: fix up the kernel config for the mikrotik subtarget
Felix Fietkau [Tue, 10 Jan 2017 17:09:22 +0000 (18:09 +0100)]
ar71xx: fix up the kernel config for the mikrotik subtarget

Limit enabled devices to routerboards, disable all other devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: fix network config for Mikrotik RB411U
Cezary Jackiewicz [Mon, 9 Jan 2017 21:06:12 +0000 (22:06 +0100)]
ar71xx: fix network config for Mikrotik RB411U

Mikrotik RB411U has only one ethernet port - eth0. This patch allows to create
correct config with one lan section.

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
7 years agoar71xx: add support for RB-941-2nD
Thibaut VARENE [Wed, 4 Jan 2017 21:44:54 +0000 (22:44 +0100)]
ar71xx: add support for RB-941-2nD

Add full support for Mikrotik RB-941-2nD (hAP lite)

Original patch by Sergey Sergeev <adron@yapic.net> and
more information is available here:
https://wiki.openwrt.org/toh/mikrotik/rb941_2nd
I updated and adapted the patch to apply cleanly to LEDE trunk
and added proper numbering for the switch ports (matching case
labels).
Tested working on actual hardware with the information
provided in the above webpage. Sysupgrade works.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>