aboutsummaryrefslogtreecommitdiff
path: root/rtc/Makefile
diff options
context:
space:
mode:
authorZhaoming Luo <zhmingluo@163.com>2024-12-11 08:54:15 +0800
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-11 22:17:20 +0100
commit5ca0fa556b24463bd52ce5e45dddefcd766ae9c3 (patch)
treecbd03c87ca8c05a9936ab797e869e42074041fbb /rtc/Makefile
parent85d59af5be84d122adab484a9c961462d4fdbfda (diff)
downloadhurd-5ca0fa556b24463bd52ce5e45dddefcd766ae9c3.tar.gz
hurd-5ca0fa556b24463bd52ce5e45dddefcd766ae9c3.tar.bz2
hurd-5ca0fa556b24463bd52ce5e45dddefcd766ae9c3.zip
Add rtc translator and RTC CMOS driver
A /hurd/rtc translator will be created as, users can create a /dev/rtc device using the following command: ``` sudo settrans -c /dev/rtc /hurd/rtc ``` * Makefile: add rtc-cmos server into the compile chain * hurd/pioctl.defs: new file. Interfaces for rtc ioctl operations * hurd/rtc.h: new file. Interfaces for rtc device * rtc/Makefile: new file. Makefile for rtc server * rtc/main.c: new file. Initialisation for rtc translator * rtc/mig-mutate.h: new file. Type translation for rtc server * rtc/rtc-cmos_pioctl-ops.c: new file. The rtc-cmos server-side implementation Signed-off-by: Zhaoming Luo <zhmingluo@163.com> Message-ID: <20241211005415.507656-2-zhmingluo@163.com>
Diffstat (limited to 'rtc/Makefile')
-rw-r--r--rtc/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/rtc/Makefile b/rtc/Makefile
new file mode 100644
index 00000000..ce32de4c
--- /dev/null
+++ b/rtc/Makefile
@@ -0,0 +1,39 @@
+# Makefile for rtc server
+#
+# Copyright (C) 2024 Free Software Foundation, Inc.
+#
+# This file is part of the GNU Hurd.
+#
+# The GNU Hurd is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# The GNU Hurd is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
+
+dir := rtc
+makemode := server
+
+SRCS = main.c rtc-cmos_pioctl-ops.c
+MIGSRCS = pioctlServer.c
+
+OBJS = main.o pioctlServer.o rtc-cmos_pioctl-ops.o
+
+HURDLIBS = trivfs shouldbeinlibc ports
+
+target = rtc
+
+include ../Makeconf
+
+MIGCOMSFLAGS += -prefix rtc_
+mig-sheader-prefix = rtc_
+pioctl-MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h
+
+rtc_pioctl_S.h pioctlServer.c: mig-mutate.h