瀏覽代碼

gpsd: enable kpps support

GPSD has the ability to support KPPS. Its enablement is determined
primarily from the existence of `sys/timepps.h`. This file is provided
from the pps-tools package. Adjusting GPSD's Makefile to depend on the
pps-tools package if a developer has included pps-tools as part of a
build.

Signed-off-by: James Knight <james.knight@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
James Knight 9 年之前
父節點
當前提交
2cfc966f43
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      package/gpsd/gpsd.mk

+ 6 - 0
package/gpsd/gpsd.mk

@@ -59,6 +59,12 @@ else
 GPSD_SCONS_OPTS += bluez=no
 endif
 
+# If pps-tools is available, build it before so the package can use it
+# (HAVE_SYS_TIMEPPS_H).
+ifeq ($(BR2_PACKAGE_PPS_TOOLS),y)
+GPSD_DEPENDENCIES += pps-tools
+endif
+
 ifeq ($(BR2_PACKAGE_DBUS_GLIB),y)
 GPSD_SCONS_OPTS += dbus_export=yes
 GPSD_DEPENDENCIES += dbus-glib