diff options
| author | Maxin B. John <maxin.john@enea.com> | 2014-04-24 19:28:25 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-29 17:20:11 +0100 |
| commit | af49e60b1f0dd4c95c602025195343116f7fc01b (patch) | |
| tree | 66e11f736138bab6506fcff08696c33b3fcab50b /meta/recipes-connectivity/openssl/openssl.inc | |
| parent | b3c688cf1f219fbd54a3fe867cb3a085d794e61d (diff) | |
| download | poky-af49e60b1f0dd4c95c602025195343116f7fc01b.tar.gz | |
openssl: enable ptest support
Install openssl test suite and run it as ptest.
(From OE-Core rev: c48981d2d24a20978a17866fa478dde21bd96b91)
Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl.inc')
| -rw-r--r-- | meta/recipes-connectivity/openssl/openssl.inc | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc index 229ec870cd..6c86588c83 100644 --- a/meta/recipes-connectivity/openssl/openssl.inc +++ b/meta/recipes-connectivity/openssl/openssl.inc | |||
| @@ -30,7 +30,7 @@ export DIRS = "crypto ssl apps" | |||
| 30 | export EX_LIBS = "-lgcc -ldl" | 30 | export EX_LIBS = "-lgcc -ldl" |
| 31 | export AS = "${CC} -c" | 31 | export AS = "${CC} -c" |
| 32 | 32 | ||
| 33 | inherit pkgconfig siteinfo multilib_header | 33 | inherit pkgconfig siteinfo multilib_header ptest |
| 34 | 34 | ||
| 35 | PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf" | 35 | PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf" |
| 36 | FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}" | 36 | FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}" |
| @@ -47,6 +47,7 @@ FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}" | |||
| 47 | FILES_openssl-conf = "${libdir}/ssl/openssl.cnf" | 47 | FILES_openssl-conf = "${libdir}/ssl/openssl.cnf" |
| 48 | CONFFILES_openssl-conf = "${libdir}/ssl/openssl.cnf" | 48 | CONFFILES_openssl-conf = "${libdir}/ssl/openssl.cnf" |
| 49 | RRECOMMENDS_libcrypto += "openssl-conf" | 49 | RRECOMMENDS_libcrypto += "openssl-conf" |
| 50 | RDEPENDS_${PN}-ptest += "${PN}-misc make" | ||
| 50 | 51 | ||
| 51 | do_configure_prepend_darwin () { | 52 | do_configure_prepend_darwin () { |
| 52 | sed -i -e '/version-script=openssl\.ld/d' Configure | 53 | sed -i -e '/version-script=openssl\.ld/d' Configure |
| @@ -140,6 +141,10 @@ do_compile () { | |||
| 140 | oe_runmake | 141 | oe_runmake |
| 141 | } | 142 | } |
| 142 | 143 | ||
| 144 | do_compile_ptest () { | ||
| 145 | oe_runmake buildtest | ||
| 146 | } | ||
| 147 | |||
| 143 | do_install () { | 148 | do_install () { |
| 144 | oe_runmake INSTALL_PREFIX="${D}" MANDIR="${mandir}" install | 149 | oe_runmake INSTALL_PREFIX="${D}" MANDIR="${mandir}" install |
| 145 | 150 | ||
| @@ -169,5 +174,17 @@ do_install () { | |||
| 169 | fi | 174 | fi |
| 170 | } | 175 | } |
| 171 | 176 | ||
| 177 | do_install_ptest () { | ||
| 178 | cp -r Makefile test ${D}${PTEST_PATH} | ||
| 179 | mkdir -p ${D}${PTEST_PATH}/apps | ||
| 180 | ln -sf /usr/lib/ssl/misc/CA.sh ${D}${PTEST_PATH}/apps | ||
| 181 | ln -sf /usr/lib/ssl/openssl.cnf ${D}${PTEST_PATH}/apps | ||
| 182 | ln -sf /usr/bin/openssl ${D}${PTEST_PATH}/apps | ||
| 183 | cp apps/server2.pem ${D}${PTEST_PATH}/apps | ||
| 184 | mkdir -p ${D}${PTEST_PATH}/util | ||
| 185 | install util/opensslwrap.sh ${D}${PTEST_PATH}/util | ||
| 186 | install util/shlib_wrap.sh ${D}${PTEST_PATH}/util | ||
| 187 | } | ||
| 188 | |||
| 172 | BBCLASSEXTEND = "native nativesdk" | 189 | BBCLASSEXTEND = "native nativesdk" |
| 173 | 190 | ||
