diff options
author | Fabio Estevam <festevam@denx.de> | 2022-01-28 16:54:59 -0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-02-07 16:36:08 -0800 |
commit | 5d341cb54082995042a540a03886f106bc957cb6 (patch) | |
tree | 92e8cfa905d00a162a6f8d363e4a94a913b50abb | |
parent | f0484dae3ac77afef11a74637534e29a8a8dfe72 (diff) | |
download | meta-openembedded-5d341cb54082995042a540a03886f106bc957cb6.tar.gz |
rtc-tools: Add a recipe
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>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/rtc-tools/rtc-tools/0001-rtc-tools-Add-a-Makefile.patch | 39 | ||||
-rw-r--r-- | meta-oe/recipes-support/rtc-tools/rtc-tools_1.0.0.bb | 16 |
2 files changed, 55 insertions, 0 deletions
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 0000000000..1d16a66088 --- /dev/null +++ b/meta-oe/recipes-support/rtc-tools/rtc-tools/0001-rtc-tools-Add-a-Makefile.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 3e9dfc0f21191bdb3ab719479e9c1997a61c5044 Mon Sep 17 00:00:00 2001 | ||
2 | From: Fabio Estevam <festevam@denx.de> | ||
3 | Date: Fri, 28 Jan 2022 13:34:45 -0300 | ||
4 | Subject: [PATCH] rtc-tools: Add a Makefile | ||
5 | |||
6 | Add a Makefile to make installation and uninstallation | ||
7 | process easier. | ||
8 | |||
9 | Upstream-Status: Submitted [https://marc.info/?l=linux-rtc&m=164332426030004&w=2] | ||
10 | Signed-off-by: Fabio Estevam <festevam@denx.de> | ||
11 | --- | ||
12 | Makefile | 16 ++++++++++++++++ | ||
13 | 1 file changed, 16 insertions(+) | ||
14 | create mode 100644 Makefile | ||
15 | |||
16 | diff --git a/Makefile b/Makefile | ||
17 | new file mode 100644 | ||
18 | index 0000000..71a4c9c | ||
19 | --- /dev/null | ||
20 | +++ b/Makefile | ||
21 | @@ -0,0 +1,16 @@ | ||
22 | +prefix ?= /usr | ||
23 | +bindir ?= $(prefix)/bin | ||
24 | + | ||
25 | +EXEC = rtc-range rtc rtc-sync | ||
26 | + | ||
27 | +all: $(EXEC) | ||
28 | + | ||
29 | +clean: | ||
30 | + $(RM) $(EXEC) | ||
31 | + | ||
32 | +install: | ||
33 | + install -d $(DESTDIR)$(bindir) | ||
34 | + install $(EXEC) $(DESTDIR)$(bindir) | ||
35 | + | ||
36 | +uninstall: | ||
37 | + $(RM) -r $(addprefix $(DESTDIR)$(bindir)/,$(EXEC)) | ||
38 | -- | ||
39 | 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 0000000000..303585a659 --- /dev/null +++ b/meta-oe/recipes-support/rtc-tools/rtc-tools_1.0.0.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | SUMMARY = "Useful programs to test rtc drivers" | ||
2 | LICENSE = "GPL-2.0-only" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=74274e8a218423e49eefdea80bc55038" | ||
4 | |||
5 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/${BPN}.git;protocol=https;branch=master \ | ||
6 | file://0001-rtc-tools-Add-a-Makefile.patch \ | ||
7 | " | ||
8 | SRCREV = "acc442e7af4e1e783432a43d37f1a7938c692659" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | EXTRA_OEMAKE = "DESTDIR=${D}" | ||
13 | |||
14 | do_install() { | ||
15 | oe_runmake install | ||
16 | } | ||