mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-26 15:03:27 +08:00
f6aa6d1a5f
Some scenarii, like building an RTK base, does not require a gpsd daemon, but just a few python based tools (e.g. the python scripts to configure a GNSS device). Add an option to enable or disable building and instaling the daemon. We make it enabled by default, for legacy purposes. When the daemon is installed, it also installs a few ancillary helpers, which need some of the clients (e.g. the udev rule will use gpsdctl), so ensure they are enabled with the daemon. Speaking of the udev rule: without the daemon, it does not need to be installed, so only try to fix its mode when the daemomn is installed. Similarly for systemd, no need to install the drop-in when the daemon is not installed. And for sysv init, no need for a startup script without the daemon either. Now that everything is optional, daemon, clients, and python stuff, we need to ensure that at least something is installed. The obvious solution would be to ensure that the daemon is installed, but that causes conflicts in the Kconfig depencies (elided for readability): config BR2_PACAKGE_GPSD bool "gpsd: select BR2_PACKAGE_GPSD_DAEMON if ! BR2_PACKAGE_GPSD_CLIENTS \ && ! BR2_PACKAGE_GPSD_PYTHON config BR2_PACKAGE_GPSD_DAEMON bool "daemon" select BR2_PACKAGE_GPSD_CLIENTS would cause errors like: package/gpsd/Config.in:27:error: recursive dependency detected! package/gpsd/Config.in:27: symbol BR2_PACKAGE_GPSD_DAEMON is selected by BR2_PACKAGE_GPSD_CLIENTS package/gpsd/Config.in:226: symbol BR2_PACKAGE_GPSD_CLIENTS is selected by BR2_PACKAGE_GPSD_DAEMON So we chose the next best option: ensure that the clients get built, if nothing else does. Signed-off-by: Yann E. MORIN <yann.morin@orange.com> Cc: Bernd Kuhls <bernd@kuhls.net> Reviewed-by: Jan Havran <havran.jan@email.cz> Tested-by: Jan Havran <havran.jan@email.cz> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> |
||
---|---|---|
.. | ||
br-chrony.conf | ||
Config.in | ||
gpsd.hash | ||
gpsd.mk | ||
S50gpsd |