Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/rtklib: new package
@ 2022-02-20 14:08 Jan Havran
  2022-08-03 20:41 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Havran @ 2022-02-20 14:08 UTC (permalink / raw)
  To: buildroot; +Cc: Jan Havran, Thomas Petazzoni

RTKLIB is an open source program package for standard and precise
positioning with GNSS.

Version used here is from rtkexplorer, which is better optimized
and more frequently updated than original version by Tomoji Takasu.

Signed-off-by: Jan Havran <havran.jan@email.cz>
---
 DEVELOPERS                 |  3 +++
 package/Config.in          |  1 +
 package/rtklib/Config.in   | 38 ++++++++++++++++++++++++++++++++++++++
 package/rtklib/rtklib.hash |  3 +++
 package/rtklib/rtklib.mk   | 31 +++++++++++++++++++++++++++++++
 5 files changed, 76 insertions(+)
 create mode 100644 package/rtklib/Config.in
 create mode 100644 package/rtklib/rtklib.hash
 create mode 100644 package/rtklib/rtklib.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 91e9060ac5..8d7eb2c268 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1356,6 +1356,9 @@ F:	package/pangomm/
 F:	package/rpm/
 F:	package/yad/
 
+N:	Jan Havran <havran.jan@email.cz>
+F:	package/rtklib/
+
 N:	Jan Heylen <jan.heylen@nokia.com>
 F:	package/opentracing-cpp/
 
diff --git a/package/Config.in b/package/Config.in
index 9a8196efe2..b38c33d543 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -561,6 +561,7 @@ endmenu
 	source "package/rpi-userland/Config.in"
 	source "package/rs485conf/Config.in"
 	source "package/rtc-tools/Config.in"
+	source "package/rtklib/Config.in"
 	source "package/rtl8188eu/Config.in"
 	source "package/rtl8189es/Config.in"
 	source "package/rtl8189fs/Config.in"
diff --git a/package/rtklib/Config.in b/package/rtklib/Config.in
new file mode 100644
index 0000000000..dc694d6b7d
--- /dev/null
+++ b/package/rtklib/Config.in
@@ -0,0 +1,38 @@
+comment "rtklib needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
+config BR2_PACKAGE_RTKLIB
+	bool "rtklib"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	help
+	  RTKLIB is an open source program package for standard and
+	  precise positioning with GNSS (global navigation satellite
+	  system).
+
+	  This is a version of RTKLIB optimized for single and dual
+	  frequency low cost GPS receivers, especially u-blox receivers.
+
+	  https://rtkexplorer.com/
+
+if BR2_PACKAGE_RTKLIB
+
+config BR2_PACKAGE_RTKLIB_CONVBIN
+	bool "convbin"
+
+config BR2_PACKAGE_RTKLIB_POS2KML
+	bool "pos2kml"
+
+comment "rnx2rtkp needs Fortran"
+	depends on !BR2_TOOLCHAIN_HAS_FORTRAN
+
+config BR2_PACKAGE_RTKLIB_RNX2RTKP
+	bool "rnx2rtkp"
+	depends on BR2_TOOLCHAIN_HAS_FORTRAN
+
+config BR2_PACKAGE_RTKLIB_RTKRCV
+	bool "rtkrcv"
+
+config BR2_PACKAGE_RTKLIB_STR2STR
+	bool "str2str"
+
+endif
diff --git a/package/rtklib/rtklib.hash b/package/rtklib/rtklib.hash
new file mode 100644
index 0000000000..faed92243b
--- /dev/null
+++ b/package/rtklib/rtklib.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  735d43939ae08b0da64d75afe5750bc983032144c5622e620eee987508946fc5  rtklib-b34e.tar.gz
+sha256  219747832d49ee958457b2934080ab8d94bd9d8e45fcb1c36f89776fd2c5ed8a  license.txt
diff --git a/package/rtklib/rtklib.mk b/package/rtklib/rtklib.mk
new file mode 100644
index 0000000000..421cdddfcd
--- /dev/null
+++ b/package/rtklib/rtklib.mk
@@ -0,0 +1,31 @@
+################################################################################
+#
+# rtklib
+#
+################################################################################
+
+RTKLIB_VERSION = b34e
+RTKLIB_SITE = $(call github,rtklibexplorer,RTKLIB,$(RTKLIB_VERSION))
+RTKLIB_LICENSE = BSD-2-Clause
+RTKLIB_LICENSE_FILES = license.txt
+
+RTKLIB_APPS += $(if $(BR2_PACKAGE_RTKLIB_CONVBIN),convbin,)
+RTKLIB_APPS += $(if $(BR2_PACKAGE_RTKLIB_POS2KML),pos2kml,)
+RTKLIB_APPS += $(if $(BR2_PACKAGE_RTKLIB_RNX2RTKP),rnx2rtkp,)
+RTKLIB_APPS += $(if $(BR2_PACKAGE_RTKLIB_RTKRCV),rtkrcv,)
+RTKLIB_APPS += $(if $(BR2_PACKAGE_RTKLIB_STR2STR),str2str,)
+
+define RTKLIB_BUILD_CMDS
+	for APP in $(RTKLIB_APPS); do \
+		cd $(@D)/app/consapp/$$APP/gcc ; \
+		$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CCFLAGS="$(TARGET_CFLAGS) $(TARGET_LDFLAGS)" ; \
+	done
+endef
+
+define RTKLIB_INSTALL_TARGET_CMDS
+	for APP in $(RTKLIB_APPS); do \
+		$(INSTALL) -m 0755 $(@D)/app/consapp/$$APP/gcc/$$APP $(TARGET_DIR)/usr/bin/$$APP ; \
+	done
+endef
+
+$(eval $(generic-package))
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-03 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-20 14:08 [Buildroot] [PATCH 1/1] package/rtklib: new package Jan Havran
2022-08-03 20:41 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox