mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 14:37:57 +00:00
169152c8d1
This updates the U-Boot which provides the host tools like mkimage to version 2019.07. The patches were cleaned up and it was checked if this still compiles on Linux and FreeBSD. CONFIG_FIT_SIGNATURE_MAX_SIZE is set to the default value. The patch for libressl was merged upstream. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 lines
719 B
Diff
30 lines
719 B
Diff
The Kernel includes are only available on Linux hosts, remove then on
|
|
non Linux hosts.
|
|
|
|
--- a/include/linux/posix_types.h
|
|
+++ b/include/linux/posix_types.h
|
|
@@ -43,6 +43,8 @@ typedef void (*__kernel_sighandler_t)(in
|
|
/* Type of a SYSV IPC key. */
|
|
typedef int __kernel_key_t;
|
|
|
|
+#ifdef linux
|
|
#include <asm/posix_types.h>
|
|
+#endif
|
|
|
|
#endif /* _LINUX_POSIX_TYPES_H */
|
|
--- 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
|
|
|
|
#define __packed __attribute__((packed))
|
|
|