aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStijn Segers <foss@volatilesystems.org>2019-04-27 18:23:21 +0200
committerPetr Štetiar <ynezz@true.cz>2019-05-15 13:34:23 +0200
commit5cd49395d35eade0d07b9db8c5ea47037de8db2f (patch)
tree3509fd381ab1020fd64072618110e32ab5a2c434
parent172b02c05f2dc199f511f1577aeddfabb7790dc0 (diff)
downloadupstream-5cd49395d35eade0d07b9db8c5ea47037de8db2f.tar.gz
upstream-5cd49395d35eade0d07b9db8c5ea47037de8db2f.tar.bz2
upstream-5cd49395d35eade0d07b9db8c5ea47037de8db2f.zip
lantiq/xrx200: enable initramfs images
Commit eae6cac6a3 ("lantiq: add support for AVM FRITZ!Box 7362 SL"), but one needs an initramfs image to flash OpenWrt from stock firmware (as described in the commit log). This patch has the initramfs image built by default. Thanks to blogic (for pointing to the FEATURES declaration in the target Makefiles) and Musashino on the forum for suggesting config/Config-images.in needed editing too. While at it, reorder the TARGET_INITRAMFS_COMPRESSION_LZMA declarations alphabetically. This patch will result in initramfs images for all lantiq subtargets that have the ramdisk flag set. I tested on the falcon and ase subtargets, which lack that flag, to confirm they don't produce any initramfs images with this patch - which they do not. Given the limited scope of the lantiq (sub)target(s), blogic indicated this should be OK. Signed-off-by: Stijn Segers <foss@volatilesystems.org> Signed-off-by: Petr Štetiar <ynezz@true.cz> [fixed the wrong reference to eae6cac6a3 commit]
-rw-r--r--config/Config-images.in5
-rw-r--r--target/linux/lantiq/xrx200/target.mk2
2 files changed, 4 insertions, 3 deletions
diff --git a/config/Config-images.in b/config/Config-images.in
index 9daaf74915..8548c7cd24 100644
--- a/config/Config-images.in
+++ b/config/Config-images.in
@@ -14,10 +14,11 @@ menu "Target Images"
choice
prompt "Compression"
- default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
- default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_apm821xx
+ default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
+ default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq
default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
+ default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
default TARGET_INITRAMFS_COMPRESSION_NONE
depends on TARGET_ROOTFS_INITRAMFS
help
diff --git a/target/linux/lantiq/xrx200/target.mk b/target/linux/lantiq/xrx200/target.mk
index 4f682bf486..4d92b25bcb 100644
--- a/target/linux/lantiq/xrx200/target.mk
+++ b/target/linux/lantiq/xrx200/target.mk
@@ -1,7 +1,7 @@
ARCH:=mips
SUBTARGET:=xrx200
BOARDNAME:=XRX200
-FEATURES:=squashfs atm nand
+FEATURES:=squashfs atm nand ramdisk
CPU_TYPE:=24kc
DEFAULT_PACKAGES+=kmod-leds-gpio \