mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 23:31:39 +00:00
Help quick testing of building Linux code inside gPXE
This commit is contained in:
parent
9cf5c4557d
commit
da9dc834b1
25
src/include/gpxe/linux_compat.h
Normal file
25
src/include/gpxe/linux_compat.h
Normal file
@ -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 */
|
Loading…
Reference in New Issue
Block a user