Skip to main content
Visitor II
July 14, 2021
Solved

OpenSTLinux remove wifi and bluetooth support

  • July 14, 2021
  • 2 replies
  • 1481 views

We are using OpenSTLinux to generate a custom image for our custom board. This board has no wifi nor bluetooth so we would like to remove it's support.

Our machine conf file is based on stm32mp1-eval.conf with the following edition (commenting wifi and bluetooth and adding MACHINE_FEATURES_remove for wifi and bluetooth)

But even with these modification bluez, packagegroup-base-bluetooth, packagegroup-base-wifi and wpa-supplicant are included in our image (accoridng to manifest).

How can we remove bluetooth and wifi support ?

#MACHINE_FEATURES += "bluetooth"
#MACHINE_FEATURES += "wifi"
 
MACHINE_FEATURES_remove = "wifi" 
MACHINE_FEATURES_remove = "bluetooth" 
 
#BLUETOOTH_LIST += "linux-firmware-bluetooth-bcm4343"
#WIFI_LIST += "linux-firmware-bcm43430"

    This topic has been closed for replies.
    Best answer by CPRIO

    Hello,

    The MACHINE_FEATURES affect the hardware configuration and if wifi and bluetooth are set, the firmware associated are installed.

    For the tools on userland, it's mainly DISTRO_FEATURES which manage to add some tools depending of features set.

    In your case your MUST remove the DISTRO_FEATURES associated to wifi and bluetooth:

    DISTRO_FEATURES_remove = "wifi"

    DISTRO_FEATURES_remove = "bluetooth"

    DISTRO_FEATURES_remove = "bluez5"

    (information of DISTRO_FEATURES set by openstlinux are on layers/meta-st/meta-st-openstlinux/conf/distro/include/openstlinux.inc)

    Regards

    Chrsitophe

    2 replies

    CPRIOAnswer
    Visitor II
    July 15, 2021

    Hello,

    The MACHINE_FEATURES affect the hardware configuration and if wifi and bluetooth are set, the firmware associated are installed.

    For the tools on userland, it's mainly DISTRO_FEATURES which manage to add some tools depending of features set.

    In your case your MUST remove the DISTRO_FEATURES associated to wifi and bluetooth:

    DISTRO_FEATURES_remove = "wifi"

    DISTRO_FEATURES_remove = "bluetooth"

    DISTRO_FEATURES_remove = "bluez5"

    (information of DISTRO_FEATURES set by openstlinux are on layers/meta-st/meta-st-openstlinux/conf/distro/include/openstlinux.inc)

    Regards

    Chrsitophe

    PGEAuthor
    Visitor II
    July 23, 2021

    Hello,

    Many thanks this works perfectly. Thanks also for the clarification between DISTRO and MACHINE FEATURES

    Best Regards

    Patrick