From: Fabio Estevam <festevam@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: otavio.salvador@ossystems.com.br, hs@denx.de,
alexandre.belloni@bootlin.com, Fabio Estevam <festevam@denx.de>
Subject: [PATCH meta-oe] rtc-tool: Add a recipe
Date: Sun, 23 Jan 2022 12:03:58 -0300 [thread overview]
Message-ID: <20220123150358.1306062-1-festevam@gmail.com> (raw)
From: Fabio Estevam <festevam@denx.de>
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 <hs@denx.de>.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
.../0001-rtc-tools-Add-a-Makefile.patch | 52 +++++++++++++++++++
.../rtc-tools/rtc-tools_1.0.0.bb | 19 +++++++
2 files changed, 71 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
diff --git a/meta-oe/recipes-support/rtc-tools/rtc-tools/0001-rtc-tools-Add-a-Makefile.patch b/meta-oe/recipes-support/rtc-tools/rtc-tools/0001-rtc-tools-Add-a-Makefile.patch
new file mode 100644
index 000000000000..a372e390efb9
--- /dev/null
+++ b/meta-oe/recipes-support/rtc-tools/rtc-tools/0001-rtc-tools-Add-a-Makefile.patch
@@ -0,0 +1,52 @@
+From faa6dd2e4d063afcaa19f16740a3fc413a399e60 Mon Sep 17 00:00:00 2001
+From: Fabio Estevam <festevam@denx.de>
+Date: Sun, 23 Jan 2022 09:22:19 -0300
+Subject: [PATCH rtc-tools] 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=164294073129803&w=2]
+Signed-off-by: Fabio Estevam <festevam@denx.de>
+---
+ Makefile | 29 +++++++++++++++++++++++++++++
+ 1 file changed, 29 insertions(+)
+ create mode 100644 Makefile
+
+diff --git a/Makefile b/Makefile
+new file mode 100644
+index 000000000000..4f244d9289f1
+--- /dev/null
++++ b/Makefile
+@@ -0,0 +1,29 @@
++prefix ?= /usr
++bindir ?= $(prefix)/bin
++
++EXEC = rtc-range rtc rtc-sync
++
++all: $(EXEC)
++
++rtc-range: rtc-range.c
++ $(CC) $(CFLAGS) -o $@ rtc-range.c
++
++rtc: rtc.c
++ $(CC) $(CFLAGS) -o $@ rtc.c
++
++rtc-sync: rtc-sync.c
++ $(CC) $(CFLAGS) -o $@ rtc-sync.c
++
++clean:
++ rm -f $(EXEC)
++
++install: rtc-range rtc rtc-sync
++ mkdir -p '$(DESTDIR)$(bindir)'
++ install -m755 rtc-range '$(DESTDIR)$(bindir)/rtc-range'
++ install -m755 rtc '$(DESTDIR)$(bindir)/rtc'
++ install -m755 rtc-sync '$(DESTDIR)$(bindir)/rtc-sync'
++
++uninstall:
++ rm -rf '$(DESTDIR)$(bindir)/rtc-range'
++ rm -rf '$(DESTDIR)$(bindir)/rtc'
++ rm -rf '$(DESTDIR)$(bindir)/rtc-sync'
+--
+2.25.1
diff --git a/meta-oe/recipes-support/rtc-tools/rtc-tools_1.0.0.bb b/meta-oe/recipes-support/rtc-tools/rtc-tools_1.0.0.bb
new file mode 100644
index 000000000000..8f0326829d8c
--- /dev/null
+++ b/meta-oe/recipes-support/rtc-tools/rtc-tools_1.0.0.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "Useful programs to test rtc drivers"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=74274e8a218423e49eefdea80bc55038"
+
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git;protocol=https;branch=master \
+ file://0001-rtc-tools-Add-a-Makefile.patch \
+ "
+SRCREV ?= "acc442e7af4e1e783432a43d37f1a7938c692659"
+
+S = "${WORKDIR}/git"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+EXTRA_OEMAKE = " \
+ DESTDIR=${D} \
+ all \
+ "
+do_install() {
+ oe_runmake install
+}
--
2.25.1
next reply other threads:[~2022-01-23 15:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-23 15:03 Fabio Estevam [this message]
2022-01-24 9:57 ` [OE-core] [PATCH meta-oe] rtc-tool: Add a recipe Christian Eggers
2022-01-24 19:18 ` Fabio Estevam
2022-01-24 19:47 ` Christian Eggers
2022-01-26 13:54 ` Alexandre Belloni
2022-01-26 18:15 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220123150358.1306062-1-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=festevam@denx.de \
--cc=hs@denx.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=otavio.salvador@ossystems.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox