From 49e2442febb7c4502dae77f87f5be68db7288880 Mon Sep 17 00:00:00 2001 From: "jc_.kim" Date: Mon, 27 Mar 2017 10:25:21 +0900 Subject: [PATCH] remove unnecessary config in apps Kconfig and Makefile remove unnecessary if~endif in apps Kconfig and unnecessary configs in makefile --- apps/netutils/dhcpc/Kconfig | 3 --- apps/netutils/ftpd/Kconfig | 3 --- apps/netutils/json/Kconfig | 3 --- apps/netutils/netlib/Kconfig | 3 --- apps/netutils/smtp/Kconfig | 3 --- apps/netutils/telnetd/Kconfig | 3 --- apps/netutils/tftpc/Kconfig | 3 --- apps/system/flash_eraseall/Kconfig | 4 ---- apps/system/install/Kconfig | 4 ---- apps/system/mdio/Kconfig | 3 --- apps/system/poweroff/Kconfig | 3 --- apps/system/ramtron/Kconfig | 4 ---- apps/system/vi/Kconfig | 15 --------------- apps/system/vi/Makefile | 5 ----- 14 files changed, 59 deletions(-) diff --git a/apps/netutils/dhcpc/Kconfig b/apps/netutils/dhcpc/Kconfig index be1d1eb..8073437 100644 --- a/apps/netutils/dhcpc/Kconfig +++ b/apps/netutils/dhcpc/Kconfig @@ -10,6 +10,3 @@ config NETUTILS_DHCPC # depends on NET_UDP && NET_BROADCAST && NET_IPv4 ---help--- Enable support for the DHCP client. - -if NETUTILS_DHCPC -endif diff --git a/apps/netutils/ftpd/Kconfig b/apps/netutils/ftpd/Kconfig index 7f273fd..e7f5cff 100644 --- a/apps/netutils/ftpd/Kconfig +++ b/apps/netutils/ftpd/Kconfig @@ -8,6 +8,3 @@ config NETUTILS_FTPD default n ---help--- Enable support for the FTP server. - -if NETUTILS_FTPD -endif diff --git a/apps/netutils/json/Kconfig b/apps/netutils/json/Kconfig index 09a6bf8..9ea263b 100644 --- a/apps/netutils/json/Kconfig +++ b/apps/netutils/json/Kconfig @@ -13,6 +13,3 @@ config NETUTILS_JSON http://www.drdobbs.com/web-development/an-embeddable-lightweight-xml-rpc-server/184405364. This code was taken from http://sourceforge.net/projects/cjson/ and adapted for NuttX by Darcy Gong. - -if NETUTILS_JSON -endif diff --git a/apps/netutils/netlib/Kconfig b/apps/netutils/netlib/Kconfig index 790fce4..368fea9 100644 --- a/apps/netutils/netlib/Kconfig +++ b/apps/netutils/netlib/Kconfig @@ -8,6 +8,3 @@ config NETUTILS_NETLIB default n ---help--- Enable support for the network support library. - -if NETUTILS_NETLIB -endif diff --git a/apps/netutils/smtp/Kconfig b/apps/netutils/smtp/Kconfig index 169ebc8..7e1fc2d 100644 --- a/apps/netutils/smtp/Kconfig +++ b/apps/netutils/smtp/Kconfig @@ -8,6 +8,3 @@ config NETUTILS_SMTP default n ---help--- Enable support for SMTP. - -if NETUTILS_SMTP -endif diff --git a/apps/netutils/telnetd/Kconfig b/apps/netutils/telnetd/Kconfig index 6da0e6f..f786927 100644 --- a/apps/netutils/telnetd/Kconfig +++ b/apps/netutils/telnetd/Kconfig @@ -9,6 +9,3 @@ config NETUTILS_TELNETD select NETDEV_TELNET ---help--- Enable support for the Telnet daemon. - -if NETUTILS_TELNETD -endif diff --git a/apps/netutils/tftpc/Kconfig b/apps/netutils/tftpc/Kconfig index 0e0a167..4448ced 100644 --- a/apps/netutils/tftpc/Kconfig +++ b/apps/netutils/tftpc/Kconfig @@ -8,6 +8,3 @@ config NETUTILS_TFTPC default n ---help--- Enable support for the TFTP client. - -if NETUTILS_TFTPC -endif diff --git a/apps/system/flash_eraseall/Kconfig b/apps/system/flash_eraseall/Kconfig index 382cae8..836567b 100644 --- a/apps/system/flash_eraseall/Kconfig +++ b/apps/system/flash_eraseall/Kconfig @@ -9,7 +9,3 @@ config SYSTEM_FLASH_ERASEALL depends on MTD && NSH_BUILTIN_APPS && !BUILD_PROTECTED && !BUILD_KERNEL ---help--- Enable support for the FLASH eraseall tool. - -if SYSTEM_FLASH_ERASEALL -endif - diff --git a/apps/system/install/Kconfig b/apps/system/install/Kconfig index aa136a4..33e0556 100644 --- a/apps/system/install/Kconfig +++ b/apps/system/install/Kconfig @@ -8,7 +8,3 @@ config SYSTEM_INSTALL default n ---help--- Enable support for the FLASH installation tool. - -if SYSTEM_INSTALL -endif - diff --git a/apps/system/mdio/Kconfig b/apps/system/mdio/Kconfig index c3a7882..cda719c 100644 --- a/apps/system/mdio/Kconfig +++ b/apps/system/mdio/Kconfig @@ -9,6 +9,3 @@ config SYSTEM_MDIO depends on NETDEV_PHY_IOCTL ---help--- Enable the MDIO tool - -if SYSTEM_MDIO -endif diff --git a/apps/system/poweroff/Kconfig b/apps/system/poweroff/Kconfig index e2ae3c4..cfbcb84 100644 --- a/apps/system/poweroff/Kconfig +++ b/apps/system/poweroff/Kconfig @@ -11,6 +11,3 @@ config SYSTEM_POWEROFF provides the NSH power-off command only. It requires board-specific support to actually implement the power-off. -if SYSTEM_POWEROFF -endif - diff --git a/apps/system/ramtron/Kconfig b/apps/system/ramtron/Kconfig index 5d65286..158f50f 100644 --- a/apps/system/ramtron/Kconfig +++ b/apps/system/ramtron/Kconfig @@ -8,7 +8,3 @@ config SYSTEM_RAMTRON default n ---help--- Enable support for the NSH RAMTRON command. - -if SYSTEM_RAMTRON -endif - diff --git a/apps/system/vi/Kconfig b/apps/system/vi/Kconfig index 874b1a0..1587c8f 100644 --- a/apps/system/vi/Kconfig +++ b/apps/system/vi/Kconfig @@ -58,19 +58,4 @@ config SYSTEM_VI_DEBUGLEVEL readable debug output, syslog'ing should sent to some device other than /dev/console (which is the default). -if NSH_BUILTIN_APPS - -config SYSTEM_VI_STACKSIZE - int "Builtin task stack size" - default 2048 - ---help--- - Size of the task to configure when started VI from NSH - -config SYSTEM_VI_PRIORITY - int "Builtin task priority" - default 100 - ---help--- - Priority of the task to configure when started VI from NSH - -endif # NSH_BUILTIN_APPS endif # SYSTEM_VI diff --git a/apps/system/vi/Makefile b/apps/system/vi/Makefile index 8f5d313..48547c4 100644 --- a/apps/system/vi/Makefile +++ b/apps/system/vi/Makefile @@ -60,12 +60,7 @@ endif # VI-Workalike Editor -CONFIG_SYSTEM_VI_STACKSIZE ?= 2048 -CONFIG_SYSTEM_VI_PRIORITY ?= 100 - APPNAME = vi -PRIORITY = $(CONFIG_SYSTEM_VI_PRIORITY) -STACKSIZE = $(CONFIG_SYSTEM_VI_STACKSIZE) ASRCS = CSRCS = -- 2.7.4