lantiq: add swconfig to the default packages

The DEVICE_PACKAGES are not included in the initramfs image in case
TARGET_PER_DEVICE_ROOTFS is set. This might produces initramfs images
with a not working network configuration because of a missing swconfig.

Workaround the issues by adding the essential swconfig package to the
default packages selection and deselect swconfig for boards not having
swconfig included before via device packages.

Signed-off-by: Mathias Kresin <dev@kresin.me>
master
Mathias Kresin 8 years ago
parent 57d36e5bdd
commit 5cdbc86329
  1. 70
      target/linux/lantiq/image/Makefile
  2. 2
      target/linux/lantiq/xway/target.mk
  3. 2
      target/linux/lantiq/xway_legacy/target.mk

@ -115,8 +115,7 @@ define Device/ARV4520PW
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-rt61-pci wpad-mini \ kmod-rt61-pci wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV4520PW TARGET_DEVICES += ARV4520PW
@ -126,7 +125,7 @@ define Device/ARV4525PW
DEVICE_PACKAGES := kmod-ath5k wpad-mini \ DEVICE_PACKAGES := kmod-ath5k wpad-mini \
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa ltq-adsl-app ppp-mod-pppoa -swconfig
endef endef
TARGET_DEVICES += ARV4525PW TARGET_DEVICES += ARV4525PW
@ -137,8 +136,7 @@ define Device/ARV452CQW
kmod-ath5k wpad-mini \ kmod-ath5k wpad-mini \
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa
swconfig
endef endef
TARGET_DEVICES += ARV452CQW TARGET_DEVICES += ARV452CQW
@ -149,8 +147,7 @@ define Device/ARV4518PWR01
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ath5k wpad-mini \ kmod-ath5k wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV4518PWR01 TARGET_DEVICES += ARV4518PWR01
@ -161,8 +158,7 @@ define Device/ARV4518PWR01A
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ath5k wpad-mini \ kmod-ath5k wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV4518PWR01A TARGET_DEVICES += ARV4518PWR01A
@ -180,8 +176,7 @@ define Device/BTHOMEHUBV2B
kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
kmod-ltq-deu-danube \ kmod-ltq-deu-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ath9k wpad-mini \ kmod-ath9k wpad-mini
swconfig
endef endef
TARGET_DEVICES += BTHOMEHUBV2B TARGET_DEVICES += BTHOMEHUBV2B
@ -197,7 +192,7 @@ define Device/ACMP252
DEVICE_PACKAGES := kmod-rt2x00-pci wpad-mini \ DEVICE_PACKAGES := kmod-rt2x00-pci wpad-mini \
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-a kmod-ltq-ptm-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-ptm-danube \
ltq-adsl-app ltq-adsl-app -swconfig
endef endef
TARGET_DEVICES += ACMP252 TARGET_DEVICES += ACMP252
@ -209,8 +204,7 @@ define Device/ARV4510PW
kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ltq-tapi kmod-ltq-vmmc \ kmod-ltq-tapi kmod-ltq-vmmc \
kmod-rt2800-pci kmod-ath5k wpad-mini \ kmod-rt2800-pci kmod-ath5k wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV4510PW TARGET_DEVICES += ARV4510PW
@ -220,7 +214,7 @@ define Device/ARV7525PW
DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini \ DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini \
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa ltq-adsl-app ppp-mod-pppoa -swconfig
endef endef
TARGET_DEVICES += ARV7525PW TARGET_DEVICES += ARV7525PW
@ -230,8 +224,7 @@ define Device/ARV4519PW
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \ DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa
swconfig
endef endef
TARGET_DEVICES += ARV4519PW TARGET_DEVICES += ARV4519PW
@ -241,8 +234,7 @@ define Device/ARV7506PW11
DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-rt2800-pci wpad-mini \ kmod-rt2800-pci wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV7506PW11 TARGET_DEVICES += ARV7506PW11
@ -255,8 +247,7 @@ define Device/ARV7510PW22
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ltq-tapi kmod-ltq-vmmc \ kmod-ltq-tapi kmod-ltq-vmmc \
kmod-rt2800-pci wpad-mini \ kmod-rt2800-pci wpad-mini \
kmod-usb-uhci kmod-usb2 kmod-usb2-pci \ kmod-usb-uhci kmod-usb2 kmod-usb2-pci
swconfig
endef endef
TARGET_DEVICES += ARV7510PW22 TARGET_DEVICES += ARV7510PW22
@ -267,8 +258,7 @@ define Device/ARV7518PW
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ath9k wpad-mini \ kmod-ath9k wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV7518PW TARGET_DEVICES += ARV7518PW
@ -279,8 +269,7 @@ define Device/ARV7519PW
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-rt2800-pci wpad-mini \ kmod-rt2800-pci wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV7519PW TARGET_DEVICES += ARV7519PW
@ -292,8 +281,7 @@ define Device/ARV752DPW
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ltq-tapi kmod-ltq-vmmc \ kmod-ltq-tapi kmod-ltq-vmmc \
kmod-rt2800-pci wpad-mini \ kmod-rt2800-pci wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV752DPW TARGET_DEVICES += ARV752DPW
@ -305,8 +293,7 @@ define Device/ARV752DPW22
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ltq-tapi kmod-ltq-vmmc \ kmod-ltq-tapi kmod-ltq-vmmc \
kmod-rt2800-pci wpad-mini \ kmod-rt2800-pci wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV752DPW22 TARGET_DEVICES += ARV752DPW22
@ -317,8 +304,7 @@ define Device/ARV8539PW22
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ath9k wpad-mini \ kmod-ath9k wpad-mini
swconfig
endef endef
TARGET_DEVICES += ARV8539PW22 TARGET_DEVICES += ARV8539PW22
@ -329,8 +315,7 @@ define Device/GIGASX76X
kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
ltq-adsl-app ppp-mod-pppoe \ ltq-adsl-app ppp-mod-pppoe \
kmod-ath5k wpad-mini \ kmod-ath5k wpad-mini
swconfig
endef endef
TARGET_DEVICES += GIGASX76X TARGET_DEVICES += GIGASX76X
@ -345,8 +330,7 @@ define Device/BTHOMEHUBV3A
kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \ kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
kmod-ltq-deu-ar9 \ kmod-ltq-deu-ar9 \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ath9k wpad-mini \ kmod-ath9k wpad-mini uboot-envtools
swconfig uboot-envtools
endef endef
TARGET_DEVICES += BTHOMEHUBV3A TARGET_DEVICES += BTHOMEHUBV3A
@ -377,7 +361,7 @@ define Device/DGN3500
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \ kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \ kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ltq-deu-ar9 swconfig kmod-ltq-deu-ar9
endef endef
TARGET_DEVICES += DGN3500 TARGET_DEVICES += DGN3500
@ -397,7 +381,7 @@ define Device/DGN3500B
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \ kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ltq-deu-ar9 swconfig kmod-ltq-deu-ar9
endef endef
TARGET_DEVICES += DGN3500B TARGET_DEVICES += DGN3500B
@ -409,7 +393,7 @@ define Device/WBMRA
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \ kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \ kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ath9k wpad-mini swconfig kmod-ath9k wpad-mini
endef endef
TARGET_DEVICES += WBMRA TARGET_DEVICES += WBMRA
@ -421,7 +405,7 @@ define Device/WBMRB
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \ kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ath9k wpad-mini swconfig kmod-ath9k wpad-mini
endef endef
TARGET_DEVICES += WBMRB TARGET_DEVICES += WBMRB
@ -434,7 +418,7 @@ define Device/FRITZ7320
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
ltq-adsl-app ppp-mod-pppoa \ ltq-adsl-app ppp-mod-pppoa \
kmod-ltq-deu-ar9 kmod-usb-dwc2 \ kmod-ltq-deu-ar9 kmod-usb-dwc2 \
kmod-ath9k wpad-mini kmod-ath9k wpad-mini -swconfig
endef endef
TARGET_DEVICES += FRITZ7320 TARGET_DEVICES += FRITZ7320
@ -446,8 +430,7 @@ define Device/H201L
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
ltq-adsl-app ppp-mod-pppoe \ ltq-adsl-app ppp-mod-pppoe \
kmod-ltq-deu-ar9 kmod-usb-dwc2 kmod-usb-ledtrig-usbport \ kmod-ltq-deu-ar9 kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
kmod-ltq-tapi kmod-ltq-vmmc \ kmod-ltq-tapi kmod-ltq-vmmc
swconfig
endef endef
TARGET_DEVICES += H201L TARGET_DEVICES += H201L
@ -458,8 +441,7 @@ define Device/P2601HNFX
kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \ kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
ltq-adsl-app ppp-mod-pppoe \ ltq-adsl-app ppp-mod-pppoe \
kmod-ltq-deu-ar9 kmod-usb-dwc2 \ kmod-ltq-deu-ar9 kmod-usb-dwc2
swconfig
endef endef
TARGET_DEVICES += P2601HNFX TARGET_DEVICES += P2601HNFX

@ -4,7 +4,7 @@ BOARDNAME:=XWAY
FEATURES:=squashfs atm mips16 nand ubifs ramdisk FEATURES:=squashfs atm mips16 nand ubifs ramdisk
CPU_TYPE:=24kc CPU_TYPE:=24kc
DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug swconfig
define Target/Description define Target/Description
Lantiq XWAY Lantiq XWAY

@ -4,7 +4,7 @@ BOARDNAME:=XWAY Legacy
FEATURES:=squashfs atm mips16 ramdisk small_flash FEATURES:=squashfs atm mips16 ramdisk small_flash
CPU_TYPE:=24kc CPU_TYPE:=24kc
DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug swconfig
define Target/Description define Target/Description
Lantiq XWAY Legacy for old boards with small flash Lantiq XWAY Legacy for old boards with small flash

Loading…
Cancel
Save