soc/software/boot: add #ifndef on LOCALIP and REMOTEIP to allow definition in the SoC with add_constant

This commit is contained in:
Florent Kermarrec 2015-11-23 11:08:04 +01:00
parent cb22a207f1
commit 6f4dd14ffa
1 changed files with 5 additions and 0 deletions

View File

@ -178,14 +178,19 @@ void serialboot(void)
#ifdef CSR_ETHMAC_BASE #ifdef CSR_ETHMAC_BASE
#ifndef LOCALIP1
#define LOCALIP1 192 #define LOCALIP1 192
#define LOCALIP2 168 #define LOCALIP2 168
#define LOCALIP3 0 #define LOCALIP3 0
#define LOCALIP4 42 #define LOCALIP4 42
#endif
#ifndef REMOTEIP1
#define REMOTEIP1 192 #define REMOTEIP1 192
#define REMOTEIP2 168 #define REMOTEIP2 168
#define REMOTEIP3 0 #define REMOTEIP3 0
#define REMOTEIP4 14 #define REMOTEIP4 14
#endif
static int tftp_get_v(unsigned int ip, const char *filename, char *buffer) static int tftp_get_v(unsigned int ip, const char *filename, char *buffer)
{ {