2019-05-11 14:57:15 +00:00
|
|
|
The Kernel includes are only available on Linux hosts, remove then on
|
|
|
|
non Linux hosts.
|
|
|
|
|
2013-05-06 10:30:29 +00:00
|
|
|
--- a/include/linux/posix_types.h
|
|
|
|
+++ b/include/linux/posix_types.h
|
2014-11-29 22:43:59 +00:00
|
|
|
@@ -43,6 +43,8 @@ typedef void (*__kernel_sighandler_t)(in
|
2013-05-06 10:30:29 +00:00
|
|
|
/* Type of a SYSV IPC key. */
|
|
|
|
typedef int __kernel_key_t;
|
|
|
|
|
|
|
|
+#ifdef linux
|
|
|
|
#include <asm/posix_types.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#endif /* _LINUX_POSIX_TYPES_H */
|
2019-05-11 14:57:15 +00:00
|
|
|
--- a/include/imx8image.h
|
|
|
|
+++ b/include/imx8image.h
|
|
|
|
@@ -11,7 +11,12 @@
|
|
|
|
#include <image.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include "imagetool.h"
|
|
|
|
+#ifdef linux
|
|
|
|
#include "linux/kernel.h"
|
|
|
|
+#else
|
|
|
|
+#define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1)
|
|
|
|
+#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
|
|
|
|
+#endif
|
2013-05-06 10:30:29 +00:00
|
|
|
|
2019-05-11 14:57:15 +00:00
|
|
|
#define __packed __attribute__((packed))
|
2013-05-06 10:30:29 +00:00
|
|
|
|