Skip to content

Instantly share code, notes, and snippets.

@marler8997
Created November 4, 2019 22:35
Show Gist options
  • Save marler8997/f8ceeeff80a0e1cb03e9c223654d0fc2 to your computer and use it in GitHub Desktop.
Save marler8997/f8ceeeff80a0e1cb03e9c223654d0fc2 to your computer and use it in GitHub Desktop.
SUMMARY = "Call openssl-wrapper"
DESCRIPTION = "${SUMMARY}"
LICENSE = "CLOSED"
DEPENDS += "openssl-wrapper-native"
do_configure() {
openssl-wrapper
}
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
}
@marler8997
Copy link
Author

marler8997 commented Nov 4, 2019

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 to openssl-wrapper.bb:

DEPENDS_class-native += "bash-native coreutils-native openssl-native"

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 and RDEPENDS_XXX).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment