summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/polarssl.inc
diff options
context:
space:
mode:
authorKurt Bodiker <kurt.bodiker@braintrust-us.com>2018-05-01 10:05:31 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-05-01 23:17:29 -0400
commite1279d6de619e50871178d0c061073922fdb3c53 (patch)
tree7f93bda23641183495a8d04e41c4785f22a3a68f /recipes-extended/xen/polarssl.inc
parentb9f265377c8a673c6a5bd4f4bab0ac41a075bfde (diff)
downloadmeta-virtualization-e1279d6de619e50871178d0c061073922fdb3c53.tar.gz
xen: PolarSSL recipe and patches for Xen stubdoms
PolarSSL (now mbedTLS) is a lightweight SSL library optimized for embedded systems. In the case of Xen stubdomains, we are using MiniOS. This PolarSSL recipe creates a static library that is cross-compiled against MiniOS, Xen, LWIP, and Newlib headers and subsequently used during the cross-compilation and linking of 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/polarssl.inc')
-rw-r--r--recipes-extended/xen/polarssl.inc27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-extended/xen/polarssl.inc b/recipes-extended/xen/polarssl.inc
new file mode 100644
index 00000000..eae95f40
--- /dev/null
+++ b/recipes-extended/xen/polarssl.inc
@@ -0,0 +1,27 @@
1# Copyright (C) 2017 Kurt Bodiker <kurt.bodiker@braintrust-us.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4require stubdom.inc
5
6DEPENDS += "\
7 newlib \
8"
9STUBDOM_CFLAGS += "\
10 -Wno-memset-elt-size \
11 -Wno-implicit-fallthrough \
12"
13
14# nothing to configure
15do_configure[noexec] = "1"
16
17do_compile() {
18 ${MAKE} CC="${HOST_PREFIX}gcc --sysroot=${RECIPE_SYSROOT} ${STUBDOM_CPPFLAGS} ${STUBDOM_CFLAGS}"
19}
20
21do_install() {
22 install -d ${D}${includedir}
23 cp -r -t ${D}${includedir} ${S}/include/polarssl
24
25 install -d ${D}/${libdir}
26 install -m 644 -t ${D}/${libdir} ${S}/library/libpolarssl.a
27}