Skip to contentSkip to conversation

package/rtc-tools: new package

PATCH New Thomas Petazzoni 4 participants 8 messages Jan 15, 2019 – Jan 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rtc-tools: new package

This package contains a set of tools to manipulate RTC devices. They are written and maintained by the RTC subsystem Linux kernel maintainer, Alexandre Belloni.

Cc Alexandre Belloni <[email protected]>
---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/rtc-tools/Config.in      |  7 +++++++
 package/rtc-tools/rtc-tools.hash |  3 +++
 package/rtc-tools/rtc-tools.mk   | 26 ++++++++++++++++++++++++++
 5 files changed, 38 insertions(+)
 create mode 100644 package/rtc-tools/Config.in
 create mode 100644 package/rtc-tools/rtc-tools.hash
 create mode 100644 package/rtc-tools/rtc-tools.mk
DEVELOPERS +1 -0
index aa1bf325cb..c1950bb0f4 100644
@@ -2130,6 +2130,7 @@ F:	package/python-serial/
 F:	package/qextserialport/
 F:	package/rpcbind/
 F:	package/rt-tests/
+F:	package/rtc-tools/
 F:	package/sam-ba/
 F:	package/scons/
 F:	package/squashfs/
package/Config.in +1 -0
index 0df9b73088..5036421a73 100644
@@ -500,6 +500,7 @@ endmenu
 	source "package/rng-tools/Config.in"
 	source "package/rpi-userland/Config.in"
 	source "package/rs485conf/Config.in"
+	source "package/rtc-tools/Config.in"
 	source "package/rtl8188eu/Config.in"
 	source "package/rtl8189fs/Config.in"
 	source "package/rtl8723bs/Config.in"
package/rtc-tools/Config.in new file +7 -0
new file mode 100644
index 0000000000..78f5c06049
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RTC_TOOLS
+	bool "rtc-tools"
+	help
+	  This package provide a set of user-space tools that can be
+	  used to manipulate Real Time Clock Devices.
+
+	  https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git/
package/rtc-tools/rtc-tools.hash new file +3 -0
new file mode 100644
index 0000000000..81be1afe4e
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 152d8455bae5ad672e99bb91dfbed5b8b4bd8b0325146d1cf1c4d80b6e0d8a16 rtc-tools-33ef4aa1c92b0c92a351284d93d1ac5570de9cc7.tar.gz
+sha256 7ae50a5344af14d6231aff6814632a220b3127da4099aea2c6070fd79c407c1a COPYING
package/rtc-tools/rtc-tools.mk new file +26 -0
new file mode 100644
index 0000000000..5e9d040b27
@@ -0,0 +1,26 @@
+################################################################################
+#
+# rtc-tools
+#
+################################################################################
+
+RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7
+RTC_TOOLS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git
+RTC_TOOLS_LICENSE = GPL-2.0
+RTC_TOOLS_LICENSE_FILES = COPYING
+
+RTC_TOOLS_BINARIES = rtc rtc-sync rtc-range
+
+define RTC_TOOLS_BUILD_CMDS
+	$(foreach bin,$(RTC_TOOLS_BINARIES),\
+		$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$(bin) $(@D)/$(bin).c
+	)
+endef
+
+define RTC_TOOLS_INSTALL_TARGET_CMDS
+	$(foreach bin,$(RTC_TOOLS_BINARIES),\
+		$(INSTALL) -D -m0755 $(@D)/$(bin) $(TARGET_DIR)/usr/bin/$(bin)
+	)
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/rtc-tools: new package

Alexandre,

Quoted 76 lines · Thomas Petazzoni

This package contains a set of tools to manipulate RTC devices. They are written and maintained by the RTC subsystem Linux kernel maintainer, Alexandre Belloni.

Cc Alexandre Belloni <[email protected]>
---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/rtc-tools/Config.in      |  7 +++++++
 package/rtc-tools/rtc-tools.hash |  3 +++
 package/rtc-tools/rtc-tools.mk   | 26 ++++++++++++++++++++++++++
 5 files changed, 38 insertions(+)
 create mode 100644 package/rtc-tools/Config.in
 create mode 100644 package/rtc-tools/rtc-tools.hash
 create mode 100644 package/rtc-tools/rtc-tools.mk
DEVELOPERS +1 -0
index aa1bf325cb..c1950bb0f4 100644
@@ -2130,6 +2130,7 @@ F:        package/python-serial/
 F:     package/qextserialport/
 F:     package/rpcbind/
 F:     package/rt-tests/
+F:     package/rtc-tools/
 F:     package/sam-ba/
 F:     package/scons/
 F:     package/squashfs/
package/Config.in +1 -0
index 0df9b73088..5036421a73 100644
@@ -500,6 +500,7 @@ endmenu
        source "package/rng-tools/Config.in"
        source "package/rpi-userland/Config.in"
        source "package/rs485conf/Config.in"
+       source "package/rtc-tools/Config.in"
        source "package/rtl8188eu/Config.in"
        source "package/rtl8189fs/Config.in"
        source "package/rtl8723bs/Config.in"
package/rtc-tools/Config.in new file +7 -0
new file mode 100644
index 0000000000..78f5c06049
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RTC_TOOLS
+       bool "rtc-tools"
+       help
+         This package provide a set of user-space tools that can be
+         used to manipulate Real Time Clock Devices.
+
+         https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git/
package/rtc-tools/rtc-tools.hash new file +3 -0
new file mode 100644
index 0000000000..81be1afe4e
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 152d8455bae5ad672e99bb91dfbed5b8b4bd8b0325146d1cf1c4d80b6e0d8a16 rtc-tools-33ef4aa1c92b0c92a351284d93d1ac5570de9cc7.tar.gz
+sha256 7ae50a5344af14d6231aff6814632a220b3127da4099aea2c6070fd79c407c1a COPYING
package/rtc-tools/rtc-tools.mk new file +6 -0
new file mode 100644
index 0000000000..5e9d040b27
@@ -0,0 +1,26 @@
+################################################################################
+#
+# rtc-tools
+#
+################################################################################
+

package/rtc-tools/rtc-tools.mk line 16

Quoted 10 lines
package/rtc-tools/rtc-tools.mk new file +10 -0
+RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7
+RTC_TOOLS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git
+RTC_TOOLS_LICENSE = GPL-2.0
+RTC_TOOLS_LICENSE_FILES = COPYING
+
+RTC_TOOLS_BINARIES = rtc rtc-sync rtc-range
+
+define RTC_TOOLS_BUILD_CMDS
+       $(foreach bin,$(RTC_TOOLS_BINARIES),\
+               $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$(bin) $(@D)/$(bin).c

Is there a minimum Linux version required for the headers this tool needs?

Matt

#2 lore raw

PATCH 1/1 package/rtc-tools: new package

Quoted 84 lines · Matthew Weber

Alexandre,

Quoted 80 lines · Thomas Petazzoni

This package contains a set of tools to manipulate RTC devices. They are written and maintained by the RTC subsystem Linux kernel maintainer, Alexandre Belloni.

Cc Alexandre Belloni <[email protected]>
---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/rtc-tools/Config.in      |  7 +++++++
 package/rtc-tools/rtc-tools.hash |  3 +++
 package/rtc-tools/rtc-tools.mk   | 26 ++++++++++++++++++++++++++
 5 files changed, 38 insertions(+)
 create mode 100644 package/rtc-tools/Config.in
 create mode 100644 package/rtc-tools/rtc-tools.hash
 create mode 100644 package/rtc-tools/rtc-tools.mk
DEVELOPERS +1 -0
index aa1bf325cb..c1950bb0f4 100644
@@ -2130,6 +2130,7 @@ F:        package/python-serial/
 F:     package/qextserialport/
 F:     package/rpcbind/
 F:     package/rt-tests/
+F:     package/rtc-tools/
 F:     package/sam-ba/
 F:     package/scons/
 F:     package/squashfs/
package/Config.in +1 -0
index 0df9b73088..5036421a73 100644
@@ -500,6 +500,7 @@ endmenu
        source "package/rng-tools/Config.in"
        source "package/rpi-userland/Config.in"
        source "package/rs485conf/Config.in"
+       source "package/rtc-tools/Config.in"
        source "package/rtl8188eu/Config.in"
        source "package/rtl8189fs/Config.in"
        source "package/rtl8723bs/Config.in"
package/rtc-tools/Config.in new file +7 -0
new file mode 100644
index 0000000000..78f5c06049
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RTC_TOOLS
+       bool "rtc-tools"
+       help
+         This package provide a set of user-space tools that can be
+         used to manipulate Real Time Clock Devices.
+
+         https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git/
package/rtc-tools/rtc-tools.hash new file +3 -0
new file mode 100644
index 0000000000..81be1afe4e
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 152d8455bae5ad672e99bb91dfbed5b8b4bd8b0325146d1cf1c4d80b6e0d8a16 rtc-tools-33ef4aa1c92b0c92a351284d93d1ac5570de9cc7.tar.gz
+sha256 7ae50a5344af14d6231aff6814632a220b3127da4099aea2c6070fd79c407c1a COPYING
package/rtc-tools/rtc-tools.mk new file +10 -0
new file mode 100644
index 0000000000..5e9d040b27
@@ -0,0 +1,26 @@
+################################################################################
+#
+# rtc-tools
+#
+################################################################################
+
+RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7
+RTC_TOOLS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git
+RTC_TOOLS_LICENSE = GPL-2.0
+RTC_TOOLS_LICENSE_FILES = COPYING
Quoted 9 lines

package/rtc-tools/rtc-tools.mk line 16

Quoted 6 lines
package/rtc-tools/rtc-tools.mk new file +6 -0
+
+RTC_TOOLS_BINARIES = rtc rtc-sync rtc-range
+
+define RTC_TOOLS_BUILD_CMDS
+       $(foreach bin,$(RTC_TOOLS_BINARIES),\
+               $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$(bin) $(@D)/$(bin).c

Is there a minimum Linux version required for the headers this tool needs?

Yes, you need at least 2.3.99pre6-4 ;)

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 1/1 package/rtc-tools: new package

In reply to Thomas Petazzoni

Thomas/Alexandre,

Quoted 7 lines · Thomas Petazzoni

This package contains a set of tools to manipulate RTC devices. They are written and maintained by the RTC subsystem Linux kernel maintainer, Alexandre Belloni.

Cc Alexandre Belloni <[email protected]>
Quoted 96 lines
---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/rtc-tools/Config.in      |  7 +++++++
 package/rtc-tools/rtc-tools.hash |  3 +++
 package/rtc-tools/rtc-tools.mk   | 26 ++++++++++++++++++++++++++
 5 files changed, 38 insertions(+)
 create mode 100644 package/rtc-tools/Config.in
 create mode 100644 package/rtc-tools/rtc-tools.hash
 create mode 100644 package/rtc-tools/rtc-tools.mk
DEVELOPERS +1 -0
index aa1bf325cb..c1950bb0f4 100644
@@ -2130,6 +2130,7 @@ F:        package/python-serial/
 F:     package/qextserialport/
 F:     package/rpcbind/
 F:     package/rt-tests/
+F:     package/rtc-tools/
 F:     package/sam-ba/
 F:     package/scons/
 F:     package/squashfs/
package/Config.in +1 -0
index 0df9b73088..5036421a73 100644
@@ -500,6 +500,7 @@ endmenu
        source "package/rng-tools/Config.in"
        source "package/rpi-userland/Config.in"
        source "package/rs485conf/Config.in"
+       source "package/rtc-tools/Config.in"
        source "package/rtl8188eu/Config.in"
        source "package/rtl8189fs/Config.in"
        source "package/rtl8723bs/Config.in"
package/rtc-tools/Config.in new file +7 -0
new file mode 100644
index 0000000000..78f5c06049
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RTC_TOOLS
+       bool "rtc-tools"
+       help
+         This package provide a set of user-space tools that can be
+         used to manipulate Real Time Clock Devices.
+
+         https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git/
package/rtc-tools/rtc-tools.hash new file +3 -0
new file mode 100644
index 0000000000..81be1afe4e
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 152d8455bae5ad672e99bb91dfbed5b8b4bd8b0325146d1cf1c4d80b6e0d8a16 rtc-tools-33ef4aa1c92b0c92a351284d93d1ac5570de9cc7.tar.gz
+sha256 7ae50a5344af14d6231aff6814632a220b3127da4099aea2c6070fd79c407c1a COPYING
package/rtc-tools/rtc-tools.mk new file +26 -1
new file mode 100644
index 0000000000..5e9d040b27
@@ -0,0 +1,26 @@
+################################################################################
+#
+# rtc-tools
+#
+################################################################################
+
+RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7
+RTC_TOOLS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git
+RTC_TOOLS_LICENSE = GPL-2.0
+RTC_TOOLS_LICENSE_FILES = COPYING
+
+RTC_TOOLS_BINARIES = rtc rtc-sync rtc-range
+
+define RTC_TOOLS_BUILD_CMDS
+       $(foreach bin,$(RTC_TOOLS_BINARIES),\
+               $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$(bin) $(@D)/$(bin).c
+       )
+endef
+
+define RTC_TOOLS_INSTALL_TARGET_CMDS
+       $(foreach bin,$(RTC_TOOLS_BINARIES),\
+               $(INSTALL) -D -m0755 $(@D)/$(bin) $(TARGET_DIR)/usr/bin/$(bin)
+       )
+endef
+
+$(eval $(generic-package))
--

2.20.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#4 lore raw

PATCH 1/1 package/rtc-tools: new package

In reply to Thomas Petazzoni
Quoted 28 lines · Thomas Petazzoni
package/rtc-tools/Config.in new file +7 -0
new file mode 100644
index 0000000000..78f5c06049
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RTC_TOOLS
+	bool "rtc-tools"
+	help
+	  This package provide a set of user-space tools that can be
+	  used to manipulate Real Time Clock Devices.
+
+	  https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git/
package/rtc-tools/rtc-tools.hash new file +3 -0
new file mode 100644
index 0000000000..81be1afe4e
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 152d8455bae5ad672e99bb91dfbed5b8b4bd8b0325146d1cf1c4d80b6e0d8a16 rtc-tools-33ef4aa1c92b0c92a351284d93d1ac5570de9cc7.tar.gz
+sha256 7ae50a5344af14d6231aff6814632a220b3127da4099aea2c6070fd79c407c1a COPYING
package/rtc-tools/rtc-tools.mk new file +0 -0
new file mode 100644
index 0000000000..5e9d040b27

package/rtc-tools/rtc-tools.mk line 7

Quoted 7 lines
package/rtc-tools/rtc-tools.mk new file +7 -0
@@ -0,0 +1,26 @@
+################################################################################
+#
+# rtc-tools
+#
+################################################################################
+
+RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7

Should I tag a release or are you fine with the git hash?

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

PATCH 1/1 package/rtc-tools: new package

Hello,

Quoted 16 lines · Alexandre Belloni
Quoted 16 lines
package/rtc-tools/rtc-tools.hash new file +3 -0
new file mode 100644
index 0000000000..81be1afe4e
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 152d8455bae5ad672e99bb91dfbed5b8b4bd8b0325146d1cf1c4d80b6e0d8a16 rtc-tools-33ef4aa1c92b0c92a351284d93d1ac5570de9cc7.tar.gz
+sha256 7ae50a5344af14d6231aff6814632a220b3127da4099aea2c6070fd79c407c1a COPYING
package/rtc-tools/rtc-tools.mk new file +1 -0
new file mode 100644
index 0000000000..5e9d040b27
@@ -0,0 +1,26 @@
+################################################################################
Quoted 8 lines

package/rtc-tools/rtc-tools.mk line 7

Quoted 6 lines
package/rtc-tools/rtc-tools.mk new file +6 -0
+#
+# rtc-tools
+#
+################################################################################
+
+RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7  

Should I tag a release or are you fine with the git hash?

I'm fine with the Git hash.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#6 lore raw

PATCH 1/1 package/rtc-tools: new package

In reply to Alexandre Belloni
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexandre" == Alexandre Belloni <[email protected]> writes:

Hi,

Quoted 3 lines
Quoted 1 line

+RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7

Should I tag a release or are you fine with the git hash?

A release is always nicer, but just using the git hash is IMHO OK for now.

If you are not planning any other changes in the near future, then I would suggest you make a release.

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH 1/1 package/rtc-tools: new package

In reply to Thomas Petazzoni
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

This package contains a set of tools to manipulate RTC devices. They are written and maintained by the RTC subsystem Linux kernel maintainer, Alexandre Belloni.

Cc Alexandre Belloni <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard