[OpenWrt-Devel] [PATCH 2/2] lantiq: image: build initramfs only for FRITZ7362SL

Petr Štetiar ynezz at true.cz
Sun May 5 13:14:20 PDT 2019


Commit "lantiq/xrx200: enable initramfs images" enabled creation of
initramfs images for all devices in lantiq's xrx200 subtarget, just
because FRITZ7362SL needs initramfs during OpenWrt instalation.

So this commits uses selective-ramdisk feature and adds
NEEDS_INITRAMFS=1 to FRITZ7362SL only.

Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 target/linux/lantiq/image/Makefile   | 1 +
 target/linux/lantiq/xrx200/target.mk | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile
index fca3fce..6808337 100644
--- a/target/linux/lantiq/image/Makefile
+++ b/target/linux/lantiq/image/Makefile
@@ -685,6 +685,7 @@ define Device/avm_fritz7362sl
   DEVICE_DTS := FRITZ7362SL
   DEVICE_TITLE := AVM FRITZ!Box 7362 SL
   DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-basic kmod-usb-dwc2 fritz-tffs
+  NEEDS_INITRAMFS := 1
 endef
 TARGET_DEVICES += avm_fritz7362sl
 
diff --git a/target/linux/lantiq/xrx200/target.mk b/target/linux/lantiq/xrx200/target.mk
index 4d92b25..8740794 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 ramdisk
+FEATURES:=squashfs atm nand selective-ramdisk
 CPU_TYPE:=24kc
 
 DEFAULT_PACKAGES+=kmod-leds-gpio \
-- 
1.9.1




More information about the openwrt-devel mailing list