soc/software/bios/boot: allow to override macaddr by using constant MACADDRx

This commit is contained in:
Gwenhael Goavec-Merou 2024-02-07 11:16:12 +01:00
parent 13c57e8304
commit e866892798
1 changed files with 4 additions and 0 deletions

View File

@ -304,7 +304,11 @@ int serialboot(void)
#define TFTP_SERVER_PORT 69 #define TFTP_SERVER_PORT 69
#endif #endif
#ifdef MACADDR1
static unsigned char macadr[6] = {MACADDR1, MACADDR2, MACADDR3, MACADDR4, MACADDR5, MACADDR6};
#else
static unsigned char macadr[6] = {0x10, 0xe2, 0xd5, 0x00, 0x00, 0x00}; static unsigned char macadr[6] = {0x10, 0xe2, 0xd5, 0x00, 0x00, 0x00};
#endif
#ifdef LOCALIP1 #ifdef LOCALIP1
static unsigned int local_ip[4] = {LOCALIP1, LOCALIP2, LOCALIP3, LOCALIP4}; static unsigned int local_ip[4] = {LOCALIP1, LOCALIP2, LOCALIP3, LOCALIP4};