]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Don't build relocate() under KEEP_IT_REAL
authorMichael Brown <mcb30@etherboot.org>
Sat, 9 Apr 2005 17:05:35 +0000 (17:05 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sat, 9 Apr 2005 17:05:35 +0000 (17:05 +0000)
src/arch/i386/core/relocate.c
src/arch/i386/include/relocate.h

index 081ffe8b9555a3d5e1b31738a61f209495b2dd9e..98734535affbdfff154d658ad3c09f40d34c3371 100644 (file)
@@ -4,6 +4,8 @@
 #include "etherboot.h"
 #include "relocate.h"
 
+#ifndef KEEP_IT_REAL
+
 /* by Eric Biederman */
 
 /* On some platforms etherboot is compiled as a shared library, and we use
@@ -191,3 +193,5 @@ void relocate ( void ) {
                 */
        }
 }
+
+#endif /* ! KEEP_IT_REAL */
index b2bebd54f924264b918ae0a998b6d960b4e9b113..4aec54e48339e401c7e755aba16a68c715c2e62a 100644 (file)
@@ -1,6 +1,15 @@
 #ifndef RELOCATE_H
 #define RELOCATE_H
 
+#ifdef KEEP_IT_REAL
+
+/* relocate() is conceptually impossible with KEEP_IT_REAL */
+#define relocate()
+
+#else
+
 extern void relocate ( void );
 
+#endif
+
 #endif /* RELOCATE_H */