Created
November 4, 2019 22:35
-
-
Save marler8997/f8ceeeff80a0e1cb03e9c223654d0fc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUMMARY = "Call openssl-wrapper" | |
DESCRIPTION = "${SUMMARY}" | |
LICENSE = "CLOSED" | |
DEPENDS += "openssl-wrapper-native" | |
do_configure() { | |
openssl-wrapper | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUMMARY = "Call openssl" | |
DESCRIPTION = "${SUMMARY}" | |
LICENSE = "CLOSED" | |
BBCLASSEXTEND += "native" | |
RDEPENDS_${PN} += "bash coreutils openssl" | |
do_install() { | |
install -d ${D}${bindir} | |
echo "#!/usr/bin/env bash" > ${D}${bindir}/openssl-wrapper | |
echo "openssl -v" >> ${D}${bindir}/openssl-wrapper | |
chmod +x ${D}${bindir}/openssl-wrapper | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't work as
openssl
doesn't get installed to the sysroot. The way I know to make this work would be to add this toopenssl-wrapper.bb
:However, now I've duplicated the same dependencies that I specified in
RDEPENDS_${PN}
. That doesn't seem right, otherwise, any yocto recipe that generates tools for both the native host and the target would have to maintain the same dependencies in 2 different lists (DEPENDS
andRDEPENDS_XXX
).