summaryrefslogtreecommitdiffstats
path: root/external/meta-virtualization/recipes-extended/xen/polarssl.inc
blob: eae95f406fc97d6440d14ecdd7b66a8126a57317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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
}