All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Hershberger <joe.hershberger@ni.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/9] net: Move net command options to the cmd menu
Date: Wed, 28 Mar 2018 15:51:09 -0500	[thread overview]
Message-ID: <1522270276-28631-3-git-send-email-joe.hershberger@ni.com> (raw)
In-Reply-To: <1522270276-28631-1-git-send-email-joe.hershberger@ni.com>

Options that controlled the tftp and bootp commands depended on their
commands, but lived in the net menu.

Move them so they are in a consistent location.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
---

 cmd/Kconfig | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 net/Kconfig | 50 --------------------------------------------------
 2 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index f2a12ce..d714f73 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1024,6 +1024,45 @@ config CMD_BOOTP
 	help
 	  bootp - boot image via network using BOOTP/TFTP protocol
 
+config BOOTP_BOOTPATH
+	bool "Enable BOOTP BOOTPATH"
+	depends on CMD_BOOTP
+
+config BOOTP_DNS
+	bool "Enable bootp DNS"
+	depends on CMD_BOOTP
+
+config BOOTP_GATEWAY
+	bool "Enable BOOTP gateway"
+	depends on CMD_BOOTP
+
+config BOOTP_HOSTNAME
+	bool "Enable BOOTP hostname"
+	depends on CMD_BOOTP
+
+config BOOTP_SUBNETMASK
+	bool "Enable BOOTP subnetmask"
+	depends on CMD_BOOTP
+
+config BOOTP_PXE
+	bool "Enable BOOTP PXE"
+	depends on CMD_BOOTP
+
+config BOOTP_PXE_CLIENTARCH
+	hex
+	depends on CMD_BOOTP
+	default 0x16 if ARM64
+	default 0x15 if ARM
+	default 0 if X86
+
+config BOOTP_VCI_STRING
+	string
+	depends on CMD_BOOTP
+	default "U-Boot.armv7" if CPU_V7 || CPU_V7M
+	default "U-Boot.armv8" if ARM64
+	default "U-Boot.arm" if ARM
+	default "U-Boot"
+
 config CMD_TFTPBOOT
 	bool "tftpboot"
 	default y
@@ -1042,6 +1081,17 @@ config CMD_TFTPSRV
 	help
 	  Act as a TFTP server and boot the first received file
 
+config NET_TFTP_VARS
+	bool "Control TFTP timeout and count through environment"
+	depends on CMD_TFTPBOOT
+	default y
+	help
+	  If set, allows controlling the TFTP timeout through the
+	  environment variable tftptimeout, and the TFTP maximum
+	  timeout count through the variable tftptimeoutcountmax.
+	  If unset, timeout and maximum are hard-defined as 1 second
+	  and 10 timouts per TFTP transfer.
+
 config CMD_RARP
 	bool "rarpboot"
 	help
diff --git a/net/Kconfig b/net/Kconfig
index d421a34..f2363e5 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -22,54 +22,4 @@ config NETCONSOLE
 	  Support the 'nc' input/output device for networked console.
 	  See README.NetConsole for details.
 
-config NET_TFTP_VARS
-	bool "Control TFTP timeout and count through environment"
-	depends on CMD_TFTPBOOT
-	default y
-	help
-	  If set, allows controlling the TFTP timeout through the
-	  environment variable tftptimeout, and the TFTP maximum
-	  timeout count through the variable tftptimeoutcountmax.
-	  If unset, timeout and maximum are hard-defined as 1 second
-	  and 10 timouts per TFTP transfer.
-
-config BOOTP_BOOTPATH
-	bool "Enable BOOTP BOOTPATH"
-	depends on CMD_BOOTP
-
-config BOOTP_DNS
-	bool "Enable bootp DNS"
-	depends on CMD_BOOTP
-
-config BOOTP_GATEWAY
-	bool "Enable BOOTP gateway"
-	depends on CMD_BOOTP
-
-config BOOTP_HOSTNAME
-	bool "Enable BOOTP hostname"
-	depends on CMD_BOOTP
-
-config BOOTP_PXE
-	bool "Enable BOOTP PXE"
-	depends on CMD_BOOTP
-
-config BOOTP_SUBNETMASK
-	bool "Enable BOOTP subnetmask"
-	depends on CMD_BOOTP
-
-config BOOTP_PXE_CLIENTARCH
-	hex
-	depends on CMD_BOOTP
-        default 0x16 if ARM64
-        default 0x15 if ARM
-        default 0 if X86
-
-config BOOTP_VCI_STRING
-	string
-	depends on CMD_BOOTP
-	default "U-Boot.armv7" if CPU_V7 || CPU_V7M
-	default "U-Boot.armv8" if ARM64
-	default "U-Boot.arm" if ARM
-	default "U-Boot"
-
 endif   # if NET
-- 
1.7.11.5

  parent reply	other threads:[~2018-03-28 20:51 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 20:51 [U-Boot] [PATCH 0/9] net: Clean up the menus and dependencies among commands and options Joe Hershberger
2018-03-28 20:51 ` [U-Boot] [PATCH 1/9] net: Make CMD_NET a menuconfig Joe Hershberger
2018-03-29  3:03   ` Chris Packham
2018-03-29 16:19   ` Duncan Hare
2018-03-28 20:51 ` Joe Hershberger [this message]
2018-03-29  3:05   ` [U-Boot] [PATCH 2/9] net: Move net command options to the cmd menu Chris Packham
2018-03-28 20:51 ` [U-Boot] [PATCH 3/9] net: Move the DHCP command below the BOOTP command Joe Hershberger
2018-03-29  3:14   ` Chris Packham
2018-03-29 16:51   ` Duncan Hare
2018-03-28 20:51 ` [U-Boot] [PATCH 4/9] net: Improve menu options and help for BOOTP options Joe Hershberger
2018-03-29  3:18   ` Chris Packham
2018-03-29  3:21     ` Chris Packham
2018-03-28 20:51 ` [U-Boot] [PATCH 5/9] net: Add the BOOTP_DNS2 option to Kconfig Joe Hershberger
2018-03-29  3:19   ` Chris Packham
2018-03-29 16:39   ` Duncan Hare
2018-03-28 20:51 ` [U-Boot] [PATCH 6/9] net: Improve BOOTP PXE config option Joe Hershberger
2018-03-29 16:38   ` Duncan Hare
2018-03-28 20:51 ` [U-Boot] [PATCH 7/9] net: Make the BOOTP options default Joe Hershberger
2018-03-29 16:35   ` Duncan Hare
2018-03-28 20:51 ` [U-Boot] [PATCH 8/9] net: Make core net code depend on NET instead of CMD_NET Joe Hershberger
2018-03-29 16:33   ` Duncan Hare
2018-03-28 20:51 ` [U-Boot] [PATCH 9/9] Revert "Kconfig: cmd: Make networking command dependent on NET" Joe Hershberger
2018-03-29 16:32   ` Duncan Hare
2018-03-29 16:18 ` [U-Boot] [PATCH 0/9] net: Clean up the menus and dependencies among commands and options Duncan Hare
2018-04-13 20:26 ` [U-Boot] [PATCH v2 00/11] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 01/11] net: Make CMD_NET a menuconfig Joe Hershberger
2018-04-15  4:16     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 02/11] net: Fix distro default dependencies Joe Hershberger
2018-04-15  4:16     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 03/11] net: Move net command options to the cmd menu Joe Hershberger
2018-04-14  2:06     ` Duncan Hare
2018-04-15  4:16     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 04/11] net: Move the DHCP command below the BOOTP command Joe Hershberger
2018-04-15  4:16     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 05/11] net: Improve menu options and help for BOOTP options Joe Hershberger
2018-04-15  4:16     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 06/11] net: Add the BOOTP_DNS2 option to Kconfig Joe Hershberger
2018-04-15  4:17     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 07/11] net: Improve BOOTP PXE config option Joe Hershberger
2018-04-15  4:17     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 08/11] net: Make the BOOTP options default Joe Hershberger
2018-04-15  4:17     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 09/11] net: Make core net code depend on NET instead of CMD_NET Joe Hershberger
2018-04-15  4:17     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 10/11] Revert "Kconfig: cmd: Make networking command dependent on NET" Joe Hershberger
2018-04-15  4:17     ` [U-Boot] " Joe Hershberger
2018-04-13 20:26   ` [U-Boot] [PATCH v2 11/11] xilinx: Only enable dist boot pxe when DHCP is enabled Joe Hershberger
2018-04-15  4:17     ` [U-Boot] " Joe Hershberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1522270276-28631-3-git-send-email-joe.hershberger@ni.com \
    --to=joe.hershberger@ni.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.