2021-07-14 05:26 AM
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"
Solved! Go to Solution.
2021-07-15 04:53 AM
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
2021-07-15 04:53 AM
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
2021-07-22 11:05 PM
Hello,
Many thanks this works perfectly. Thanks also for the clarification between DISTRO and MACHINE FEATURES
Best Regards
Patrick