* [PATCH] net: dhcp: Fix CONFIG_ENVIRONMENT_VARIABLES check
@ 2015-06-05 8:43 Wadim Egorov
2015-06-05 11:33 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Wadim Egorov @ 2015-06-05 8:43 UTC (permalink / raw)
To: barebox
Please squash this patch into
[PATCH v3 2/3] net: dhcp: Split dhcp funcionality & add dhcp command
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
net/dhcp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/dhcp.c b/net/dhcp.c
index eb4bb38..e1625ec 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -141,7 +141,7 @@ static void env_ip_handle(struct dhcp_opt *opt, unsigned char *popt, int optlen)
IPaddr_t ip;
ip = net_read_ip(popt);
- if (IS_ENABLED(ENVIRONMENT_VARIABLES))
+ if (IS_ENABLED(CONFIG_ENVIRONMENT_VARIABLES))
setenv_ip(opt->barebox_var_name, ip);
}
@@ -262,7 +262,7 @@ static int dhcp_set_string_options(struct dhcp_param *param, u8 *e)
int str_len;
char* str = param->data;
- if (!str && param->barebox_var_name && IS_ENABLED(ENVIRONMENT_VARIABLES))
+ if (!str && param->barebox_var_name && IS_ENABLED(CONFIG_ENVIRONMENT_VARIABLES))
str = (char*)getenv(param->barebox_var_name);
if (!str && param->barebox_dhcp_global && IS_ENABLED(CONFIG_GLOBALVAR))
@@ -390,7 +390,7 @@ static void bootp_copy_net_params(struct bootp *bp)
net_set_serverip(tmp_ip);
if (strlen(bp->bp_file) > 0) {
- if (IS_ENABLED(ENVIRONMENT_VARIABLES))
+ if (IS_ENABLED(CONFIG_ENVIRONMENT_VARIABLES))
setenv("bootfile", bp->bp_file);
if (IS_ENABLED(CONFIG_GLOBALVAR))
dhcp_set_barebox_global("bootfile", bp->bp_file);
@@ -652,7 +652,7 @@ static void dhcp_reset_env(void)
if (!opt->barebox_var_name || opt->copy_only_if_valid)
continue;
- if (IS_ENABLED(ENVIRONMENT_VARIABLES))
+ if (IS_ENABLED(CONFIG_ENVIRONMENT_VARIABLES))
setenv(opt->barebox_var_name, "");
if (opt->barebox_dhcp_global && IS_ENABLED(CONFIG_GLOBALVAR))
dhcp_set_barebox_global(opt->barebox_dhcp_global, "");
--
1.9.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net: dhcp: Fix CONFIG_ENVIRONMENT_VARIABLES check
2015-06-05 8:43 [PATCH] net: dhcp: Fix CONFIG_ENVIRONMENT_VARIABLES check Wadim Egorov
@ 2015-06-05 11:33 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-06-05 11:33 UTC (permalink / raw)
To: Wadim Egorov; +Cc: barebox
On Fri, Jun 05, 2015 at 10:43:20AM +0200, Wadim Egorov wrote:
> Please squash this patch into
> [PATCH v3 2/3] net: dhcp: Split dhcp funcionality & add dhcp command
Ok, did that. You can also directly do a git commit --fixup=xxx and send
that patch. This makes it easy for me to squash it into the correct
patch.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-05 11:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-05 8:43 [PATCH] net: dhcp: Fix CONFIG_ENVIRONMENT_VARIABLES check Wadim Egorov
2015-06-05 11:33 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox