Skip to content

Commit

Permalink
[tftp] Allow builds without TFTP support
Browse files Browse the repository at this point in the history
Allow TFTP to be configured out by moving the next-server setting
definition (which is used by autoboot.c) from tftp.c to settings.c.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Apr 17, 2012
1 parent 831b16a commit 52e5ddc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions src/core/settings.c
Expand Up @@ -1798,6 +1798,14 @@ struct setting hostname_setting __setting ( SETTING_HOST ) = {
.type = &setting_type_string,
};

/** TFTP server setting */
struct setting next_server_setting __setting ( SETTING_BOOT ) = {
.name = "next-server",
.description = "TFTP server",
.tag = DHCP_EB_SIADDR,
.type = &setting_type_ipv4,
};

/** Filename setting */
struct setting filename_setting __setting ( SETTING_BOOT ) = {
.name = "filename",
Expand Down
8 changes: 0 additions & 8 deletions src/net/udp/tftp.c
Expand Up @@ -1214,14 +1214,6 @@ struct uri_opener mtftp_uri_opener __uri_opener = {
******************************************************************************
*/

/** TFTP server setting */
struct setting next_server_setting __setting ( SETTING_BOOT ) = {
.name = "next-server",
.description = "TFTP server",
.tag = DHCP_EB_SIADDR,
.type = &setting_type_ipv4,
};

/**
* Apply TFTP configuration settings
*
Expand Down

0 comments on commit 52e5ddc

Please sign in to comment.