openwrt/staging/jogo.git
8 years agosysupgrade: unmount filesystems before reboot
Mathias Kresin [Tue, 2 Aug 2016 20:29:31 +0000 (22:29 +0200)]
sysupgrade: unmount filesystems before reboot

sysupgrade immediately reboots after flashing an image and doesn't
allow to unmount filesystems. At least in case the image used for
sysupgrade is stored on a FAT formatted usb flash drive, the following
warning is printed during the next mount of the flash drive:

FAT-fs (sda1): Volume was not properly unmounted. Some data may be
corrupt. Please run fsck.

Although a data corruption during read operations is unlikely, there is
no need to scare the users.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agotools: lzma: reduce copyright noise
Sergey Ryazanov [Tue, 2 Aug 2016 13:29:44 +0000 (16:29 +0300)]
tools: lzma: reduce copyright noise

Move the copyright printing code to the usage printing function, to
reduce noise from regular execution but preserve information about
the author.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
8 years agobase-files: remove dead code
Daniel Golle [Tue, 2 Aug 2016 13:38:46 +0000 (15:38 +0200)]
base-files: remove dead code

/etc/init.d/boot tried to create /dev/root based on the kernel's
cmdline which won't work on any recent targets. Remove that code now
that fstools can detect the mounted rootfs based on
/proc/self/mountinfo and /dev/root was long gone anyway.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agoimage: fix per-device rootfs build error when not all opkg package files are found
Felix Fietkau [Thu, 4 Aug 2016 09:12:27 +0000 (11:12 +0200)]
image: fix per-device rootfs build error when not all opkg package files are found

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoscripts/config: properly handle select on symbols with unmet direct dependencies
Felix Fietkau [Wed, 3 Aug 2016 17:55:02 +0000 (19:55 +0200)]
scripts/config: properly handle select on symbols with unmet direct dependencies

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoscripts/config: sync with latest linux upstream
Felix Fietkau [Wed, 3 Aug 2016 17:47:34 +0000 (19:47 +0200)]
scripts/config: sync with latest linux upstream

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: clean up 260-crypto_test_dependencies.patch to get rid of some more kernel...
Felix Fietkau [Wed, 3 Aug 2016 15:34:04 +0000 (17:34 +0200)]
kernel: clean up 260-crypto_test_dependencies.patch to get rid of some more kernel bloat

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: modularize bridge netfilter support a bit further to get rid of some kernel...
Felix Fietkau [Wed, 3 Aug 2016 15:07:32 +0000 (17:07 +0200)]
kernel: modularize bridge netfilter support a bit further to get rid of some kernel bloat

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: remove switch driver kmod packages
Felix Fietkau [Wed, 3 Aug 2016 14:38:04 +0000 (16:38 +0200)]
kernel: remove switch driver kmod packages

Targets that need switch drivers should select them in their kernel
config. This prevents some bloat from creeping into targets that don't
need switchdev/dsa

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoramips: enable nand support for mt7621
John Crispin [Wed, 3 Aug 2016 13:29:59 +0000 (15:29 +0200)]
ramips: enable nand support for mt7621

this makes sysupgrade work on the ERX

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoinclude/image.mk: allow image code to override uImage name
John Crispin [Wed, 3 Aug 2016 00:30:12 +0000 (02:30 +0200)]
include/image.mk: allow image code to override uImage name

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoramips: updated remaining profiles to the new image building code
John Crispin [Tue, 2 Aug 2016 17:48:17 +0000 (19:48 +0200)]
ramips: updated remaining profiles to the new image building code

Signed-off-by: John Crispin <john@phrozen.org>
8 years agox86: enable CPU frequency scaling
Lucian Cristian [Sun, 31 Jul 2016 14:59:01 +0000 (17:59 +0300)]
x86: enable CPU frequency scaling

CPU frequency scaling enables the operating system to scale the CPU
frequency up or down in order to save power. CPU frequencies can be
scaled automatically depending on the system load, in response to ACPI
events, or manually by userspace programs.

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
8 years agolinux/modules: Add SCH5627 Super I/O chips
Lucian Cristian [Sun, 31 Jul 2016 12:42:53 +0000 (15:42 +0300)]
linux/modules: Add SCH5627 Super I/O chips

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
8 years agolantiq: add cpu temperatur sensor driver for xrx200
Florian Eckert [Mon, 1 Aug 2016 09:10:42 +0000 (11:10 +0200)]
lantiq: add cpu temperatur sensor driver for xrx200

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
8 years agortc-rv5c386a: package does not build inside the SDK
John Crispin [Tue, 2 Aug 2016 07:34:49 +0000 (09:34 +0200)]
rtc-rv5c386a: package does not build inside the SDK

the packages failed to build inside the SDK due to missing header
files.

Signed-off-by: John Crispin <john@phrozen.org>
8 years agouboot-lantiq: package does not build inside the SDK
John Crispin [Tue, 2 Aug 2016 07:31:55 +0000 (09:31 +0200)]
uboot-lantiq: package does not build inside the SDK

the packages failed to build inside the SDK due to missing ethernet
firmware files.

Signed-off-by: John Crispin <john@phrozen.org>
8 years agobuild: remove MIPS dsp/dsp2 CPU_SUBTYPE
Felix Fietkau [Wed, 3 Aug 2016 12:56:43 +0000 (14:56 +0200)]
build: remove MIPS dsp/dsp2 CPU_SUBTYPE

There does not seem to be any meaningful difference in generated code.
This will save some time and space on snapshot builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: move merged package directory from bin/ to staging_dir
Felix Fietkau [Wed, 3 Aug 2016 10:22:04 +0000 (12:22 +0200)]
build: move merged package directory from bin/ to staging_dir

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomkelfimage: remove package, it is a host tool that has been unused for years
Felix Fietkau [Tue, 2 Aug 2016 11:54:40 +0000 (13:54 +0200)]
mkelfimage: remove package, it is a host tool that has been unused for years

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: remove useless minimal/ath5k profiles
Felix Fietkau [Tue, 2 Aug 2016 11:51:13 +0000 (13:51 +0200)]
ar71xx: remove useless minimal/ath5k profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agouboot-ar71xx: fix default selection for NBG460N/550N/550NH
Felix Fietkau [Tue, 2 Aug 2016 11:49:27 +0000 (13:49 +0200)]
uboot-ar71xx: fix default selection for NBG460N/550N/550NH

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomac80211: fix minor memleak on AP restart / warning on driver unload
Felix Fietkau [Tue, 2 Aug 2016 09:14:55 +0000 (11:14 +0200)]
mac80211: fix minor memleak on AP restart / warning on driver unload

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath9k: fix sta initialization bug leading to stability issues
Felix Fietkau [Tue, 2 Aug 2016 11:07:46 +0000 (13:07 +0200)]
ath9k: fix sta initialization bug leading to stability issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoomap: remove CONFIG_SND_DEBUG override
Felix Fietkau [Tue, 2 Aug 2016 06:17:28 +0000 (08:17 +0200)]
omap: remove CONFIG_SND_DEBUG override

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: add missing config symbol
Felix Fietkau [Tue, 2 Aug 2016 06:16:44 +0000 (08:16 +0200)]
kernel: add missing config symbol

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agofeeds: switch from github to lede-project.org mirrors
Felix Fietkau [Mon, 1 Aug 2016 20:33:29 +0000 (22:33 +0200)]
feeds: switch from github to lede-project.org mirrors

GitHub seems to be a bit unreliable on feeds updates on the buildbot
lately, so hopefully our own mirror will be more reliable than that.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agogdb: fix build with gcc 4.1.2 as host compiler
Hauke Mehrtens [Mon, 1 Aug 2016 20:25:54 +0000 (22:25 +0200)]
gdb: fix build with gcc 4.1.2 as host compiler

The additional warnings are causing compile errors on gcc version 4.1.2
as a host compiler.

cc -c  -Wall -Wdeclaration-after-statement -Wpointer-arith
-Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-
style-definition -Wformat-nonliteral  -I. -I. -I./../../include
filter_host.c
cc1: error: unrecognized command line option "-Wempty-body"
cc1: error: unrecognized command line option "-Wmissing-parameter-type"
cc1: error: unrecognized command line option "-Wold-style-declaration"
cc1: error: unrecognized command line option "-Wempty-body"
cc1: error: unrecognized command line option "-Wmissing-parameter-type"
cc1: error: unrecognized command line option "-Wold-style-declaration"

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agoscripts: fix remote-gdb with CONFIG_BUILD_SUFFIX
Hauke Mehrtens [Mon, 1 Aug 2016 19:59:45 +0000 (21:59 +0200)]
scripts: fix remote-gdb with CONFIG_BUILD_SUFFIX

Fix the scripts/remote-gdb script when CONFIG_BUILD_SUFFIX is set.
CONFIG_BUILD_SUFFIX extends the name of the folder build_dir/target*

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agolantiq: enable missing ath10k firmware for BT Home Hub 5A
Felix Fietkau [Mon, 1 Aug 2016 16:29:23 +0000 (18:29 +0200)]
lantiq: enable missing ath10k firmware for BT Home Hub 5A

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: remove image specific checksum code
Jo-Philipp Wich [Tue, 26 Jul 2016 13:08:19 +0000 (15:08 +0200)]
build: remove image specific checksum code

Now that we globally calculate sha256sums over the bin/ directory we can remove
the target image specific checksum handling.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobuild: add checksum target
Jo-Philipp Wich [Tue, 26 Jul 2016 13:05:35 +0000 (15:05 +0200)]
build: add checksum target

Add a new "checksum" make target which generates an sha256sums file over the
image files produced in bin/targets/ and automatically call it during make
world after the package index generation.

The advantage of this new target is that it is guaranteed to run after the
images, the SDK and the ImageBuilder archives have been generated to ensure
that they all end up in the checksum file. Fixes FS#51.

Uses sed to postprocess the OpenSSL digest output into an sha256sum command
compatible format.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoapm821xx: fix IB image building
Jo-Philipp Wich [Sat, 30 Jul 2016 13:43:35 +0000 (15:43 +0200)]
apm821xx: fix IB image building

Change the image build code to generate the DTB files as part of the kernel
build phase in order to fix the image build in the ImageBuilder environment.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: increase vm.min_free_kbytes
Felix Fietkau [Mon, 1 Aug 2016 12:52:13 +0000 (14:52 +0200)]
base-files: increase vm.min_free_kbytes

Network drivers typically allocate memory in atomic context. For that to
be reliable, there needs to be enough free memory. Set the value
heuristically based on the total amount of system RAM.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: re-enable CONFIG_SND_VERBOSE_PROCFS (FS#66)
Felix Fietkau [Mon, 1 Aug 2016 11:36:03 +0000 (13:36 +0200)]
kernel: re-enable CONFIG_SND_VERBOSE_PROCFS (FS#66)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: Make wget2nand look for LEDE project firmware files
diizzyy [Sun, 31 Jul 2016 20:46:29 +0000 (22:46 +0200)]
ar71xx: Make wget2nand look for LEDE project firmware files

Make wget2nand aware of the new file names

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agoipq806x: fix MAC_POWER_SEL for Netgear R7800
dissent1 [Sun, 31 Jul 2016 13:23:42 +0000 (16:23 +0300)]
ipq806x: fix MAC_POWER_SEL for Netgear R7800

Fixes instability/corruption on the ethernet interface connected to port0 on the switch on Netgear R7800 as well.

Signed-off-by: Josh Bendavid <joshbendavid@gmail.com>
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agouqmi: add metric option to interface config
Florian Eckert [Fri, 22 Jul 2016 09:04:57 +0000 (11:04 +0200)]
uqmi: add metric option to interface config

It is now possible to add an metric option for the qmi proto in dhcp mode.

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
8 years agouqmi: fix option ipv6
Florian Eckert [Fri, 22 Jul 2016 09:33:08 +0000 (11:33 +0200)]
uqmi: fix option ipv6

If option ist not set then ipv6 is still enabled on this Interface.
Check if variable is zero will fix this issue.

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
8 years agoramips: Rename TP-Link Archer C50 LEDs
P.Wassi [Tue, 26 Jul 2016 04:45:25 +0000 (06:45 +0200)]
ramips: Rename TP-Link Archer C50 LEDs

Rename LEDs in TP-Link Archer C50 from [manufacturer name]
to [board name] ("tp-link" -> "c50")

Signed-off-by: P.Wassi <p.wassi@gmx.at>
8 years agoramips: Improve TP-Link Archer C20i support
P.Wassi [Tue, 26 Jul 2016 04:44:19 +0000 (06:44 +0200)]
ramips: Improve TP-Link Archer C20i support

Improve / finalise TP-Link Archer C20i support.

Signed-off-by: P.Wassi <p.wassi@gmx.at>
8 years agotarget/sdk: update README.SDK to explain dependency handling
Felix Fietkau [Mon, 1 Aug 2016 09:55:53 +0000 (11:55 +0200)]
target/sdk: update README.SDK to explain dependency handling

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotarget/sdk: ship toolchain and kernel module package
Felix Fietkau [Mon, 1 Aug 2016 09:54:25 +0000 (11:54 +0200)]
target/sdk: ship toolchain and kernel module package

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage: use the merged package directory to resolve dependencies for per-device rootfs
Felix Fietkau [Mon, 1 Aug 2016 09:13:11 +0000 (11:13 +0200)]
image: use the merged package directory to resolve dependencies for per-device rootfs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: create a package feed directory containing all packages
Felix Fietkau [Mon, 1 Aug 2016 09:12:15 +0000 (11:12 +0200)]
build: create a package feed directory containing all packages

Needed for proper dependency handling for per-device rootfs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: fix tabs vs whitespace issue
Felix Fietkau [Mon, 1 Aug 2016 08:07:25 +0000 (10:07 +0200)]
build: fix tabs vs whitespace issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobrcm63xx: fix CT-536p/CT-5621T support
Daniel Gonzalez [Thu, 28 Jul 2016 20:33:26 +0000 (22:33 +0200)]
brcm63xx: fix CT-536p/CT-5621T support

Fix support for the Comtrend  CT-536+, CT-5361 and CT-5621T routers support.

Currently the firmware is broken for these routers, because there is a missing
bar in the code at the DTS file avoiding to match with DTS stuff at the kernel. This
causes the router boots without ethernet connectivity. The status led also has a typo.

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agokernel: silence a false positive uninitialized variable warning
Felix Fietkau [Sun, 31 Jul 2016 18:43:03 +0000 (20:43 +0200)]
kernel: silence a false positive uninitialized variable warning

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoipq806x: fix boot hang if cmdline contains words with r in the middle
Jonas Gorski [Thu, 28 Jul 2016 16:08:35 +0000 (18:08 +0200)]
ipq806x: fix boot hang if cmdline contains words with r in the middle

The ATB DTB mangle code will enter an infinite loop if it encounters a
word in the command line that contains an r in the middle of the word.

Fix this by increasing ptr everytime before invoking strchr, ot avoid
finding the same r again.

This fixes booting at least on Netgear R7500v1, which contains
"ubi.mtd=rootfs" in its commandline, triggering the misbehaviour.

Fixes: 0ddcbee26151 ("ipq806x: activate ATAG DTB mangle and EA8500 rootblock in dts")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agomvebu: fix NAND flash issues (FS#67)
Felix Fietkau [Sun, 31 Jul 2016 18:30:08 +0000 (20:30 +0200)]
mvebu: fix NAND flash issues (FS#67)

Remove the previous PIO delay patch and add a revert patch for a faulty
upstream commit, which seems to have introduced this issue in the first
place

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimx6: clean up / fix ventana image build code
Felix Fietkau [Sun, 31 Jul 2016 17:27:15 +0000 (19:27 +0200)]
imx6: clean up / fix ventana image build code

Fix ubifs mkfs options
Use standard Build/* commands instead of doing everything in the hackish
ubi-boot-overlay template
Fix bootfs.tar.gz build error

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: add template for installing device .dtb files
Felix Fietkau [Sun, 31 Jul 2016 17:25:32 +0000 (19:25 +0200)]
build: add template for installing device .dtb files

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimx6: use ubinize-image.sh to fix build with per-device rootfs
Felix Fietkau [Sun, 31 Jul 2016 16:34:31 +0000 (18:34 +0200)]
imx6: use ubinize-image.sh to fix build with per-device rootfs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: do not depend on svn any more
Hauke Mehrtens [Sun, 31 Jul 2016 10:41:10 +0000 (12:41 +0200)]
build: do not depend on svn any more

LEDE does not need svn to build any more, remove the prerequisite check.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agobrcm63xx: fix build with per-device rootfs
Felix Fietkau [Sun, 31 Jul 2016 11:17:44 +0000 (13:17 +0200)]
brcm63xx: fix build with per-device rootfs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoipq806x: add missing sysupgrade-nand => sysupgrade-tar change
Felix Fietkau [Sun, 31 Jul 2016 11:05:11 +0000 (13:05 +0200)]
ipq806x: add missing sysupgrade-nand => sysupgrade-tar change

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage: fix build issue with per-device rootfs and legacy devices
Felix Fietkau [Sun, 31 Jul 2016 10:38:01 +0000 (12:38 +0200)]
image: fix build issue with per-device rootfs and legacy devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoperf: prevent build from within the sdk and mark as nonshared
Felix Fietkau [Sun, 31 Jul 2016 10:15:07 +0000 (12:15 +0200)]
perf: prevent build from within the sdk and mark as nonshared

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agosdk: provide a config symbol for detecting builds within the SDK
Felix Fietkau [Sun, 31 Jul 2016 10:14:38 +0000 (12:14 +0200)]
sdk: provide a config symbol for detecting builds within the SDK

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage: add a helper variable for getting kernel/rootfs from within image Build/*...
Felix Fietkau [Sat, 30 Jul 2016 12:19:11 +0000 (14:19 +0200)]
image: add a helper variable for getting kernel/rootfs from within image Build/* templates

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: remove hostap driver
Felix Fietkau [Sat, 30 Jul 2016 10:53:02 +0000 (12:53 +0200)]
kernel: remove hostap driver

It has been marked as broken for well over a month now and nobody has
complained.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoocteon: increase block2mtd rootfs probe timeout on ER
Felix Fietkau [Sat, 30 Jul 2016 12:07:47 +0000 (14:07 +0200)]
octeon: increase block2mtd rootfs probe timeout on ER

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage.mk: add CMDLINE to DEVICE_VARS
Felix Fietkau [Sat, 30 Jul 2016 12:01:47 +0000 (14:01 +0200)]
image.mk: add CMDLINE to DEVICE_VARS

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoocteon: pad squashfs sysupgrade image rootfs
Felix Fietkau [Sat, 30 Jul 2016 11:48:00 +0000 (13:48 +0200)]
octeon: pad squashfs sysupgrade image rootfs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage: add support for overriding kernel/rootfs images in sysupgrade-tar template
Felix Fietkau [Sat, 30 Jul 2016 11:47:36 +0000 (13:47 +0200)]
image: add support for overriding kernel/rootfs images in sysupgrade-tar template

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoocteon: drop unsupported jffs2 feature flag
Felix Fietkau [Sat, 30 Jul 2016 11:45:07 +0000 (13:45 +0200)]
octeon: drop unsupported jffs2 feature flag

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoocteon: fix sysupgrade images
Felix Fietkau [Sat, 30 Jul 2016 10:36:33 +0000 (12:36 +0200)]
octeon: fix sysupgrade images

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: fix crashlog regression on x86
Felix Fietkau [Sat, 30 Jul 2016 10:18:08 +0000 (12:18 +0200)]
kernel: fix crashlog regression on x86

Check memblock regions for sufficient size before attempting to use
them. Allow checks for multiple memblock regions until a suitable one is
found.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoinclude/cmake.mk: fix host builds
Felix Fietkau [Fri, 29 Jul 2016 20:47:46 +0000 (22:47 +0200)]
include/cmake.mk: fix host builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agodnsmasq: drop --interface and --except-interface options when the interface cannot...
Felix Fietkau [Fri, 29 Jul 2016 18:58:14 +0000 (20:58 +0200)]
dnsmasq: drop --interface and --except-interface options when the interface cannot be found

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agocmake: include/cmake.mk add CMAKE_BINARY_SUBDIR to allow out of source tree builds
Luke McKee [Sat, 23 Jul 2016 19:00:24 +0000 (02:00 +0700)]
cmake: include/cmake.mk add CMAKE_BINARY_SUBDIR to allow out of source tree builds

Some packages need out of source tree building with cmake, for example
when building kernel modules.
See an example here:
https://sourceforge.net/p/accel-ppp/code/ci/master/tree/README

Signed-off-by: Luke McKee <hojuruku@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup, rework]
8 years agonetifd: update to the latest version, adds an event handling fix
Felix Fietkau [Fri, 29 Jul 2016 17:51:31 +0000 (19:51 +0200)]
netifd: update to the latest version, adds an event handling fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agodnsmasq: remove use of uci state for getting network ifname
Felix Fietkau [Fri, 29 Jul 2016 17:48:12 +0000 (19:48 +0200)]
dnsmasq: remove use of uci state for getting network ifname

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage.mk: remove leftover variable from a previous rework
Felix Fietkau [Fri, 29 Jul 2016 15:13:48 +0000 (17:13 +0200)]
image.mk: remove leftover variable from a previous rework

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath25: rework image building
Jo-Philipp Wich [Fri, 29 Jul 2016 14:47:45 +0000 (16:47 +0200)]
ath25: rework image building

* Remove legacy macros
* Emit generic LZMA and Gzip kernel images from the combined device recipe
* Rename combined device to generic

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobuild: rename sysupgrade-nand to sysupgrade-tar
Jo-Philipp Wich [Fri, 29 Jul 2016 13:05:51 +0000 (15:05 +0200)]
build: rename sysupgrade-nand to sysupgrade-tar

Now that the "sysupgrade-nand" step is used by non-NAND targets as well,
rename it to "sysupgrade-tar" to make it more generic.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoocteon: clean up image build code
Jo-Philipp Wich [Fri, 29 Jul 2016 13:03:19 +0000 (15:03 +0200)]
octeon: clean up image build code

Use the generic "sysupgrade-nand" build step to pack the sysupgrade file,
it performs the same steps as the inline "tar-file" macro.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agodnsmasq: replace the iface hotplug script with a procd trigger
Felix Fietkau [Fri, 29 Jul 2016 12:56:35 +0000 (14:56 +0200)]
dnsmasq: replace the iface hotplug script with a procd trigger

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agodnsmasq: make the check for existing DHCP servers more reliable
Felix Fietkau [Fri, 29 Jul 2016 12:26:55 +0000 (14:26 +0200)]
dnsmasq: make the check for existing DHCP servers more reliable

If there is no carrier yet, wait for 2 seconds (STP forwarding delay)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agodnsmasq: write atomic config file
Ulrich Weber [Mon, 13 Jun 2016 13:21:47 +0000 (15:21 +0200)]
dnsmasq: write atomic config file

multiple invocation of dnsmasq script (e.g. by procd and hotplugd)
might cause procd to restart dnsmasq with an incomplete config file.
Config file generation might take quite a long time on larger configs
due ubus calls for each listening interface...

Signed-off-by: Ulrich Weber <ulrich.weber@riverbed.com>
8 years agonetifd: update to the latest version
Felix Fietkau [Fri, 29 Jul 2016 14:17:40 +0000 (16:17 +0200)]
netifd: update to the latest version

Emits an initial event after the first link-up of a force_link
interface. This is needed for making the dnsmasq dhcp check more
reliable

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoprocd: add default timeout for reload trigger actions
Felix Fietkau [Fri, 29 Jul 2016 12:19:17 +0000 (14:19 +0200)]
procd: add default timeout for reload trigger actions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoigmpproxy: remove procd_open_trigger/procd_close_trigger calls
Felix Fietkau [Fri, 29 Jul 2016 11:07:08 +0000 (13:07 +0200)]
igmpproxy: remove procd_open_trigger/procd_close_trigger calls

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agodropbear: remove procd_open_trigger/procd_close_trigger calls
Felix Fietkau [Fri, 29 Jul 2016 11:04:13 +0000 (13:04 +0200)]
dropbear: remove procd_open_trigger/procd_close_trigger calls

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agosysntpd: remove procd_open_trigger/procd_close_trigger calls
Felix Fietkau [Fri, 29 Jul 2016 11:03:57 +0000 (13:03 +0200)]
sysntpd: remove procd_open_trigger/procd_close_trigger calls

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoprocd: rework trigger handling
Felix Fietkau [Fri, 29 Jul 2016 11:00:56 +0000 (13:00 +0200)]
procd: rework trigger handling

Open/close triggers array around service_triggers call to make using
multiple triggers easier to deal with.
The API was quite confusing, because some functions contained implicit
trigger open/close calls and some didn't.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoprocd: update to the latest version
Felix Fietkau [Fri, 29 Jul 2016 12:07:09 +0000 (14:07 +0200)]
procd: update to the latest version

Fixes a long standing design issue in handling of delayed triggers

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolibubox: update to the latest version, adds a few utility functions
Felix Fietkau [Fri, 29 Jul 2016 12:06:08 +0000 (14:06 +0200)]
libubox: update to the latest version, adds a few utility functions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: add option to enable all profiles
Felix Fietkau [Fri, 22 Jul 2016 12:29:32 +0000 (14:29 +0200)]
build: add option to enable all profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: add support for per-device rootfs based on device profile packges
Felix Fietkau [Fri, 22 Jul 2016 12:27:52 +0000 (14:27 +0200)]
build: add support for per-device rootfs based on device profile packges

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: minor cleanup of redundant code
Felix Fietkau [Fri, 22 Jul 2016 12:04:16 +0000 (14:04 +0200)]
build: minor cleanup of redundant code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: set TMPDIR for opkg calls
Felix Fietkau [Fri, 22 Jul 2016 11:04:11 +0000 (13:04 +0200)]
build: set TMPDIR for opkg calls

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: add target_params variable for getting root filesystem image parameters
Felix Fietkau [Fri, 22 Jul 2016 10:43:54 +0000 (12:43 +0200)]
build: add target_params variable for getting root filesystem image parameters

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: add template for getting opkg package files from package names
Felix Fietkau [Fri, 22 Jul 2016 10:22:16 +0000 (12:22 +0200)]
build: add template for getting opkg package files from package names

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: rework opkg command invocation
Felix Fietkau [Fri, 22 Jul 2016 10:10:17 +0000 (12:10 +0200)]
build: rework opkg command invocation

Drop included $(XARGS), add support for passing target dir via parameter

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: remove obsolete variables from opkg command
Felix Fietkau [Fri, 22 Jul 2016 10:04:33 +0000 (12:04 +0200)]
build: remove obsolete variables from opkg command

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: rework prepare_rootfs to pass target dir via parameter
Felix Fietkau [Fri, 22 Jul 2016 09:54:58 +0000 (11:54 +0200)]
build: rework prepare_rootfs to pass target dir via parameter

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage: add wrapper variable to get the target dir for mkfs commands
Felix Fietkau [Fri, 22 Jul 2016 08:53:12 +0000 (10:53 +0200)]
image: add wrapper variable to get the target dir for mkfs commands

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage: make mkfs template output to $@
Felix Fietkau [Thu, 21 Jul 2016 23:17:35 +0000 (01:17 +0200)]
image: make mkfs template output to $@

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: move rootfs processing code to include/rootfs.mk so it can be reused later
Felix Fietkau [Thu, 21 Jul 2016 16:49:54 +0000 (18:49 +0200)]
build: move rootfs processing code to include/rootfs.mk so it can be reused later

Signed-off-by: Felix Fietkau <nbd@nbd.name>