[oe] [meta-oe][PATCH 2/2] gpsd: add gpsdctl at .service for USB autoplug
Martin Kelly
mkelly at xevo.com
Fri Nov 17 01:10:51 UTC 2017
On 11/15/2017 07:13 PM, Khem Raj wrote:
>
> On Wed, Nov 15, 2017 at 12:53 PM Martin Kelly <mkelly at xevo.com
> <mailto:mkelly at xevo.com>> wrote:
>
> This service allows gpsd to automatically recognize USB devices but is
> currently missing from our packaging. Without this service and the
> matching udev rules from upstream, gpsd will fail to recognize USB
> devices when they are plugged in.
>
> Signed-off-by: Martin Kelly <mkelly at xevo.com <mailto:mkelly at xevo.com>>
> ---
> meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb <http://gpsd_3.16.bb>
> | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
> <http://gpsd_3.16.bb> b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
> <http://gpsd_3.16.bb>
> index e94d6a108..80d9b0edf 100644
> --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb <http://gpsd_3.16.bb>
> +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb <http://gpsd_3.16.bb>
> @@ -80,6 +80,7 @@ do_install_append() {
> #support for systemd
> install -d ${D}${systemd_unitdir}/system/
> install -m 0644 ${S}/systemd/${BPN}.service
> ${D}${systemd_unitdir}/system/${BPN}.service
> + install -m 0644 ${S}/systemd/${BPN}ctl at .service
> ${D}${systemd_unitdir}/system/${BPN}ctl at .service
> install -m 0644 ${S}/systemd/${BPN}.socket
> ${D}${systemd_unitdir}/system/${BPN}.socket
> }
>
> @@ -121,7 +122,7 @@ RDEPENDS_python-pygps = "python-core
> python-curses gpsd python-json"
> RPROVIDES_${PN} += "${PN}-systemd"
> RREPLACES_${PN} += "${PN}-systemd"
> RCONFLICTS_${PN} += "${PN}-systemd"
> -SYSTEMD_SERVICE_${PN} = "${PN}.socket"
> +SYSTEMD_SERVICE_${PN} = "${PN}.socket ${PN}ctl at .service"
>
>
> This should be BPN as well I think
>
Good point, I sent a v2 patch series to fix it.
More information about the Openembedded-devel
mailing list