29 lines
965 B
BlitzBasic
29 lines
965 B
BlitzBasic
require recipes-connectivity/modemmanager/modemmanager_1.18.8.bb
|
|
|
|
# Use custom git repo as SRC
|
|
SRC_URI = " \
|
|
git://gitlab.com/netmodule/third-party/ModemManager;protocol=ssh;user=git;branch=mm-1-18-netmodule \
|
|
file://0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch \
|
|
"
|
|
|
|
SRCREV = "a092259df33cc70a04826f0e7117475ac9b26f99"
|
|
S = "${WORKDIR}/git"
|
|
|
|
# Keep only ublox plugin
|
|
EXTRA_OECONF += "--disable-all-plugins --enable-plugin-ublox --enable-plugin-generic"
|
|
|
|
# Exclude mbim
|
|
PACKAGECONFIG = "systemd qmi"
|
|
|
|
# Add whitelist rules
|
|
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
|
SRC_URI += "file://77-mm-netmodule-whitelist.rules"
|
|
|
|
do_install:append() {
|
|
install -m 0644 ${WORKDIR}/77-mm-netmodule-whitelist.rules ${D}${libdir}/udev/rules.d/
|
|
sed -i -e 's/bin\/ModemManager/bin\/ModemManager --filter-policy=WHITELIST-ONLY/g' ${D}${systemd_unitdir}/system/ModemManager.service
|
|
}
|
|
|
|
# MM is started by wwan-config
|
|
SYSTEMD_AUTO_ENABLE = "disable"
|