cancel
Showing results for 
Search instead for 
Did you mean: 

OpenSTLinux remove wifi and bluetooth support

PGE
Associate III

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"

1 ACCEPTED SOLUTION

Accepted Solutions
CPRIO
Associate II

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

View solution in original post

2 REPLIES 2
CPRIO
Associate II

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

PGE
Associate III

Hello,

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

Best Regards

Patrick