aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac9
-rw-r--r--crontab/Makemodule.am6
-rw-r--r--services/Makemodule.am7
4 files changed, 24 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index d397794..06bf306 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,3 +40,8 @@ install-data-local:
$(LN_S) $(TEMPLATEDIR)/tmpfsrun $(DESTDIR)$(SVCDIR)/tmpfsrun
$(LN_S) $(TEMPLATEDIR)/tmpfsvar $(DESTDIR)$(SVCDIR)/tmpfsvar
$(LN_S) $(TEMPLATEDIR)/gcrond $(DESTDIR)$(SVCDIR)/gcrond
+if SWCLOCK
+ $(LN_S) $(TEMPLATEDIR)/swclock $(DESTDIR)$(SVCDIR)/swclock
+ $(LN_S) $(TEMPLATEDIR)/swclocksave $(DESTDIR)$(SVCDIR)/swclocksave@reboot
+ $(LN_S) $(TEMPLATEDIR)/swclocksave $(DESTDIR)$(SVCDIR)/swclocksave@shutdown
+endif
diff --git a/configure.ac b/configure.ac
index edd9500..fcd0e67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,4 +41,13 @@ AC_CONFIG_FILES([scripts/modules_load.sh])
AC_CONFIG_FILES([crontab/swclock])
+AC_ARG_ENABLE([swclock],
+ [AS_HELP_STRING([--enable-swclock], [Enable software pseudo RTC])],
+ [case "${enableval}" in
+ yes) AM_CONDITIONAL([SWCLOCK], [true]) ;;
+ no) AM_CONDITIONAL([SWCLOCK], [false]) ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-swclock]) ;;
+ esac],
+ [AM_CONDITIONAL([SWCLOCK], [false])])
+
AC_OUTPUT([Makefile])
diff --git a/crontab/Makemodule.am b/crontab/Makemodule.am
index 2fe3424..cb7823a 100644
--- a/crontab/Makemodule.am
+++ b/crontab/Makemodule.am
@@ -1,2 +1,6 @@
crondir = @GCRONDIR@
-cron_DATA = crontab/swclock
+cron_DATA =
+
+if SWCLOCK
+cron_DATA += crontab/swclock
+endif
diff --git a/services/Makemodule.am b/services/Makemodule.am
index bb2d464..b2a0309 100644
--- a/services/Makemodule.am
+++ b/services/Makemodule.am
@@ -6,13 +6,16 @@ init_DATA += services/sysfs services/procfs services/tmpfs
init_DATA += services/vfs services/ifrename services/ifcfg
init_DATA += services/dhcpcd services/dhcpcdmaster services/unbound
init_DATA += services/dnsmasq services/ifdown services/modules
-init_DATA += services/network services/hostapd services/swclock
-init_DATA += services/swclocksave services/nft services/sigkill
+init_DATA += services/network services/hostapd services/nft services/sigkill
init_DATA += services/sshd services/sshd_keygen services/consolefont
init_DATA += services/nginx services/usyslogd services/klogd
init_DATA += services/gcrond services/mountusr
init_DATA += services/tmpfsrun services/tmpfsvar
+if SWCLOCK
+init_DATA += services/swclock services/swclocksave
+endif
+
EXTRA_DIST += services/sysinit services/vfs services/agetty services/hostname
EXTRA_DIST += services/hwclock services/loopback services/klogd
EXTRA_DIST += services/sync services/sysctl services/tmpfs