diff options
author | Hamish Guthrie <hcg@openwrt.org> | 2007-06-14 13:46:24 +0000 |
---|---|---|
committer | Hamish Guthrie <hcg@openwrt.org> | 2007-06-14 13:46:24 +0000 |
commit | 0739e214021346a6c6d15874d0c9ce673f9027eb (patch) | |
tree | e3d8fb36def3a6374a2c0c443e65bde6ec6b9209 /target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c | |
parent | fc49e61382e2d6a89c740a4315df015ed21ed32d (diff) | |
download | master-187ad058-0739e214021346a6c6d15874d0c9ce673f9027eb.tar.gz master-187ad058-0739e214021346a6c6d15874d0c9ce673f9027eb.tar.bz2 master-187ad058-0739e214021346a6c6d15874d0c9ce673f9027eb.zip |
Added config parameters for u-boot client IP address as well as TFTP
server IP address.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7632 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c')
-rw-r--r-- | target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c b/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c index 228a578a61..3f6c070017 100644 --- a/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c +++ b/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c @@ -29,6 +29,17 @@ extern unsigned long crc32 (unsigned long, const unsigned char *, unsigned int); #define ENV_CRC ~0 #endif +#ifdef LAN_IP + #warning LAN_IP +#else + #warning LAN_IP NOT DEFINED +#endif +#ifdef LAN_SERVERIP + #warning LAN_SERVERIP +#else + #warning LAN_SERVERIP NOT DEFINED +#endif + static char *environment[] = { "bootdelay=3\0" "baudrate=115200\0" @@ -41,8 +52,8 @@ static char *environment[] = { "flash=run fbargs; bootm 0xc0042000\0" "bootargs=setenv bootargs root=/dev/mtdblock3 ro init=/etc/preinit console=/dev/ttyS0,115200,mem=32M\0" "bootcmd=bootm 0xc0042000\0" - "ipaddr=10.0.1.73\0" - "serverip=10.0.1.210\0" + "ipaddr=" MK_STR(LAN_IP) "\0" + "serverip=" MK_STR(LAN_SERVERIP) "\0" "\0" }; |