Refer https://pagure.io/fipscheck/c/489bc3ab3f73707e12b6c2644d80af5ff6fbbf70
Signed-off-by: Hongxu Jia <hongxu....@windriver.com> --- recipes-connectivity/openssh/fipscheck_1.5.0.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/recipes-connectivity/openssh/fipscheck_1.5.0.bb b/recipes-connectivity/openssh/fipscheck_1.5.0.bb index 68051d2..0a06bd3 100644 --- a/recipes-connectivity/openssh/fipscheck_1.5.0.bb +++ b/recipes-connectivity/openssh/fipscheck_1.5.0.bb @@ -27,4 +27,22 @@ EXTRA_OECONF += " \ EXTRA_OEMAKE += " \ -I${STAGING_LIBDIR_NATIVE}/ssl/fips-2.0/include \ " +do_install_append() { + install -d ${D}${libdir}/fipscheck +} +inherit qemu + +pkg_postinst_${PN} () { + if [ -n "$D" ]; then + ${@qemu_run_binary(d, '$D', '${bindir}/fipshmac')} \ + -d $D${libdir}/fipscheck $D${bindir}/fipscheck $D${libdir}/libfipscheck.so.1.2.1 && \ + ln -s libfipscheck.so.1.2.1.hmac $D${libdir}/fipscheck/libfipscheck.so.1.hmac + else + ${bindir}/fipshmac -d ${libdir}/fipscheck ${bindir}/fipscheck \ + ${libdir}/libfipscheck.so.1.2.1 && \ + ln -s libfipscheck.so.1.2.1.hmac ${libdir}/fipscheck/libfipscheck.so.1.hmac + fi +} + +FILES_${PN} += "${libdir}/fipscheck" -- 2.7.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto