soc/software/boot: add #ifndef on LOCALIP and REMOTEIP to allow definition in the SoC with add_constant
This commit is contained in:
parent
cb22a207f1
commit
6f4dd14ffa
|
@ -178,14 +178,19 @@ void serialboot(void)
|
|||
|
||||
#ifdef CSR_ETHMAC_BASE
|
||||
|
||||
#ifndef LOCALIP1
|
||||
#define LOCALIP1 192
|
||||
#define LOCALIP2 168
|
||||
#define LOCALIP3 0
|
||||
#define LOCALIP4 42
|
||||
#endif
|
||||
|
||||
#ifndef REMOTEIP1
|
||||
#define REMOTEIP1 192
|
||||
#define REMOTEIP2 168
|
||||
#define REMOTEIP3 0
|
||||
#define REMOTEIP4 14
|
||||
#endif
|
||||
|
||||
static int tftp_get_v(unsigned int ip, const char *filename, char *buffer)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue