diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2012-01-22 09:01:57 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2012-01-22 09:01:57 +0000 |
commit | f70b664df1faabe31c1e5b545ef679eff15ac868 (patch) | |
tree | 3b5dab61c95131e02aa6bb9dde902fc242feb5ec /chapter06/udev.xml | |
parent | e9ba8aa85f6fe42e7fe1c8815431702c07fe9172 (diff) |
Upgrade to Udev-178 and add its dependency of Kmod-4. Fixes #2998 and #3001.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9711 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/udev.xml')
-rw-r--r-- | chapter06/udev.xml | 53 |
1 files changed, 19 insertions, 34 deletions
diff --git a/chapter06/udev.xml b/chapter06/udev.xml index 06417c6c1..d17e0ef73 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -32,32 +32,19 @@ <seglistitem> <seg>&udev-ch6-sbu;</seg> - <seg>&udev-ch6-du; plus &udev-testfiles-du; for testfiles</seg> + <seg>&udev-ch6-du;</seg> </seglistitem> </segmentedlist> - </sect2> <sect2 role="installation"> <title>Installation of Udev</title> - <para>Optionally remove an unneeded warning message that shows up in this - version of udev at boot time.</para> - -<screen><userinput remap="pre">sed -i -e '/deprecated/d' udev/udevadm-trigger.c</userinput></screen> - - <para>The udev-config tarball contains LFS-specific files used to configure Udev. Unpack it into the Udev source directory:</para> <screen><userinput remap="pre">tar -xvf ../&udev-config;.tar.bz2</userinput></screen> - <para>The udev-testfiles tarball contains files needed to test udev. The - file expands to an apparent size of about 37MB but the actual disk usage - is less than 7MB.</para> - -<screen><userinput remap="pre">tar -xvf ../udev-&udev-version;-testfiles.tar.bz2 --strip-components=1</userinput></screen> - <para>Create some devices and directories that Udev cannot handle due to them being required very early in the boot process, or by Udev itself:</para> @@ -67,41 +54,39 @@ mknod -m0666 /lib/udev/devices/null c 1 3</userinput></screen> <para>Prepare the package for compilation:</para> <!-- Note that "libdir=/usr/lib64" would be required for multilib. --> -<screen><userinput remap="configure">./configure --prefix=/usr \ - --sysconfdir=/etc --sbindir=/sbin \ - --with-rootlibdir=/lib --libexecdir=/lib/udev \ - --disable-hwdb --disable-introspection \ - --disable-keymap --disable-gudev</userinput></screen> +<screen><userinput remap="configure">BLKID_CFLAGS="-I/usr/include/blkid" BLKID_LIBS="-L/lib -lblkid" \ + KMOD_CFLAGS="-I/usr/include" KMOD_LIBS="-L/lib -lkmod" ./configure \ + --prefix=/usr --bindir=/sbin --sysconfdir=/etc --libexecdir=/lib \ + --enable-rule_generator --disable-introspection --disable-keymap \ + --disable-gudev --with-usb-ids-path=no --with-pci-ids-path=no \ + --with-systemdsystemunitdir=no</userinput></screen> <variablelist> <title>The meaning of the new configure options</title> + <!-- Note that libexecdir *MUST* stay /lib, even on a 64-bit + / multilib system where udev is compiled for 64-bit. The udev + configure system automatically adds "udev" onto this path, and other + packages require /lib/udev; the udev maintainers have + said this is part of the udev API. --> <varlistentry> - <term><parameter>--with-rootlibdir=/lib</parameter></term> + <term><parameter>--libexecdir=/lib</parameter></term> <listitem> - <para>This controls where the <filename - class="libraryfile">libudev</filename> library is installed. The - library needs to be in <filename class="directory">/lib</filename> - because it's used by Udev at boot time, before <filename - class="directory">/usr</filename> might be available, and the default - --rootlibdir is <filename class="directory">/usr/lib</filename>.</para> + <para>This controls where Udev-internal rules and helper programs + are installed.</para> </listitem> </varlistentry> - <!-- Note that libexecdir *MUST* stay /lib/udev, even on a 64-bit - / multilib system where udev is compiled for 64-bit. Other - packages require this exact path; the udev maintainers have - said this is part of the udev API. --> <varlistentry> - <term><parameter>--libexecdir=/lib/udev</parameter></term> + <term><parameter>--enable-rule_generator</parameter></term> <listitem> - <para>This controls where Udev-internal rules and helper programs - are installed.</para> + <para>This allows persistent rules to be generated for network and + optical media devices</para> </listitem> </varlistentry> <varlistentry> - <term><parameter>--disable-*</parameter></term> + <term><parameter>--disable-* and --with-*</parameter></term> <listitem> <para>These options prevent Udev from installing helper programs and other extras which require more external libraries. These libraries |