Skip to contentSkip to conversation

rtc-tools: Add a recipe

PATCH In review Fabio Estevam 3 participants 6 messages Jan 28, 2022 – Feb 10, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 rtc-tools: Add a recipe

From: Fabio Estevam <[email protected]>

rtc-tools is a useful utility developed by Alexandre Belloni for testing RTC kernel drivers, such as y2038 support.

Based on the initial recipe from Heiko Schocher <[email protected]>.

---
Changes since v3:
- Removed the TARGET_CC_ARCH line (Peter/Khem).

 .../0001-rtc-tools-Add-a-Makefile.patch       | 40 +++++++++++++++++++
 .../rtc-tools/rtc-tools_1.0.0.bb              | 16 ++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 meta-oe/recipes-support/rtc-tools/rtc-tools/0001-rtc-tools-Add-a-Makefile.patch
 create mode 100644 meta-oe/recipes-support/rtc-tools/rtc-tools_1.0.0.bb
meta-oe/recipes-support/rtc-tools/rtc-tools/0001-rtc-tools-Add-a-Makefile.patch new file +39 -0
new file mode 100644
index 000000000000..1f3b3b3b020e
@@ -0,0 +1,39 @@
+From 3e9dfc0f21191bdb3ab719479e9c1997a61c5044 Mon Sep 17 00:00:00 2001
+From: Fabio Estevam <[email protected]>
+Date: Fri, 28 Jan 2022 13:34:45 -0300
+Subject: [PATCH] rtc-tools: Add a Makefile
+
+Add a Makefile to make installation and uninstallation
+process easier.
+
+Upstream-Status: Submitted [https://marc.info/?l=linux-rtc&m=164332426030004&w=2]
+Signed-off-by: Fabio Estevam <[email protected]>
+---
+ Makefile | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+ create mode 100644 Makefile
+
+diff --git a/Makefile b/Makefile
+new file mode 100644
+index 0000000..71a4c9c
+--- /dev/null
++++ b/Makefile
+@@ -0,0 +1,16 @@
++prefix ?= /usr
++bindir ?= $(prefix)/bin
++
++EXEC = rtc-range rtc rtc-sync
++
++all: $(EXEC)
++
++clean:
++	$(RM) $(EXEC)
++
++install:
++	install -d $(DESTDIR)$(bindir)
++	install $(EXEC) $(DESTDIR)$(bindir)
++
++uninstall:
++	$(RM) -r $(addprefix $(DESTDIR)$(bindir)/,$(EXEC))
+--
+2.25.1
meta-oe/recipes-support/rtc-tools/rtc-tools_1.0.0.bb new file +16 -0
new file mode 100644
index 000000000000..303585a6591d
@@ -0,0 +1,16 @@
+SUMMARY = "Useful programs to test rtc drivers"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=74274e8a218423e49eefdea80bc55038"
+
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/${BPN}.git;protocol=https;branch=master \
+           file://0001-rtc-tools-Add-a-Makefile.patch \
+           "
+SRCREV = "acc442e7af4e1e783432a43d37f1a7938c692659"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "DESTDIR=${D}"
+
+do_install() {
+	oe_runmake install
+}
Signature · 1 line
2.25.1
Acked-by on v4 1/1
#1 lore raw

Em sex., 28 de jan. de 2022 às 16:54, Fabio Estevam <[email protected]> escreveu:

Quoted 9 lines

From: Fabio Estevam <[email protected]>

rtc-tools is a useful utility developed by Alexandre Belloni for testing RTC kernel drivers, such as y2038 support.

Based on the initial recipe from Heiko Schocher <[email protected]>.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750
#2 lore raw

Hi Khem and Peter,

Quoted 6 lines · Otavio Salvador

Em sex., 28 de jan. de 2022 às 16:54, Fabio Estevam <[email protected]> escreveu:

Quoted 3 lines

From: Fabio Estevam <[email protected]>

Quoted 8 lines
Quoted 6 lines

rtc-tools is a useful utility developed by Alexandre Belloni for testing RTC kernel drivers, such as y2038 support.

Based on the initial recipe from Heiko Schocher <[email protected]>.

Are you happy with this version?

Thanks

#3 lore raw
Quoted 15 lines · Fabio Estevam

Hi Khem and Peter,

Quoted 11 lines · Otavio Salvador

Em sex., 28 de jan. de 2022 às 16:54, Fabio Estevam <[email protected]> escreveu:

Quoted 8 lines

From: Fabio Estevam <[email protected]>

rtc-tools is a useful utility developed by Alexandre Belloni for testing RTC kernel drivers, such as y2038 support.

Based on the initial recipe from Heiko Schocher <[email protected]>.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Are you happy with this version

Yes it should be in master

Quoted 3 lines

Thanks