summaryrefslogtreecommitdiff
path: root/package/boot/uboot-envtools/patches/004-allow_mac_change.patch
blob: b7d600b6907eb9451098b9e3ae78235f5f4a3bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/fw_env.c
+++ b/fw_env.c
@@ -46,8 +46,6 @@
 
 #include "fw_env.h"
 
-#include <config.h>
-
 #define WHITESPACE(c) ((c == '\t') || (c == ' '))
 
 #define min(x, y) ({				\
@@ -401,9 +399,7 @@ int fw_env_write(char *name, char *value
 		if (
 		    (strcmp(name, "serial#") == 0) ||
 		    ((strcmp(name, "ethaddr") == 0)
-#if defined(CONFIG_OVERWRITE_ETHADDR_ONCE) && defined(CONFIG_ETHADDR)
 		    && (strcmp(oldval, MK_STR(CONFIG_ETHADDR)) != 0)
-#endif /* CONFIG_OVERWRITE_ETHADDR_ONCE && CONFIG_ETHADDR */
 		   ) ) {
 			fprintf (stderr, "Can't overwrite \"%s\"\n", name);
 			errno = EROFS;