diff options
author | Kurt Bodiker <kurt.bodiker@braintrust-us.com> | 2018-05-01 10:05:30 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-05-01 23:17:29 -0400 |
commit | b9f265377c8a673c6a5bd4f4bab0ac41a075bfde (patch) | |
tree | 298398362636d78380554032c54b5e32005f9367 /recipes-extended/xen/files/newlib-stdint-size_max-fix-from-1.17.0.patch | |
parent | e5cfb60540c88c92a56bea3417d54c6d9f9b5a98 (diff) | |
download | meta-virtualization-b9f265377c8a673c6a5bd4f4bab0ac41a075bfde.tar.gz |
xen: Newlib recipe and patches for Xen stubdoms
Newlib provides a fast, C library optimized for embedded systems. In the
case of Xen stubdomains, we are using MiniOS. This Newlib recipe creates
static libraries that are cross-compiled against MiniOS, Xen, and LWIP
headers and subsequently used during the cross-compilation and linking
of PolarSSL, the stubdom specific GMP, TPM Emulator, and the Xen vTPM
and vTPM Manager stubdomains. The current Xen source code is hardcoded
to fetch a specific version of this package. The patch files originate
from the Xen/stubdom source tree. This recipe provides the flexibility
to change version or modify the patches.
Signed-off-by: Kurt Bodiker <kurt.bodiker@braintrust-us.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/xen/files/newlib-stdint-size_max-fix-from-1.17.0.patch')
-rw-r--r-- | recipes-extended/xen/files/newlib-stdint-size_max-fix-from-1.17.0.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-extended/xen/files/newlib-stdint-size_max-fix-from-1.17.0.patch b/recipes-extended/xen/files/newlib-stdint-size_max-fix-from-1.17.0.patch new file mode 100644 index 00000000..3610d646 --- /dev/null +++ b/recipes-extended/xen/files/newlib-stdint-size_max-fix-from-1.17.0.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | --- a/newlib/libc/include/stdint.h.orig 2006-08-17 00:39:43.000000000 +0300 | ||
2 | +++ b/newlib/libc/include/stdint.h 2009-08-25 17:33:23.000000000 +0300 | ||
3 | @@ -348,8 +348,11 @@ | ||
4 | #endif | ||
5 | |||
6 | /* This must match size_t in stddef.h, currently long unsigned int */ | ||
7 | -#define SIZE_MIN (-__STDINT_EXP(LONG_MAX) - 1L) | ||
8 | -#define SIZE_MAX __STDINT_EXP(LONG_MAX) | ||
9 | +#ifdef __SIZE_MAX__ | ||
10 | +#define SIZE_MAX __SIZE_MAX__ | ||
11 | +#else | ||
12 | +#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1) | ||
13 | +#endif | ||
14 | |||
15 | /* This must match sig_atomic_t in <signal.h> (currently int) */ | ||
16 | #define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1) | ||