From b75ca38fbef35cdf603dc5e7a8075daefc1c03f6 Mon Sep 17 00:00:00 2001 From: dell5060 Date: Mon, 10 Jul 2023 16:17:48 -0600 Subject: [PATCH] Updating BBappends --- README.md | 35 +++++++++++++++++++++++++++++++---- conf/layer.conf | 29 ++++++++++++++++++++++++----- 2 files changed, 55 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6137129..faecd32 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,34 @@ After installing your build's Yocto/OpenEmbedded components: ``` 2. Once the 'meta-wolfssl' layer has been added to your BBLAYERS collection, + you then will need to go to the local.conf file located in + meta-wolfssl/conf/. The products that you want to compile will need to be + uncommented. + + As an example if wolfssh is desired the following needs to occur: + From "meta-wolfssl" directory + ``` + $ vim conf/layer.conf + ``` + Then look for the text: + ``` + # Uncomment if building wolfssh with wolfssl + #BBFILES += "${LAYERDIR}/recipes-wolfssl/wolfssh/*.bb \ + # ${LAYERDIR}/recipes-wolfssl/wolfssh/*.bbappend" + ``` + Then uncomment by removing the #, it should look like this afterwards + ``` + # Uncomment if building wolfssh with wolfssl + BBFILES += "${LAYERDIR}/recipes-wolfssl/wolfssh/*.bb \ + ${LAYERDIR}/recipes-wolfssl/wolfssh/*.bbappend" + ``` + + This needs to be done in order to preform a bitbake operation on any of the + products or tests. You should uncomment products you want to use and + comment out products you don't want to use to avoid uneeded --enable-options + in your wolfssl version. wolfssl and wolfclu uncommented by default. + +3. Once the products that need to be compiled are uncommented, you can build the individual product recipes to make sure they compile successfully: @@ -59,13 +87,12 @@ After installing your build's Yocto/OpenEmbedded components: $ bitbake wolftpm $ bitbake wolfclu ``` - -2. Edit your build's local.conf file to install the libraries you would like +4. Edit your build's local.conf file to install the libraries you would like included (ie: wolfssl, wolfssh, wolfmqtt, wolftpm) by adding a - IMAGE_INSTALL_append line: + IMAGE_INSTALL:append line: ``` - IMAGE_INSTALL_append = "wolfssl wolfssh wolfmqtt wolftpm wolfclu" + IMAGE_INSTALL:append = " wolfssl wolfssh wolfmqtt wolftpm wolfclu " ``` Once your image has been built, the default location for the wolfSSL library diff --git a/conf/layer.conf b/conf/layer.conf index 27f9120..7af2a3c 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -1,12 +1,31 @@ # We have a conf and classes directory, add to BBPATH BBPATH := "${LAYERDIR}:${BBPATH}" -# We have a packages directory, add to BBFILES -BBFILES += "${LAYERDIR}/recipes-wolfssl/*/*.bb \ - ${LAYERDIR}/recipes-wolfssl/*/*.bbappend" -BBFILES += "${LAYERDIR}/recipes-examples/*/*/*.bb \ - ${LAYERDIR}/recipes-examples/*/*/*.bbappend" +# We have a packages directory, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-wolfssl/wolfssl/*.bb \ + ${LAYERDIR}/recipes-wolfssl/wolfssl/*.bbappend" + +#Comment out if you don't want to use wolfclu +BBFILES += "${LAYERDIR}/recipes-wolfssl/wolfclu/*.bb \ + ${LAYERDIR}/recipes-wolfssl/wolfclu/*.bbappend" + +# Uncomment if wanting to use example tests +#BBFILES += "${LAYERDIR}/recipes-examples/*/*/*.bb \ +# ${LAYERDIR}/recipes-examples/*/*/*.bbappend" + +# Uncomment if building wolfssh with wolfssl +#BBFILES += "${LAYERDIR}/recipes-wolfssl/wolfssh/*.bb \ +# ${LAYERDIR}/recipes-wolfssl/wolfssh/*.bbappend" + +# Uncomment if building wolfmqtt with wolfssl +#BBFILES += "${LAYERDIR}/recipes-wolfssl/wolfmqtt/*.bb \ +# ${LAYERDIR}/recipes-wolfssl/wolfmqtt/*.bbappend" + +# Uncomment if building wolftpm with wolfssl +#BBFILES += "${LAYERDIR}/recipes-wolfssl/wolftpm/*.bb \ +# ${LAYERDIR}/recipes-wolfssl/wolftpm/*.bbappend" + # Uncomment if building bind with wolfSSL. #BBFILES += "${LAYERDIR}/recipes-connectivity/bind/*.bbappend"