From: Lukasz Majewski Date: Sun, 23 Aug 2015 22:21:43 +0000 (+0200) Subject: net: tftp: Move tftp.h file from ./net to ./include/net X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=346969584be509b444dd1ba0db31ca7adb47575b;p=u-boot.git net: tftp: Move tftp.h file from ./net to ./include/net This change gives the ability to reuse the header file by other subsystems (like e.g. dfu). Without this change compilation error emerges for the legacy update.c file. Signed-off-by: Lukasz Majewski Acked-by: Joe Hershberger --- diff --git a/net/tftp.h b/include/net/tftp.h similarity index 100% rename from net/tftp.h rename to include/net/tftp.h diff --git a/net/bootp.c b/net/bootp.c index 43466af2f3..b2f8ad4ded 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -11,8 +11,8 @@ #include #include #include +#include #include "bootp.h" -#include "tftp.h" #include "nfs.h" #ifdef CONFIG_STATUS_LED #include diff --git a/net/net.c b/net/net.c index 2a6efd85ea..a115ce2892 100644 --- a/net/net.c +++ b/net/net.c @@ -86,6 +86,7 @@ #include #include #include +#include #if defined(CONFIG_STATUS_LED) #include #include @@ -105,7 +106,6 @@ #if defined(CONFIG_CMD_SNTP) #include "sntp.h" #endif -#include "tftp.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/net/rarp.c b/net/rarp.c index 4ce2f37a8a..1fa11b690d 100644 --- a/net/rarp.c +++ b/net/rarp.c @@ -8,10 +8,10 @@ #include #include #include +#include #include "nfs.h" #include "bootp.h" #include "rarp.h" -#include "tftp.h" #define TIMEOUT 5000UL /* Milliseconds before trying BOOTP again */ #ifndef CONFIG_NET_RETRY_COUNT diff --git a/net/tftp.c b/net/tftp.c index 18ce84c202..181f0f363e 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -10,7 +10,7 @@ #include #include #include -#include "tftp.h" +#include #include "bootp.h" #ifdef CONFIG_SYS_DIRECT_FLASH_TFTP #include