From cbd59ae614ed8b2e73da3e94ffb6af9c5e8c88db Mon Sep 17 00:00:00 2001 From: Stefan Eichenberger Date: Wed, 7 Mar 2018 15:57:32 +0100 Subject: [PATCH 1/2] modemmanager: add version 1.8.0 for ublox support --- .../libmbim/libmbim_1.16.0.bb | 18 ++++++++ recipes-connectivity/libqmi/libqmi_1.20.0.bb | 19 ++++++++ .../modemmanager/make-compilable.patch | 13 ++++++ .../modemmanager/modemmanager_1.8.0.bb | 46 +++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 recipes-connectivity/libmbim/libmbim_1.16.0.bb create mode 100644 recipes-connectivity/libqmi/libqmi_1.20.0.bb create mode 100644 recipes-connectivity/modemmanager/modemmanager/make-compilable.patch create mode 100644 recipes-connectivity/modemmanager/modemmanager_1.8.0.bb diff --git a/recipes-connectivity/libmbim/libmbim_1.16.0.bb b/recipes-connectivity/libmbim/libmbim_1.16.0.bb new file mode 100644 index 0000000..aa5e1ea --- /dev/null +++ b/recipes-connectivity/libmbim/libmbim_1.16.0.bb @@ -0,0 +1,18 @@ +SUMMARY = "libmbim is library for talking to WWAN devices by MBIM protocol" +DESCRIPTION = "libmbim is a glib-based library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol" +HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libmbim/" +LICENSE = "GPLv2 & LGPLv2.1" +LIC_FILES_CHKSUM = " \ + file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ +" + +DEPENDS = "glib-2.0 libgudev" + +inherit autotools pkgconfig + +SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BPN}-${PV}.tar.xz" +SRC_URI[md5sum] = "76ea4d8381989919b1d9b91c818fed80" +SRC_URI[sha256sum] = "c8ca50beeddd4b43309df5b698917268303bf176cea58fe4fe53d5bf0e93fac2" + +FILES_${PN}_append = " ${datadir}/bash-completion" diff --git a/recipes-connectivity/libqmi/libqmi_1.20.0.bb b/recipes-connectivity/libqmi/libqmi_1.20.0.bb new file mode 100644 index 0000000..66b56db --- /dev/null +++ b/recipes-connectivity/libqmi/libqmi_1.20.0.bb @@ -0,0 +1,19 @@ +SUMMARY = "libqmi is a library for talking to WWAN devices by QMI protocol" +DESCRIPTION = "libqmi is a glib-based library for talking to WWAN modems and devices which speak the Qualcomm MSM Interface (QMI) protocol" +HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libqmi" +LICENSE = "GPLv2 & LGPLv2.1" +LIC_FILES_CHKSUM = " \ + file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ +" + +DEPENDS = "glib-2.0" + +inherit autotools pkgconfig + +SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BPN}-${PV}.tar.xz" +SRC_URI[md5sum] = "797e365521df76b77b067e6317618b41" +SRC_URI[sha256sum] = "21428cd3749c56246565123f707fee51238651a22c60bdc85ebce97388626eb4" + +FILES_${PN}_append = " ${datadir}/bash-completion" + diff --git a/recipes-connectivity/modemmanager/modemmanager/make-compilable.patch b/recipes-connectivity/modemmanager/modemmanager/make-compilable.patch new file mode 100644 index 0000000..4f59d91 --- /dev/null +++ b/recipes-connectivity/modemmanager/modemmanager/make-compilable.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index ce1e2ea..6615c08 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -26,7 +26,7 @@ dnl----------------------------------------------------------------------------- + dnl autoconf, automake, libtool initialization + dnl + AC_INIT([ModemManager],[mm_version],[modemmanager-devel@lists.freedesktop.org],[ModemManager]) +-AM_INIT_AUTOMAKE([1.11.2 subdir-objects tar-ustar no-dist-gzip dist-xz -Wno-portability]) ++AM_INIT_AUTOMAKE([1.11.2 subdir-objects tar-ustar no-dist-gzip dist-xz -Wno-portability foreign]) + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + + AM_MAINTAINER_MODE([enable]) diff --git a/recipes-connectivity/modemmanager/modemmanager_1.8.0.bb b/recipes-connectivity/modemmanager/modemmanager_1.8.0.bb new file mode 100644 index 0000000..c3f9caa --- /dev/null +++ b/recipes-connectivity/modemmanager/modemmanager_1.8.0.bb @@ -0,0 +1,46 @@ +SUMMARY = "ModemManager is a daemon controlling broadband devices/connections" +DESCRIPTION = "ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections" +HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ModemManager/" +LICENSE = "GPLv2 & LGPLv2.1" +LIC_FILES_CHKSUM = " \ + file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ +" + +inherit autotools gettext gtk-doc systemd + +DEPENDS = "glib-2.0 libmbim libqmi polkit libgudev dbus-glib libxslt-native" + +SRC_URI = " \ + git://anongit.freedesktop.org/ModemManager/ModemManager \ + file://make-compilable.patch \ + " + +SRCREV = "223b754fccba28dbb3ce950058a81bd133c8ce86" + +S = "${WORKDIR}/git" + +FILES_${PN} += " \ + ${datadir}/icons \ + ${datadir}/polkit-1 \ + ${datadir}/bash-completion \ + ${libdir}/ModemManager \ + ${systemd_unitdir}/system \ +" + +FILES_${PN}-dev += " \ + ${datadir}/dbus-1 \ + ${libdir}/ModemManager/*.la \ +" + +FILES_${PN}-staticdev += " \ + ${libdir}/ModemManager/*.a \ +" + +FILES_${PN}-dbg += "${libdir}/ModemManager/.debug" + +SYSTEMD_SERVICE_${PN} = "ModemManager.service" + +do_install_append_am335x-nbhw16-fct() { + sed -i 's/ExecStart=.*/ExecStart=\/usr\/sbin\/ModemManager --debug/g' ${D}/lib/systemd/system/ModemManager.service +} From 854147028b3134c2d4c43f1fe04854c7c36235a9 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Thu, 19 Apr 2018 15:42:09 +0200 Subject: [PATCH 2/2] nrhw18 : Add machine config --- conf/machine/armada-385-nrhw18.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 conf/machine/armada-385-nrhw18.conf diff --git a/conf/machine/armada-385-nrhw18.conf b/conf/machine/armada-385-nrhw18.conf new file mode 100644 index 0000000..e4fbdf4 --- /dev/null +++ b/conf/machine/armada-385-nrhw18.conf @@ -0,0 +1,21 @@ +#@TYPE: Machine +#@NAME: NRHW18 based routers like NB1800 +#@DESCRIPTION: Machine configuration for the NRHW18 based routers + +require conf/machine/include/armada.inc + +IMAGE_FSTYPES += "tar.gz cpio cpio.gz.u-boot" +IMAGE_CLASSES += "image_types_uboot" + +SERIAL_CONSOLE = "115200 ttyS1" +MACHINE_EXTRA_RRECOMMENDS = " kernel-modules kernel-devicetree" + +KERNEL_DEFCONFIG = "armada-385-nrhw18_defconfig" +KERNEL_DEVICETREE = "armada-385-nrhw18-prod3.dtb" +KERNEL_IMAGETYPE = "zImage" + +PREFERRED_PROVIDER_virtual/kernel = "linux-netmodule" +PV_pn-linux-netmodule = "4.14.0-${SRCPV}" +SRC_URI_pn-linux-netmodule ?= "git://github.com/netmodule/linux.git;protocol=https;branch=nrhw18-4.14" +SRCREV_pn-linux-netmodule ?= "2fb3360ec3cf672c74321e1dbe5c04e59d1ced11" +