diff options
author | Michael Brandt <Michael.Brandt@stericsson.com> | 2009-12-23 10:09:30 +0100 |
---|---|---|
committer | Michael Brandt <Michael.Brandt@stericsson.com> | 2009-12-23 10:09:30 +0100 |
commit | 45601ae9232a68fa976fce0f71b5b4d511cc3548 (patch) | |
tree | 35122c5f07e1c3b760793578d4caf4a2aedf7949 /lib_arm | |
parent | 257e7c347fd32438604da5e7996b902688d9611b (diff) |
lib_arm/board.c: fix reference to getenv_IPaddr
In commit 6ac59c5518e1d2e2ef1c4b8dee99267dfbdf9cdc
The changes in net/Makefile and net/net.c cause
lib_arm/board.c:360: undefined reference to `getenv_IPaddr'
since net.c is now not compiled at all if CONFIG_CMD_NET is not set.
Previously net.c:getenv_IPaddr() was always compiled, i.e. not embraced by
ifdef CONFIG_CMD_NET.
Do use getenv_IPaddr only if CONFIG_CMD_NET is set.
Diffstat (limited to 'lib_arm')
-rw-r--r-- | lib_arm/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c index e14873915..453d66012 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -356,8 +356,10 @@ void start_armboot (void) serial_initialize(); #endif +#ifdef CONFIG_CMD_NET /* IP Address */ gd->bd->bi_ip_addr = getenv_IPaddr ("ipaddr"); +#endif stdio_init (); /* get the devices list going. */ |