[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3df55388b1b3acd142f391494f102c3ddb2270ed.1407416628.git.amit.shah@redhat.com>
Date: Thu, 7 Aug 2014 18:39:00 +0530
From: Amit Shah <amit.shah@...hat.com>
To: jgarzik@...pay.com
Cc: hpa@...ux.intel.com,
Virtualization List <virtualization@...ts.linux-foundation.org>,
Amos Kong <akong@...hat.com>,
Rusty Russell <rusty@...tcorp.com.au>,
linux-kernel@...r.kernel.org, Amit Shah <amit.shah@...hat.com>
Subject: [PATCH 2/2] Install udev rules in system-default directory
not-quite-Signed-off-by: Amit Shah <amit.shah@...hat.com>
---
Makefile.am | 1 +
configure.ac | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index f8490a3..a2b8173 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,6 +8,7 @@ sbin_PROGRAMS = rngd
bin_PROGRAMS = rngtest
man_MANS = rngd.8 rngtest.1
noinst_LIBRARIES = librngd.a
+udevrules_DATA = 90-virtio-rng.rules
rngd_SOURCES = rngd.h rngd.c rngd_entsource.h rngd_entsource.c \
rngd_linux.h rngd_linux.c util.c \
diff --git a/configure.ac b/configure.ac
index 27a2dba..4187aca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,14 @@ AC_ARG_WITH([libgcrypt],
[with_libgcrypt=check]
)
+PKG_PROG_PKG_CONFIG
+
+AC_ARG_WITH([udevrulesdir],
+ AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules]),
+ [],
+ [with_udevrulesdir=$($PKG_CONFIG --variable=udevdir udev)"/rules.d"])
+AC_SUBST([udevrulesdir], [$with_udevrulesdir])
+
dnl Make sure anyone changing configure.ac/Makefile.am has a clue
AM_MAINTAINER_MODE
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists