Patchwork [U-Boot] ARMV7: OMAP3: Fix build failure for igep0030 machine

login
register
mail settings
Submitter Enric Balletbo i Serra
Date Nov. 29, 2010, 10:39 a.m.
Message ID <1291027167-5091-1-git-send-email-eballetbo@iseebcn.com>
Download mbox | patch
Permalink /patch/73410/
State Accepted
Commit 84c611d33bebd4c37ee0dd8cd1e9468c75a9798b
Headers show

Comments

Enric Balletbo i Serra - Nov. 29, 2010, 10:39 a.m.
Seems that if CONFIG_CMD_NET is undefined we should also
undefine CONFIG_CMD_NFS, otherwise build fails with various
undefined reference like:

  net/libnet.o: In function `rpc_req':
  u-boot/net/nfs.c:193: undefined reference to `NetEthHdrSize'
  u-boot/net/nfs.c:202: undefined reference to `NetSendUDPPacket'
  u-boot/net/nfs.c:203: undefined reference to `NetTxPacket'
  u-boot/net/nfs.c:203: undefined reference to `NetServerEther'

This patch adds the undef CONFIG_CMD_NFS in configuration file.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
---
 include/configs/igep0030.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Sandeep Paulraj - Nov. 29, 2010, 9:31 p.m.
> 
> Seems that if CONFIG_CMD_NET is undefined we should also
> undefine CONFIG_CMD_NFS, otherwise build fails with various
> undefined reference like:
> 
>   net/libnet.o: In function `rpc_req':
>   u-boot/net/nfs.c:193: undefined reference to `NetEthHdrSize'
>   u-boot/net/nfs.c:202: undefined reference to `NetSendUDPPacket'
>   u-boot/net/nfs.c:203: undefined reference to `NetTxPacket'
>   u-boot/net/nfs.c:203: undefined reference to `NetServerEther'
> 
> This patch adds the undef CONFIG_CMD_NFS in configuration file.
> 
> Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
> ---
>  include/configs/igep0030.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/include/configs/igep0030.h b/include/configs/igep0030.h
> index d61793c..1325bfa 100644
> --- a/include/configs/igep0030.h
> +++ b/include/configs/igep0030.h
> @@ -110,6 +110,7 @@
>  #define CONFIG_MTD_DEVICE
> 
>  #undef CONFIG_CMD_NET		/* bootp, tftpboot, rarpboot	*/
> +#undef CONFIG_CMD_NFS		/* nfs				*/
>  #undef CONFIG_CMD_FLASH		/* flinfo, erase, protect	*/
>  #undef CONFIG_CMD_IMLS		/* List all found images	*/
> 

Pushed to u-boot-ti

Patch

diff --git a/include/configs/igep0030.h b/include/configs/igep0030.h
index d61793c..1325bfa 100644
--- a/include/configs/igep0030.h
+++ b/include/configs/igep0030.h
@@ -110,6 +110,7 @@ 
 #define CONFIG_MTD_DEVICE
 
 #undef CONFIG_CMD_NET		/* bootp, tftpboot, rarpboot	*/
+#undef CONFIG_CMD_NFS		/* nfs				*/
 #undef CONFIG_CMD_FLASH		/* flinfo, erase, protect	*/
 #undef CONFIG_CMD_IMLS		/* List all found images	*/