Added config parameters for u-boot client IP address as well as TFTP
[openwrt.git] / target / linux / at91-2.6 / image / u-boot / patches / 013-params-in-config.patch
1 --- u-boot-1.1.4.old/tools/Makefile     2007-06-13 13:35:59.000000000 +0200
2 +++ u-boot-1.1.4/tools/Makefile 2007-06-14 15:33:04.000000000 +0200
3 @@ -153,7 +153,7 @@
4                 $(STRIP) $@
5  
6  ubparams.o: ubparams.c
7 -               $(CC) -g $(CFLAGS) -c $<
8 +               $(CC) -g $(CFLAGS) -DLAN_IP=$(LAN_IP) -DLAN_SERVERIP=$(LAN_SERVERIP) -c $<
9  
10  envcrc.o:      envcrc.c
11                 $(CC) -g $(CFLAGS) -c $<
12 --- u-boot-1.1.4.old/tools/ubparams.c   2007-06-13 13:35:59.000000000 +0200
13 +++ u-boot-1.1.4/tools/ubparams.c       2007-06-14 15:31:55.000000000 +0200
14 @@ -44,8 +44,8 @@
15         "bootargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0"
16         "bootcmd=bootm 0xc0042000\0"
17         "ethaddr=00:30:49:00:00:01\0"
18 -       "ipaddr=10.0.1.73\0"
19 -       "serverip=10.0.1.210\0"
20 +       "ipaddr=" MK_STR(LAN_IP) "\0"
21 +       "serverip=" MK_STR(LAN_SERVERIP) "\0"
22         "serial#=MX070205484\0"
23         "\0"
24         };