conf: Ship udev rules for launching obmc-console-server
The systemd unit has a ConditionPathExists for the server configuration
file, so we can support listing any number of UARTs in the udev rule
without negatively impacting the system. For the moment however, list
just the two virtual UARTs on the ASPEED SoCs.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie0bebbf64388c62f7cbb77c399f3d064713d586f
diff --git a/configure.ac b/configure.ac
index 8f37250..045ea36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,6 +24,14 @@
# Checks for library functions.
LT_INIT # Removes 'unrecognized options: --with-libtool-sysroot'
+AC_ARG_WITH([udevdir],
+ AS_HELP_STRING([--with-udevdir=DIR], [Directory for udev rules]),
+ [], [with_udevdir=${prefix}$($PKG_CONFIG --variable=udevdir udev)])
+if test "x$with_udevdir" != xno; then
+ AC_SUBST([udevdir], [$with_udevdir])
+fi
+AM_CONDITIONAL(WITH_UDEV, [test -n "$with_udevdir" -a "x$with_udevdir" != xno ])
+
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [with_systemdsystemunitdir=${prefix}$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
@@ -63,6 +71,7 @@
# Create configured output
AC_CONFIG_FILES([
+ conf/80-obmc-console-uart.rules
conf/client.2200.conf
conf/obmc-console@.service
conf/obmc-console-ssh@.service