summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
diff options
context:
space:
mode:
authorzhengruoqin <zhengrq.fnst@fujitsu.com>2021-09-30 22:54:39 +0800
committerKhem Raj <raj.khem@gmail.com>2021-09-30 08:50:42 -0700
commitddf3442b62ad3b9a7562ab1683fc3810f82bb62a (patch)
treef7c9da671383ba318f3dc1d397c6a40a563098f2 /meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
parent843b4e24b87e72e9e0cf2d7d6583b1b027e90413 (diff)
downloadmeta-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.bb129
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 @@
1SUMMARY = "A TCP/IP Daemon simplifying the communication with GPS devices"
2SECTION = "console/network"
3LICENSE = "BSD-2-Clause"
4LIC_FILES_CHKSUM = "file://COPYING;md5=7a5d174db44ec45f9638b2c747806821"
5DEPENDS = "dbus ncurses python3 pps-tools"
6PROVIDES = "virtual/gpsd"
7
8SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
9 file://gpsd.init \
10 "
11SRC_URI[sha256sum] = "0b991ce9a46538c4ea450f7a8ee428ff44fb4f8d665fddf2ffe40fe0ae9a6c09"
12
13inherit scons update-rc.d python3-dir python3native systemd update-alternatives
14
15INITSCRIPT_PACKAGES = "gpsd-conf"
16INITSCRIPT_NAME = "gpsd"
17INITSCRIPT_PARAMS = "defaults 35"
18
19SYSTEMD_OESCONS = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false',d)}"
20
21export STAGING_INCDIR
22export STAGING_LIBDIR
23
24CLEANBROKEN = "1"
25
26PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} usb"
27PACKAGECONFIG[bluez] = "bluez='true',bluez='false',bluez5"
28PACKAGECONFIG[qt] = "qt='yes' qt_versioned=5,qt='no',qtbase"
29PACKAGECONFIG[usb] = "usb='true',usb='false',libusb1"
30EXTRA_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
46do_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
54do_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
67do_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
78PACKAGES =+ "libgps libgpsd python3-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils"
79
80RPROVIDES:${PN}-dbg += "python-pygps-dbg"
81
82FILES:${PN}-dev += "${libdir}/pkgconfdir/libgpsd.pc ${libdir}/pkgconfdir/libgps.pc \
83 ${libdir}/libQgpsmm.prl"
84
85FILES:${PN}-doc += "${datadir}/${BPN}/doc"
86
87RDEPENDS:${PN} = "gpsd-gpsctl"
88RRECOMMENDS:${PN} = "gpsd-conf gpsd-udev gpsd-machine-conf"
89
90SUMMARY:gpsd-udev = "udev relevant files to use gpsd hotplugging"
91FILES:gpsd-udev = "${nonarch_base_libdir}/udev"
92RDEPENDS:gpsd-udev += "udev gpsd-conf"
93
94SUMMARY:libgpsd = "C service library used for communicating with gpsd"
95FILES:libgpsd = "${libdir}/libgpsd.so.*"
96
97SUMMARY:libgps = "C service library used for communicating with gpsd"
98FILES:libgps = "${libdir}/libgps.so.*"
99
100SUMMARY:gpsd-conf = "gpsd configuration files and init scripts"
101FILES:gpsd-conf = "${sysconfdir}"
102CONFFILES:gpsd-conf = "${sysconfdir}/default/gpsd.default"
103
104SUMMARY:gpsd-gpsctl = "Tool for tweaking GPS modes"
105FILES:gpsd-gpsctl = "${bindir}/gpsctl"
106
107SUMMARY:gps-utils = "Utils used for simulating, monitoring,... a GPS"
108# Python files are required for gps/fake, required for gpsfake.
109FILES:gps-utils = "${bindir}/* ${libdir}/gps/*.py ${libdir}/gps/*.so"
110RDEPENDS:gps-utils = "python3-pygps"
111
112SUMMARY:python3-pygps = "Python bindings to gpsd"
113FILES:python3-pygps = "${PYTHON_SITEPACKAGES_DIR}/* ${libdir}/gps/*.py ${libdir}/*.egg-info"
114RDEPENDS:python3-pygps = " \
115 python3-core \
116 python3-io \
117 python3-threading \
118 python3-terminal \
119 gpsd \
120 python3-json"
121
122RPROVIDES:${PN} += "${PN}-systemd"
123RREPLACES:${PN} += "${PN}-systemd"
124RCONFLICTS:${PN} += "${PN}-systemd"
125SYSTEMD_SERVICE:${PN} = "${BPN}.socket ${BPN}ctl@.service"
126
127ALTERNATIVE:${PN} = "gpsd-defaults"
128ALTERNATIVE_LINK_NAME[gpsd-defaults] = "${sysconfdir}/default/gpsd"
129ALTERNATIVE_TARGET[gpsd-defaults] = "${sysconfdir}/default/gpsd.default"