This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM335X: Adding wpa-supplicant to yocto build causes licensing issues

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

I am currently in the process of updating our linux build from a 2.00.01 release to the latest 5.02 release.

Previously we were building core-image-minimal. All the modifications that we required were captured in conf/local.conf with a IMAGE_INSTALL_append= at the end. I have updated our line accordingly to the the packages we need:

IMAGE_INSTALL_append=" ti-sgx-ddk-km ti-sgx-ddk-um omap5-sgx-ddk-um-linux bash libtool libpng icu packagegroup-arago-tisdk-graphics-sdk-target dbus fontconfig freetype expat dropbear wireless-tools wpa-supplicant"

I have found that using the latest sources, I am getting the following error:

WARNING: gnutls-3.5.13-r0.arago0 do_package: QA Issue: gnutls-openssl has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: gnutls-3.5.13-r0.arago0 do_package: QA Issue: gnutls-dbg has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: gnutls-3.5.13-r0.arago0 do_package: QA Issue: gnutls-staticdev has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: gnutls-3.5.13-r0.arago0 do_package: QA Issue: gnutls-dev has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: gnutls-3.5.13-r0.arago0 do_package: QA Issue: gnutls-doc has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: gnutls-3.5.13-r0.arago0 do_package: QA Issue: gnutls-locale has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: gnutls-3.5.13-r0.arago0 do_package: QA Issue: gnutls-bin has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: wpa-supplicant-wl18xx-R8.7_SP3-devel-ti+gitAUTOINC+ee8fbdb840-r9b do_package: QA Issue: wpa-supplicant-wl18xx: Files/directories were installed but not shipped in any package:
  /lib
  /lib/systemd
  /lib/systemd/system
  /lib/systemd/system/wpa_supplicant.service
  /lib/systemd/system/wpa_supplicant-wired@.service
  /lib/systemd/system/wpa_supplicant-nl80211@.service
  /lib/systemd/system/wpa_supplicant@.service
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
wpa-supplicant-wl18xx: 7 installed and not shipped files. [installed-vs-shipped]

I am concerned primarily by the license issues since we are not using the wl18xx for wifi. Now I do see that wpa-supplicant does have a packageconfig option that should allow me configure it to use openssl for the encryption library instead of the gnutls library. For whatever reason, I cannot get that to happen.

I was originally trying this in the local.conf file using the PACKAGECONFIG_pn-wpa-supplicant=openssl. I did also trying doing a remove of gnutls and append of openssl. This did not resolve these errors. Neither did creating a new layer with a bbappend file for wpa-supplicant_2.6.bbappend. It consists of:

PACKAGECONFIG_remove="gnutls"
PACKAGECONFIG_append=" openssl"

At this point it seems to me that the wl18xx recipe for wpa-supplicant image is getting picked up no matter what I do. I have even rename the recipes-connectivity folder located sources/meta-arago/meta-arago-extras/recipes-connectivity. I have been cleaning and rebuilding via this command:

bitbake -c clean wpa-supplicant gnutls wireless-tools && bitbake -c cleansstate wpa-supplicant gnutls wireless-tools &&  bitbake core-image-minimal

What am I missing here? Thanks.

Regards,

Matt

  • Hello Matt,

    First, you must read the gnutls's license and find out what is incompatible with the licensing. For the wl18xx wpa-supplicant recipe getting picked up no matter what you do, please see this thread.

    Best regards,
    Kemal

  • Thank you for pointing me in the right direction.

    I was able to switch to the unmodified wpa_supplicant by adding the following lines to my local.conf file:

    PREFERRED_PROVIDER_wpa-supplicant_ti33x_remove="wpa-supplicant-wl18xx"
    PREFERRED_PROVIDER_wpa-supplicant_ti33x_append=" wpa-supplicant"

    I was able to fix the licensing issue by switching the encryption backing library to openssl by adding a recipe to my layer: recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bbappend. The contents of that recipe are:

    PACKAGECONFIG_remove="gnutls"
    PACKAGECONFIG_append=" openssl"

    I am sure this could have been done from the local.conf since the recipe was no longer defaulting to the wl18xx version