From da9dc834b15635930c9e34da39ac79e833c50aaf Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 24 Jan 2007 23:38:05 +0000 Subject: [PATCH] Help quick testing of building Linux code inside gPXE --- src/include/gpxe/linux_compat.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/include/gpxe/linux_compat.h diff --git a/src/include/gpxe/linux_compat.h b/src/include/gpxe/linux_compat.h new file mode 100644 index 00000000..2c3cbbde --- /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 +#include +#include +#include +#include + +#define __init +#define __exit +#define __initdata +#define __exitdata +#define printk printf + +#endif /* _GPXE_LINUX_COMPAT_H */