From 239ad94165adc3ffb5290dd871d2ff0ddff4bdcf Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 13 Jun 2016 19:04:20 +0200 Subject: [PATCH] lantiq: add xway_legacy target due to bloat recent builds fail to fit into the flash of the old danube units Signed-off-by: John Crispin --- target/linux/lantiq/Makefile | 2 +- target/linux/lantiq/image/Makefile | 130 +++++++++--------- .../linux/lantiq/xway_legacy/config-default | 29 ++++ .../lantiq/xway_legacy/profiles/00-default.mk | 9 ++ target/linux/lantiq/xway_legacy/target.mk | 12 ++ 5 files changed, 118 insertions(+), 64 deletions(-) create mode 100644 target/linux/lantiq/xway_legacy/config-default create mode 100644 target/linux/lantiq/xway_legacy/profiles/00-default.mk create mode 100644 target/linux/lantiq/xway_legacy/target.mk diff --git a/target/linux/lantiq/Makefile b/target/linux/lantiq/Makefile index b615c4b784..af4295cbb8 100644 --- a/target/linux/lantiq/Makefile +++ b/target/linux/lantiq/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk BOARD:=lantiq BOARDNAME:=Lantiq FEATURES:=squashfs -SUBTARGETS=xway xrx200 +SUBTARGETS=xrx200 xway xway_legacy MAINTAINER:=John Crispin KERNEL_PATCHVER:=4.4 diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile index 49f3fbda06..e822af20cc 100644 --- a/target/linux/lantiq/image/Makefile +++ b/target/linux/lantiq/image/Makefile @@ -281,6 +281,73 @@ define Device/lantiqBrnImage endef DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY +ifeq ($(SUBTARGET),xway_legacy) + +define Device/ARV4520PW + DEVICE_PROFILE := ARV4520PW + IMAGE_SIZE := 3648k + DEVICE_TITLE := Easybox 800, WAV-281 - ARV4520PW + DEVICE_PACKAGES := kmod-ltq-hcd-danube \ + kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ + kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ + ltq-adsl-app ppp-mod-pppoa \ + kmod-rt61-pci wpad-mini \ + swconfig +endef +TARGET_DEVICES += ARV4520PW + +define Device/ARV4525PW + DEVICE_PROFILE := ARV4525PW + IMAGE_SIZE := 3776k + DEVICE_TITLE := Speedport W502V Typ A - ARV4525PW + DEVICE_PACKAGES := kmod-ath5k wpad-mini \ + kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ + kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ + ltq-adsl-app ppp-mod-pppoa +endef +TARGET_DEVICES += ARV4525PW + +define Device/ARV452CQW + DEVICE_PROFILE := ARV452CQW + IMAGE_SIZE := 3776k + DEVICE_TITLE := Easybox 801 - ARV452CQW + DEVICE_PACKAGES := kmod-ltq-hcd-danube \ + kmod-ath5k wpad-mini \ + kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ + kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ + ltq-adsl-app ppp-mod-pppoa \ + swconfig +endef +TARGET_DEVICES += ARV452CQW + +define Device/ARV4518PWR01 + DEVICE_PROFILE := ARV4518PWR01 + IMAGE_SIZE := 3776k + DEVICE_TITLE := ARV4518PWR01 + DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \ + kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ + kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ + ltq-adsl-app ppp-mod-pppoa \ + kmod-ath5k wpad-mini \ + swconfig +endef +TARGET_DEVICES += ARV4518PWR01 + +define Device/ARV4518PWR01A + DEVICE_PROFILE := ARV4518PWR01A + IMAGE_SIZE := 3776k + DEVICE_TITLE := ARV4518PWR01A + DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \ + kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ + kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ + ltq-adsl-app ppp-mod-pppoa \ + kmod-ath5k wpad-mini \ + swconfig +endef +TARGET_DEVICES += ARV4518PWR01A + +endif + ifeq ($(SUBTARGET),xway) # Danube @@ -322,17 +389,6 @@ define Device/ARV4510PW endef TARGET_DEVICES += ARV4510PW -define Device/ARV4525PW - DEVICE_PROFILE := ARV4525PW - IMAGE_SIZE := 3776k - DEVICE_TITLE := Speedport W502V Typ A - ARV4525PW - DEVICE_PACKAGES := kmod-ath5k wpad-mini \ - kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ - kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ - ltq-adsl-app ppp-mod-pppoa -endef -TARGET_DEVICES += ARV4525PW - define Device/ARV7525PW DEVICE_PROFILE := ARV7525PW IMAGE_SIZE := 3776k @@ -344,32 +400,6 @@ define Device/ARV7525PW endef TARGET_DEVICES += ARV7525PW -define Device/ARV4518PWR01 - DEVICE_PROFILE := ARV4518PWR01 - IMAGE_SIZE := 3776k - DEVICE_TITLE := ARV4518PWR01 - DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \ - kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ - kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ - ltq-adsl-app ppp-mod-pppoa \ - kmod-ath5k wpad-mini \ - swconfig -endef -TARGET_DEVICES += ARV4518PWR01 - -define Device/ARV4518PWR01A - DEVICE_PROFILE := ARV4518PWR01A - IMAGE_SIZE := 3776k - DEVICE_TITLE := ARV4518PWR01A - DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \ - kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ - kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ - ltq-adsl-app ppp-mod-pppoa \ - kmod-ath5k wpad-mini \ - swconfig -endef -TARGET_DEVICES += ARV4518PWR01A - define Device/ARV4519PW DEVICE_PROFILE := ARV4519PW IMAGE_SIZE := 3776k @@ -382,32 +412,6 @@ define Device/ARV4519PW endef TARGET_DEVICES += ARV4519PW -define Device/ARV4520PW - DEVICE_PROFILE := ARV4520PW - IMAGE_SIZE := 3648k - DEVICE_TITLE := Easybox 800, WAV-281 - ARV4520PW - DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \ - kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ - kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ - ltq-adsl-app ppp-mod-pppoa \ - kmod-rt61-pci wpad-mini \ - swconfig -endef -TARGET_DEVICES += ARV4520PW - -define Device/ARV452CQW - DEVICE_PROFILE := ARV452CQW - IMAGE_SIZE := 3776k - DEVICE_TITLE := Easybox 801 - ARV452CQW - DEVICE_PACKAGES := kmod-ltq-hcd-danube kmod-ledtrig-usbdev \ - kmod-ath5k wpad-mini \ - kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ - kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ - ltq-adsl-app ppp-mod-pppoa \ - swconfig -endef -TARGET_DEVICES += ARV452CQW - define Device/ARV7510PW22 DEVICE_PROFILE := ARV7510PW22 IMAGE_SIZE := 31232k diff --git a/target/linux/lantiq/xway_legacy/config-default b/target/linux/lantiq/xway_legacy/config-default new file mode 100644 index 0000000000..b838106ddc --- /dev/null +++ b/target/linux/lantiq/xway_legacy/config-default @@ -0,0 +1,29 @@ +CONFIG_ADM6996_PHY=y +CONFIG_AR8216_PHY=y +CONFIG_CRC16=y +CONFIG_CRYPTO_DEFLATE=y +CONFIG_CRYPTO_LZO=y +CONFIG_FIRMWARE_IN_KERNEL=y +# CONFIG_GPIO_SYSFS is not set +# CONFIG_HW_RANDOM is not set +CONFIG_INPUT=y +CONFIG_INPUT_EVDEV=y +CONFIG_INPUT_POLLDEV=y +# CONFIG_ISDN is not set +CONFIG_LEDS_TRIGGER_HEARTBEAT=y +# CONFIG_LEDS_TRIGGER_TIMER is not set +CONFIG_LZO_COMPRESS=y +CONFIG_LZO_DECOMPRESS=y +# CONFIG_MTD_PHYSMAP_OF is not set +CONFIG_NLS=y +CONFIG_RTL8306_PHY=y +CONFIG_RTL8366S_PHY=y +CONFIG_RTL8367B_PHY=y +CONFIG_RTL8367_PHY=y +CONFIG_USB=y +CONFIG_USB_COMMON=y +# CONFIG_USB_EHCI_HCD is not set +CONFIG_USB_SUPPORT=y +# CONFIG_USB_UHCI_HCD is not set +CONFIG_ZLIB_DEFLATE=y +CONFIG_ZLIB_INFLATE=y diff --git a/target/linux/lantiq/xway_legacy/profiles/00-default.mk b/target/linux/lantiq/xway_legacy/profiles/00-default.mk new file mode 100644 index 0000000000..26bc8b502b --- /dev/null +++ b/target/linux/lantiq/xway_legacy/profiles/00-default.mk @@ -0,0 +1,9 @@ +define Profile/Default + NAME:=Default Profile + PRIORITY:=1 +endef + +define Profile/Default/Description + Default package set compatible with most boards. +endef +$(eval $(call Profile,Default)) diff --git a/target/linux/lantiq/xway_legacy/target.mk b/target/linux/lantiq/xway_legacy/target.mk new file mode 100644 index 0000000000..2d9cc56d38 --- /dev/null +++ b/target/linux/lantiq/xway_legacy/target.mk @@ -0,0 +1,12 @@ +ARCH:=mips +SUBTARGET:=xway_legacy +BOARDNAME:=XWAY Legacy +FEATURES:=squashfs atm mips16 ramdisk small_flash +CPU_TYPE:=34kc +CPU_SUBTYPE:=dsp + +DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug + +define Target/Description + Lantiq XWAY Legacy for old boards with small flash +endef