Skip to content
Snippets Groups Projects
Commit b563bfb3 authored by Stefan Schmidt's avatar Stefan Schmidt
Browse files

oniro-image-common.inc/oniro-packageconfig.inc: modem/usbmodem MACHINE_FEATURES

Enable a modem/usbmodem MACHINE_FEATURE to install the needed packages
for NetworkManager and ModemManager in the image. Also enabling the
ModemManager PACKAGECONFIG for NetworkManager to build the needed support.

Fixes: eclipse/oniro-core/oniro#60



Signed-off-by: default avatarStefan Schmidt <stefan.schmidt@huawei.com>
parent 34d7f9b9
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,11 @@
# Define the configuration set as per our distro policy
PACKAGECONFIG:pn-networkmanager = "nss systemd bluez5 wifi nmcli"
# If the machine has a cellular modem it can set MACHINE_FEATURES+=modem to
# enable build-in support in NetworkManager.
PACKAGECONFIG:append:pn-networkmanager = "${@bb.utils.contains('MACHINE_FEATURES', \
'modem', ' modemmanager ', '', d)}"
# We have no use for dlt-daemon as we use systemd for logging
PACKAGECONFIG:remove:pn-mosquitto = "dlt"
......
......@@ -20,3 +20,10 @@ IMAGE_INSTALL:append = "\
"
IMAGE_INSTALL:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'optee-client', '', d)} "
# If the machine has a cellular modem it can set MACHINE_FEATURES+=modem to
# add the needed packages into the image. In the special case of an USB cellular
# modem adding MACHINE_FEATURES+="modem usbmodem" ensures to have the usb-modeswitch
# package as well.
IMAGE_INSTALL:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'modem', 'networkmanager-wwan modemmanager', '', d)} "
IMAGE_INSTALL:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'usbmodem', 'usb-modeswitch', '', d)} "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment