[OpenWrt-Devel] [PATCH] [RFC] lantiq: disable a bunch of features not applicable to my box

Oswald Buddenhagen oswald.buddenhagen at gmx.de
Wed May 18 03:39:16 EDT 2016


- NAND/UBI support is completely irrelevant for my box, and for
  lantiq/Danube in general (IIRC). It appears to me that it would make
  sense to split it off from the xway target.
- My box has no USB port and no other sensible option to connect
  mass storage devices, so anything related to that makes no sense as
  well.
- Some stuff related to my boot configuration/partitioning. Some of it
  should be obsolete by now due to the recently added support for
  brnboot alternative image switching.
- foo & bar, i guess

I found no way to subtract features/kernel configs in device profiles,
hence this somewhat big hammer. This patch is obviously not meant for
upstreaming.
---
 target/linux/lantiq/config-4.4          | 11 +++++-----
 target/linux/lantiq/xway/config-default | 39 ++++++++++++---------------------
 target/linux/lantiq/xway/target.mk      |  2 +-
 3 files changed, 20 insertions(+), 32 deletions(-)

diff --git a/target/linux/lantiq/config-4.4 b/target/linux/lantiq/config-4.4
index cf3ec47..3e39303 100644
--- a/target/linux/lantiq/config-4.4
+++ b/target/linux/lantiq/config-4.4
@@ -139,10 +139,10 @@ CONFIG_MTD_LANTIQ=y
 CONFIG_MTD_M25P80=y
 CONFIG_MTD_SPI_NOR=y
 CONFIG_MTD_SPLIT_BRNIMAGE_FW=y
-CONFIG_MTD_SPLIT_EVA_FW=y
+# CONFIG_MTD_SPLIT_EVA_FW is not set
 CONFIG_MTD_SPLIT_FIRMWARE=y
-CONFIG_MTD_SPLIT_TPLINK_FW=y
-CONFIG_MTD_SPLIT_UIMAGE_FW=y
+# CONFIG_MTD_SPLIT_TPLINK_FW is not set
+# CONFIG_MTD_SPLIT_UIMAGE_FW is not set
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NEED_PER_CPU_KM=y
 CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
@@ -170,11 +170,10 @@ CONFIG_PINCTRL=y
 CONFIG_PINCTRL_LANTIQ=y
 # CONFIG_PINCTRL_SINGLE is not set
 CONFIG_PINCTRL_XWAY=y
-CONFIG_PSB6970_PHY=y
+# CONFIG_PSB6970_PHY is not set
 # CONFIG_RCU_STALL_COMMON is not set
 CONFIG_RESET_CONTROLLER=y
-CONFIG_RTL8366RB_PHY=y
-CONFIG_RTL8366_SMI=y
+# CONFIG_RTL8366RB_PHY is not set
 CONFIG_SCHED_HRTICK=y
 # CONFIG_SCHED_INFO is not set
 # CONFIG_SCSI_DMA is not set
diff --git a/target/linux/lantiq/xway/config-default b/target/linux/lantiq/xway/config-default
index ae13f80..306fe8f 100644
--- a/target/linux/lantiq/xway/config-default
+++ b/target/linux/lantiq/xway/config-default
@@ -1,5 +1,5 @@
-CONFIG_ADM6996_PHY=y
-CONFIG_AR8216_PHY=y
+# CONFIG_ADM6996_PHY is not set
+# CONFIG_AR8216_PHY is not set
 # CONFIG_ARCH_HAS_SG_CHAIN is not set
 CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
 CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
@@ -23,7 +23,7 @@ CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
 CONFIG_HAVE_DMA_CONTIGUOUS=y
 CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
 CONFIG_HZ_PERIODIC=y
-CONFIG_INPUT=y
+# CONFIG_INPUT is not set
 CONFIG_INPUT_EVDEV=y
 CONFIG_INPUT_POLLDEV=y
 CONFIG_IRQCHIP=y
@@ -33,40 +33,29 @@ CONFIG_LEDS_TRIGGER_HEARTBEAT=y
 CONFIG_LIBFDT=y
 CONFIG_LZO_COMPRESS=y
 CONFIG_LZO_DECOMPRESS=y
-CONFIG_MTD_NAND=y
-CONFIG_MTD_NAND_ECC=y
-CONFIG_MTD_NAND_PLATFORM=y
-CONFIG_MTD_NAND_XWAY=y
+# CONFIG_MTD_NAND is not set
 # CONFIG_MTD_PHYSMAP_OF is not set
-CONFIG_MTD_SPLIT_UIMAGE_FW=y
-CONFIG_MTD_UBI=y
-CONFIG_MTD_UBI_BEB_LIMIT=20
-CONFIG_MTD_UBI_BLOCK=y
-# CONFIG_MTD_UBI_FASTMAP is not set
-# CONFIG_MTD_UBI_GLUEBI is not set
-CONFIG_MTD_UBI_WL_THRESHOLD=4096
+# CONFIG_MTD_SPLIT_UIMAGE_FW is not set
+# CONFIG_MTD_UBI is not set
 CONFIG_NLS=y
 # CONFIG_NO_IOPORT_MAP is not set
 CONFIG_OF_ADDRESS_PCI=y
 # CONFIG_RCU_STALL_COMMON is not set
 CONFIG_RTL8306_PHY=y
-CONFIG_RTL8366S_PHY=y
-CONFIG_RTL8367B_PHY=y
-CONFIG_RTL8367_PHY=y
+# CONFIG_RTL8366S_PHY is not set
+# CONFIG_RTL8367B_PHY is not set
+# CONFIG_RTL8367_PHY is not set
 CONFIG_SPI=y
 CONFIG_SPI_LANTIQ=y
 CONFIG_SPI_MASTER=y
 CONFIG_SYS_SUPPORTS_MIPS16=y
-CONFIG_UBIFS_FS=y
-CONFIG_UBIFS_FS_ADVANCED_COMPR=y
-CONFIG_UBIFS_FS_LZO=y
-# CONFIG_UBIFS_FS_XZ is not set
-CONFIG_UBIFS_FS_ZLIB=y
-CONFIG_USB=y
-CONFIG_USB_COMMON=y
+# CONFIG_UBIFS_FS is not set
+# CONFIG_USB is not set
 # CONFIG_USB_EHCI_HCD is not set
-CONFIG_USB_SUPPORT=y
 # CONFIG_USB_UHCI_HCD is not set
 # CONFIG_XRX200_PHY_FW is not set
 CONFIG_ZLIB_DEFLATE=y
 CONFIG_ZLIB_INFLATE=y
+# CONFIG_EFI_PARTITION is not set
+# CONFIG_MSDOS_PARTITION is not set
+# CONFIG_MTD_SPLIT_SQUASHFS_ROOT is not set
diff --git a/target/linux/lantiq/xway/target.mk b/target/linux/lantiq/xway/target.mk
index b9d4a0f..8c72319 100644
--- a/target/linux/lantiq/xway/target.mk
+++ b/target/linux/lantiq/xway/target.mk
@@ -1,7 +1,7 @@
 ARCH:=mips
 SUBTARGET:=xway
 BOARDNAME:=XWAY
-FEATURES:=squashfs atm mips16 nand ubifs ramdisk
+FEATURES:=squashfs atm mips16 ramdisk
 CPU_TYPE:=34kc
 CPU_SUBTYPE:=dsp
 
-- 
2.7.4.1.gb6fc189
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list