meta-virtualization/recipes-extended/xen/polarssl.inc
Kurt Bodiker e1279d6de6 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>
2018-05-01 23:17:29 -04:00

28 lines
634 B
PHP

# Copyright (C) 2017 Kurt Bodiker <kurt.bodiker@braintrust-us.com>
# Released under the MIT license (see COPYING.MIT for the terms)
require stubdom.inc
DEPENDS += "\
newlib \
"
STUBDOM_CFLAGS += "\
-Wno-memset-elt-size \
-Wno-implicit-fallthrough \
"
# nothing to configure
do_configure[noexec] = "1"
do_compile() {
${MAKE} CC="${HOST_PREFIX}gcc --sysroot=${RECIPE_SYSROOT} ${STUBDOM_CPPFLAGS} ${STUBDOM_CFLAGS}"
}
do_install() {
install -d ${D}${includedir}
cp -r -t ${D}${includedir} ${S}/include/polarssl
install -d ${D}/${libdir}
install -m 644 -t ${D}/${libdir} ${S}/library/libpolarssl.a
}