diff options
| author | zhengruoqin <zhengrq.fnst@fujitsu.com> | 2021-09-30 22:54:39 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-09-30 08:50:42 -0700 |
| commit | ddf3442b62ad3b9a7562ab1683fc3810f82bb62a (patch) | |
| tree | f7c9da671383ba318f3dc1d397c6a40a563098f2 /meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | |
| parent | 843b4e24b87e72e9e0cf2d7d6583b1b027e90413 (diff) | |
| download | meta-openembedded-ddf3442b62ad3b9a7562ab1683fc3810f82bb62a.tar.gz | |
gpsd: upgrade 3.23 -> 3.23.1
3.23.1: 2021-09-21
Improve ubx cycle detection.
Add quirks for Jackson Labs nonstandard NMEA
Change STATUS_NO_FIX to STATUS_UNK to avoid confusion with fix mode.
Change STATUS_FIX to STATUS_GPS to avoid confusion with fix mode.
Change STATUS_DGPS_FIX to STATUS_DGPS to avoid confusion with fix mode.
Split SOURCE_ACM from SOURCE_USB. ACM has no speeds.
Add speeds 1 mbps, 1.152 mbps, 1.5 mbps, and higher. When libc supports them.
Improve autobaud.
Add new u-blox M10 messages.
Fix u-blox M6, M7 initialization issues.
Various ubxtool and gpxlogger updates.
Add mtk3301_speed_switcher()
No API, ABI changes.
Fallback to "python3" if "python" not found.
0001-SConscript-Correct-the-installation-of-gpsd.hotplug.patch
removed since it is included in 3.23.1
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb')
| -rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb new file mode 100644 index 0000000000..eb3dc30e4f --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | |||
| @@ -0,0 +1,129 @@ | |||
| 1 | SUMMARY = "A TCP/IP Daemon simplifying the communication with GPS devices" | ||
| 2 | SECTION = "console/network" | ||
| 3 | LICENSE = "BSD-2-Clause" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=7a5d174db44ec45f9638b2c747806821" | ||
| 5 | DEPENDS = "dbus ncurses python3 pps-tools" | ||
| 6 | PROVIDES = "virtual/gpsd" | ||
| 7 | |||
| 8 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \ | ||
| 9 | file://gpsd.init \ | ||
| 10 | " | ||
| 11 | SRC_URI[sha256sum] = "0b991ce9a46538c4ea450f7a8ee428ff44fb4f8d665fddf2ffe40fe0ae9a6c09" | ||
| 12 | |||
| 13 | inherit scons update-rc.d python3-dir python3native systemd update-alternatives | ||
| 14 | |||
| 15 | INITSCRIPT_PACKAGES = "gpsd-conf" | ||
| 16 | INITSCRIPT_NAME = "gpsd" | ||
| 17 | INITSCRIPT_PARAMS = "defaults 35" | ||
| 18 | |||
| 19 | SYSTEMD_OESCONS = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false',d)}" | ||
| 20 | |||
| 21 | export STAGING_INCDIR | ||
| 22 | export STAGING_LIBDIR | ||
| 23 | |||
| 24 | CLEANBROKEN = "1" | ||
| 25 | |||
| 26 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} usb" | ||
| 27 | PACKAGECONFIG[bluez] = "bluez='true',bluez='false',bluez5" | ||
| 28 | PACKAGECONFIG[qt] = "qt='yes' qt_versioned=5,qt='no',qtbase" | ||
| 29 | PACKAGECONFIG[usb] = "usb='true',usb='false',libusb1" | ||
| 30 | EXTRA_OESCONS = " \ | ||
| 31 | sysroot=${STAGING_DIR_TARGET} \ | ||
| 32 | libQgpsmm='false' \ | ||
| 33 | debug='false' \ | ||
| 34 | nostrip='true' \ | ||
| 35 | systemd='${SYSTEMD_OESCONS}' \ | ||
| 36 | libdir='${libdir}' \ | ||
| 37 | udevdir='${nonarch_base_libdir}/udev' \ | ||
| 38 | unitdir='${systemd_system_unitdir}' \ | ||
| 39 | manbuild='false' \ | ||
| 40 | LINK='${CC}' \ | ||
| 41 | ${PACKAGECONFIG_CONFARGS} \ | ||
| 42 | " | ||
| 43 | # This cannot be used, because then chrpath is not found and only static lib is built | ||
| 44 | # target=${HOST_SYS} | ||
| 45 | |||
| 46 | do_compile:prepend() { | ||
| 47 | export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}" | ||
| 48 | export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" | ||
| 49 | export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}" | ||
| 50 | export LD="${CC}" | ||
| 51 | export LINKFLAGS="${LDFLAGS}" | ||
| 52 | } | ||
| 53 | |||
| 54 | do_install() { | ||
| 55 | export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}" | ||
| 56 | export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" | ||
| 57 | export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}" | ||
| 58 | export LD="${CC}" | ||
| 59 | export LINKFLAGS="${LDFLAGS}" | ||
| 60 | |||
| 61 | export DESTDIR="${D}" | ||
| 62 | # prefix is used for RPATH and DESTDIR/prefix for installation | ||
| 63 | ${STAGING_BINDIR_NATIVE}/scons prefix=${prefix} python_libdir=${libdir} udev-install ${EXTRA_OESCONS} || \ | ||
| 64 | bbfatal "scons install execution failed." | ||
| 65 | } | ||
| 66 | |||
| 67 | do_install:append() { | ||
| 68 | install -d ${D}${sysconfdir}/init.d | ||
| 69 | install -m 0755 ${WORKDIR}/gpsd.init ${D}${sysconfdir}/init.d/gpsd | ||
| 70 | install -d ${D}${sysconfdir}/default | ||
| 71 | install -m 0644 ${S}/packaging/deb/etc_default_gpsd ${D}${sysconfdir}/default/gpsd.default | ||
| 72 | |||
| 73 | # Support for python | ||
| 74 | install -d ${D}${PYTHON_SITEPACKAGES_DIR}/gps | ||
| 75 | install -m 755 ${S}/gps/*.py ${D}${PYTHON_SITEPACKAGES_DIR}/gps | ||
| 76 | } | ||
| 77 | |||
| 78 | PACKAGES =+ "libgps libgpsd python3-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" | ||
| 79 | |||
| 80 | RPROVIDES:${PN}-dbg += "python-pygps-dbg" | ||
| 81 | |||
| 82 | FILES:${PN}-dev += "${libdir}/pkgconfdir/libgpsd.pc ${libdir}/pkgconfdir/libgps.pc \ | ||
| 83 | ${libdir}/libQgpsmm.prl" | ||
| 84 | |||
| 85 | FILES:${PN}-doc += "${datadir}/${BPN}/doc" | ||
| 86 | |||
| 87 | RDEPENDS:${PN} = "gpsd-gpsctl" | ||
| 88 | RRECOMMENDS:${PN} = "gpsd-conf gpsd-udev gpsd-machine-conf" | ||
| 89 | |||
| 90 | SUMMARY:gpsd-udev = "udev relevant files to use gpsd hotplugging" | ||
| 91 | FILES:gpsd-udev = "${nonarch_base_libdir}/udev" | ||
| 92 | RDEPENDS:gpsd-udev += "udev gpsd-conf" | ||
| 93 | |||
| 94 | SUMMARY:libgpsd = "C service library used for communicating with gpsd" | ||
| 95 | FILES:libgpsd = "${libdir}/libgpsd.so.*" | ||
| 96 | |||
| 97 | SUMMARY:libgps = "C service library used for communicating with gpsd" | ||
| 98 | FILES:libgps = "${libdir}/libgps.so.*" | ||
| 99 | |||
| 100 | SUMMARY:gpsd-conf = "gpsd configuration files and init scripts" | ||
| 101 | FILES:gpsd-conf = "${sysconfdir}" | ||
| 102 | CONFFILES:gpsd-conf = "${sysconfdir}/default/gpsd.default" | ||
| 103 | |||
| 104 | SUMMARY:gpsd-gpsctl = "Tool for tweaking GPS modes" | ||
| 105 | FILES:gpsd-gpsctl = "${bindir}/gpsctl" | ||
| 106 | |||
| 107 | SUMMARY:gps-utils = "Utils used for simulating, monitoring,... a GPS" | ||
| 108 | # Python files are required for gps/fake, required for gpsfake. | ||
| 109 | FILES:gps-utils = "${bindir}/* ${libdir}/gps/*.py ${libdir}/gps/*.so" | ||
| 110 | RDEPENDS:gps-utils = "python3-pygps" | ||
| 111 | |||
| 112 | SUMMARY:python3-pygps = "Python bindings to gpsd" | ||
| 113 | FILES:python3-pygps = "${PYTHON_SITEPACKAGES_DIR}/* ${libdir}/gps/*.py ${libdir}/*.egg-info" | ||
| 114 | RDEPENDS:python3-pygps = " \ | ||
| 115 | python3-core \ | ||
| 116 | python3-io \ | ||
| 117 | python3-threading \ | ||
| 118 | python3-terminal \ | ||
| 119 | gpsd \ | ||
| 120 | python3-json" | ||
| 121 | |||
| 122 | RPROVIDES:${PN} += "${PN}-systemd" | ||
| 123 | RREPLACES:${PN} += "${PN}-systemd" | ||
| 124 | RCONFLICTS:${PN} += "${PN}-systemd" | ||
| 125 | SYSTEMD_SERVICE:${PN} = "${BPN}.socket ${BPN}ctl@.service" | ||
| 126 | |||
| 127 | ALTERNATIVE:${PN} = "gpsd-defaults" | ||
| 128 | ALTERNATIVE_LINK_NAME[gpsd-defaults] = "${sysconfdir}/default/gpsd" | ||
| 129 | ALTERNATIVE_TARGET[gpsd-defaults] = "${sysconfdir}/default/gpsd.default" | ||
