From 52b0a16cd3d692f962a079bd1a360773c66c5016 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 25 Sep 2013 11:50:05 -0600 Subject: [PATCH] Move CONFIG_NET_DUMPPACKET from LPC17 and STM32 to commong network drivers. Automatically enabled CONFIG_NETDEVICES when any Ethernet driver is enabled --- arch/arm/src/lm/Kconfig | 1 + arch/arm/src/lpc17xx/Kconfig | 9 +-------- arch/arm/src/sama5/Kconfig | 2 ++ arch/mips/src/pic32mx/Kconfig | 9 +-------- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/arch/arm/src/lm/Kconfig b/arch/arm/src/lm/Kconfig index c1266c4739c..84f326fd955 100644 --- a/arch/arm/src/lm/Kconfig +++ b/arch/arm/src/lm/Kconfig @@ -120,6 +120,7 @@ config SSI1_DISABLE config LM_ETHERNET bool "Stellaris Ethernet" default n + select NETDEVICES ---help--- This must be set (along with NET) to build the Stellaris Ethernet driver. diff --git a/arch/arm/src/lpc17xx/Kconfig b/arch/arm/src/lpc17xx/Kconfig index 5097437ab18..31fbc1a8a01 100644 --- a/arch/arm/src/lpc17xx/Kconfig +++ b/arch/arm/src/lpc17xx/Kconfig @@ -137,7 +137,7 @@ config LPC17_EMC config LPC17_ETHERNET bool "Ethernet" - select NET + select NETDEVICES select ARCH_HAVE_PHY default n @@ -684,13 +684,6 @@ config NET_REGDEBUG ---help--- Enable low level register debug. Also needs DEBUG. -config NET_DUMPPACKET - bool "Enable packet dumping" - depends on DEBUG - default n - ---help--- - Dump all received and transmitted packets. Also needs DEBUG. - config NET_HASH bool "Hashing" default n diff --git a/arch/arm/src/sama5/Kconfig b/arch/arm/src/sama5/Kconfig index 0e048c23ba2..5cb96e01e36 100644 --- a/arch/arm/src/sama5/Kconfig +++ b/arch/arm/src/sama5/Kconfig @@ -160,12 +160,14 @@ config SAMA5_GMAC bool "Gigabit Ethernet MAC (GMAC)" default n depends on SAMA5_HAVE_GMAC + select NETDEVICES select ARCH_HAVE_PHY config SAMA5_EMAC bool "10/100MBps Ethernet MAC (EMAC)" default n depends on SAMA5_HAVE_EMAC + select NETDEVICES select ARCH_HAVE_PHY config SAMA5_LCDC diff --git a/arch/mips/src/pic32mx/Kconfig b/arch/mips/src/pic32mx/Kconfig index 82a901809f3..1c04ad6f0f1 100644 --- a/arch/mips/src/pic32mx/Kconfig +++ b/arch/mips/src/pic32mx/Kconfig @@ -573,7 +573,7 @@ config PIC32MX_CAN2 config PIC32MX_ETHERNET bool "Ethernet" default n - select NET + select NETDEVICES select ARCH_HAVE_PHY config PIC32MX_CTMU @@ -981,13 +981,6 @@ config NET_WOL ---help--- Enable Wake-up on LAN (not fully implemented). -config NET_DUMPPACKET - bool "Dump packets" - default n - depends on PIC32MX_ETHERNET && DEBUG - ---help--- - Dump all received and transmitted packets. Also needs DEBUG. - config NET_REGDEBUG bool "Register level debug" default n