diff --git a/README.md b/README.md index b89a438..6137129 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ After installing your build's Yocto/OpenEmbedded components: $ bitbake wolfssh $ bitbake wolfmqtt $ bitbake wolftpm + $ bitbake wolfclu ``` 2. Edit your build's local.conf file to install the libraries you would like @@ -64,11 +65,12 @@ After installing your build's Yocto/OpenEmbedded components: IMAGE_INSTALL_append line: ``` - IMAGE_INSTALL_append = "wolfssl wolfssh wolfmqtt wolftpm" + IMAGE_INSTALL_append = "wolfssl wolfssh wolfmqtt wolftpm wolfclu" ``` Once your image has been built, the default location for the wolfSSL library -on your machine will be in the "/usr/lib" directory. +on your machine will be in the "/usr/lib" directory and applications in +"/usr/bin". Note: If you need to install the development headers for these libraries, you will want to use the "-dev" variant of the package. For example, to install diff --git a/recipes-wolfssl/wolfclu/wolfclu_0.1.0.bb b/recipes-wolfssl/wolfclu/wolfclu_0.1.0.bb new file mode 100644 index 0000000..99dad2d --- /dev/null +++ b/recipes-wolfssl/wolfclu/wolfclu_0.1.0.bb @@ -0,0 +1,30 @@ +SUMMARY = "wolfCLU is a command line utility with wolfSSL" +DESCRIPTION = "wolfCLU is a lightweight command line utility written in C and \ + optimized for embedded and RTOS environments." +HOMEPAGE = "https://www.wolfssl.com/products/wolfclu" +BUGTRACKER = "https://github.com/wolfssl/wolfclu/issues" +SECTION = "bin" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PROVIDES += "wolfclu" +RPROVIDES_${PN} = "wolfclu" + +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +DEPENDS += "wolfssl" + +SRC_URI = "git://github.com/wolfssl/wolfclu.git;nobranch=1;protocol=https;tag=v${PV}-stable;" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +EXTRA_OECONF = "--with-wolfssl=${COMPONENTS_DIR}/${PACKAGE_ARCH}/wolfssl/usr" + +BBCLASSEXTEND += "native nativesdk" + +do_configure_prepend() { + (cd ${S}; ./autogen.sh; cd -) +} + diff --git a/recipes-wolfssl/wolfclu/wolfssl_%.bbappend b/recipes-wolfssl/wolfclu/wolfssl_%.bbappend new file mode 100644 index 0000000..9aa33fb --- /dev/null +++ b/recipes-wolfssl/wolfclu/wolfssl_%.bbappend @@ -0,0 +1,2 @@ +EXTRA_OECONF += "--enable-wolfclu" +