mirror of https://github.com/ipxe/ipxe.git
Don't build relocate() under KEEP_IT_REAL
parent
2fa14f2f1d
commit
44eee81d11
|
@ -4,6 +4,8 @@
|
||||||
#include "etherboot.h"
|
#include "etherboot.h"
|
||||||
#include "relocate.h"
|
#include "relocate.h"
|
||||||
|
|
||||||
|
#ifndef KEEP_IT_REAL
|
||||||
|
|
||||||
/* by Eric Biederman */
|
/* by Eric Biederman */
|
||||||
|
|
||||||
/* On some platforms etherboot is compiled as a shared library, and we use
|
/* On some platforms etherboot is compiled as a shared library, and we use
|
||||||
|
@ -191,3 +193,5 @@ void relocate ( void ) {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* ! KEEP_IT_REAL */
|
||||||
|
|
|
@ -1,6 +1,15 @@
|
||||||
#ifndef RELOCATE_H
|
#ifndef RELOCATE_H
|
||||||
#define RELOCATE_H
|
#define RELOCATE_H
|
||||||
|
|
||||||
|
#ifdef KEEP_IT_REAL
|
||||||
|
|
||||||
|
/* relocate() is conceptually impossible with KEEP_IT_REAL */
|
||||||
|
#define relocate()
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
extern void relocate ( void );
|
extern void relocate ( void );
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* RELOCATE_H */
|
#endif /* RELOCATE_H */
|
||||||
|
|
Loading…
Reference in New Issue