diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2022-04-09 16:53:27 +0300 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2022-04-12 13:02:03 -0500 |
commit | 906c6c78fd8a99f01a243fa272edb4ef12cb1fab (patch) | |
tree | f8b6ac734f003d8b298cb46fa341adb5fa5da6f7 /recipes-tpm2/tpm2-tss/tpm2-tss-engine_1.0.1.bbappend | |
parent | 5c73ad572627cfa300efae2eb76d3970ff30f7aa (diff) | |
download | meta-mlinux-906c6c78fd8a99f01a243fa272edb4ef12cb1fab.tar.gz meta-mlinux-906c6c78fd8a99f01a243fa272edb4ef12cb1fab.tar.bz2 meta-mlinux-906c6c78fd8a99f01a243fa272edb4ef12cb1fab.zip |
MTCAP3: Fix tpm2-tss-engine for new versions of openssl
Modern versions of openssl look for engine files that do not have the "lib"
prefix. The current tpm2-tss-engine recipe provides a symlink from "tpm2tss.so"
to "libtpm2tss.so" in the "-dev" package. Adding "-dev" packages to the image
is not an option (increases the image size by more than 20 MiB) and the
"-engines" package does not provide the required symlink.
Provide the symlink in "tpm2-tss-engine-engines" so it can be used in the image
instead of "tpm2-tss-engine-dev".
Diffstat (limited to 'recipes-tpm2/tpm2-tss/tpm2-tss-engine_1.0.1.bbappend')
-rw-r--r-- | recipes-tpm2/tpm2-tss/tpm2-tss-engine_1.0.1.bbappend | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-tpm2/tpm2-tss/tpm2-tss-engine_1.0.1.bbappend b/recipes-tpm2/tpm2-tss/tpm2-tss-engine_1.0.1.bbappend new file mode 100644 index 0000000..5bdbb4a --- /dev/null +++ b/recipes-tpm2/tpm2-tss/tpm2-tss-engine_1.0.1.bbappend @@ -0,0 +1,18 @@ +# Openssl since 1.1.0 looks for the engine files **without** the "lib" prefix, +# so add a symlink from "tpm2tss.so" to "libtpm2tss.so". +# More info: +# - https://github.com/tpm2-software/tpm2-tss-engine/issues/6#issuecomment-422489744 +# - https://github.com/openssl/openssl/commit/9ee0ed3de66678a15db126d10b3e4226e835b8f5 +# - https://bugzilla.yoctoproject.org/show_bug.cgi?id=14776 +# - https://lists.yoctoproject.org/g/yocto/message/47921 + +# Remove tpm2tss.so from the "-dev" package, include it to "-engines" instead. +# The "-dev" package depends on "-engines" anyway. +FILES_${PN}-dev = "${includedir}/*" +FILES_${PN}-engines_append = " ${libdir}/engines-1.1/tpm2tss.so" + +# Allow the symlink from tpm2tss.so to libtpm2tss.so in "-engines". +INSANE_SKIP_${PN}-engines += "dev-so" + +# Customized in mLinux. +PR = "m0" |