Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 1 | # Copyright (C) 2017 Kurt Bodiker <kurt.bodiker@braintrust-us.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | require stubdom.inc |
| 5 | |
| 6 | DEPENDS += "\ |
| 7 | newlib \ |
| 8 | " |
| 9 | STUBDOM_CFLAGS += "\ |
| 10 | -Wno-memset-elt-size \ |
| 11 | -Wno-implicit-fallthrough \ |
| 12 | " |
| 13 | |
| 14 | # nothing to configure |
| 15 | do_configure[noexec] = "1" |
| 16 | |
| 17 | do_compile() { |
| 18 | ${MAKE} CC="${HOST_PREFIX}gcc --sysroot=${RECIPE_SYSROOT} ${STUBDOM_CPPFLAGS} ${STUBDOM_CFLAGS}" |
| 19 | } |
| 20 | |
| 21 | do_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 | } |