Convert all networking/* applets to "new style" applet definitions

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2016-11-23 09:05:14 +01:00
parent e32b64c4ec
commit 47367e1d50
35 changed files with 909 additions and 882 deletions

View File

@@ -18,6 +18,78 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
//config:config TFTP
//config: bool "tftp"
//config: default y
//config: help
//config: This enables the Trivial File Transfer Protocol client program. TFTP
//config: is usually used for simple, small transfers such as a root image
//config: for a network-enabled bootloader.
//config:
//config:config TFTPD
//config: bool "tftpd"
//config: default y
//config: help
//config: This enables the Trivial File Transfer Protocol server program.
//config: It expects that stdin is a datagram socket and a packet
//config: is already pending on it. It will exit after one transfer.
//config: In other words: it should be run from inetd in nowait mode,
//config: or from udpsvd. Example: "udpsvd -E 0 69 tftpd DIR"
//config:
//config:comment "Common options for tftp/tftpd"
//config: depends on TFTP || TFTPD
//config:
//config:config FEATURE_TFTP_GET
//config: bool "Enable 'tftp get' and/or tftpd upload code"
//config: default y
//config: depends on TFTP || TFTPD
//config: help
//config: Add support for the GET command within the TFTP client. This allows
//config: a client to retrieve a file from a TFTP server.
//config: Also enable upload support in tftpd, if tftpd is selected.
//config:
//config: Note: this option does _not_ make tftpd capable of download
//config: (the usual operation people need from it)!
//config:
//config:config FEATURE_TFTP_PUT
//config: bool "Enable 'tftp put' and/or tftpd download code"
//config: default y
//config: depends on TFTP || TFTPD
//config: help
//config: Add support for the PUT command within the TFTP client. This allows
//config: a client to transfer a file to a TFTP server.
//config: Also enable download support in tftpd, if tftpd is selected.
//config:
//config:config FEATURE_TFTP_BLOCKSIZE
//config: bool "Enable 'blksize' and 'tsize' protocol options"
//config: default y
//config: depends on TFTP || TFTPD
//config: help
//config: Allow tftp to specify block size, and tftpd to understand
//config: "blksize" and "tsize" options.
//config:
//config:config FEATURE_TFTP_PROGRESS_BAR
//config: bool "Enable tftp progress meter"
//config: default y
//config: depends on TFTP && FEATURE_TFTP_BLOCKSIZE
//config: help
//config: Show progress bar.
//config:
//config:config TFTP_DEBUG
//config: bool "Enable debug"
//config: default n
//config: depends on TFTP || TFTPD
//config: help
//config: Make tftp[d] print debugging messages on stderr.
//config: This is useful if you are diagnosing a bug in tftp[d].
//applet:#if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT
//applet:IF_TFTP(APPLET(tftp, BB_DIR_USR_BIN, BB_SUID_DROP))
//applet:IF_TFTPD(APPLET(tftpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
//applet:#endif
//kbuild:lib-$(CONFIG_TFTP) += tftp.o
//kbuild:lib-$(CONFIG_TFTPD) += tftp.o
//usage:#define tftp_trivial_usage
//usage: "[OPTIONS] HOST [PORT]"