david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[tftp] Allow builds without TFTP support

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>
This commit is contained in:
Michael Brown 2012-04-17 11:50:11 +01:00
parent 831b16adde
commit 52e5ddce68
2 changed files with 8 additions and 8 deletions

View File

@ -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",

View File

@ -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
*