summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
diff options
context:
space:
mode:
authorMichael Brown2007-01-25 00:38:05 +0100
committerMichael Brown2007-01-25 00:38:05 +0100
commitda9dc834b15635930c9e34da39ac79e833c50aaf (patch)
treef09ccca0a9868f5ecbcc91ad0baa2f8dbce0cd08 /src/include/gpxe
parentAdd Linux-compatible rol32/ror32 functions. Amazingly, gcc will (diff)
downloadipxe-da9dc834b15635930c9e34da39ac79e833c50aaf.tar.gz
ipxe-da9dc834b15635930c9e34da39ac79e833c50aaf.tar.xz
ipxe-da9dc834b15635930c9e34da39ac79e833c50aaf.zip
Help quick testing of building Linux code inside gPXE
Diffstat (limited to 'src/include/gpxe')
-rw-r--r--src/include/gpxe/linux_compat.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/gpxe/linux_compat.h b/src/include/gpxe/linux_compat.h
new file mode 100644
index 000000000..2c3cbbde0
--- /dev/null
+++ b/src/include/gpxe/linux_compat.h
@@ -0,0 +1,25 @@
+#ifndef _GPXE_LINUX_COMPAT_H
+#define _GPXE_LINUX_COMPAT_H
+
+/** @file
+ *
+ * Linux code compatibility
+ *
+ * This file exists to ease the building of Linux source code within
+ * gPXE. This is intended to facilitate quick testing; it is not
+ * intended to be a substitute for proper porting.
+ */
+
+#include <stdint.h>
+#include <errno.h>
+#include <stdio.h>
+#include <byteswap.h>
+#include <gpxe/bitops.h>
+
+#define __init
+#define __exit
+#define __initdata
+#define __exitdata
+#define printk printf
+
+#endif /* _GPXE_LINUX_COMPAT_H */