From: Marek Szyprowski Date: Fri, 15 May 2020 10:08:54 +0000 (+0200) Subject: net: fix build without NFS or NFS download enabled X-Git-Tag: accepted/tizen/unified/20221108.163909~235 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80d66326a8296a65d0fecb4a962e1d14b3247f2f;p=platform%2Fkernel%2Fu-boot.git net: fix build without NFS or NFS download enabled Partial NFS download requires setting net_boot_file_{offset,size_limit} global variables, which are available only when CONFIG_CMD_NFS is set. Signed-off-by: Marek Szyprowski Change-Id: I74e2dbb56c2b41078d2e5506bdcba6458299d792 --- diff --git a/cmd/net.c b/cmd/net.c index bed1864583..7aa0315460 100644 --- a/cmd/net.c +++ b/cmd/net.c @@ -326,6 +326,7 @@ static int netboot_common(enum proto_t proto, struct cmd_tbl *cmdtp, int argc, return rcode; } +#if defined(CONFIG_CMD_NFS_DOWNLOAD) int netboot_nfs(unsigned long addr, const char *filename, unsigned long offset, unsigned long limit) { @@ -363,7 +364,7 @@ int netboot_nfs(unsigned long addr, const char *filename, bootstage_error(BOOTSTAGE_ID_NET_DONE_ERR); return rcode; } - +#endif #if defined(CONFIG_CMD_PING) static int do_ping(struct cmd_tbl *cmdtp, int flag, int argc,