MTD 248-645A Instrukcja Użytkownika Strona 208

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 347
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 207
Linux From Scratch - Version 7.0
188
6.60. Udev-173
The Udev package contains programs for dynamic creation of device nodes.
Approximate build time: 0.2 SBU
Required disk space: 9.3 MB plus 37 MB for testfiles
6.60.1. Installation of Udev
Optionally remove an unneeded warning message that shows up in this version of udev at boot time.
sed -i -e '/deprecated/d' udev/udevadm-trigger.c
The udev-config tarball contains LFS-specific files used to configure Udev. Unpack it into the Udev source directory:
tar -xvf ../udev-config-20100128.tar.bz2
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.
tar -xvf ../udev-173-testfiles.tar.bz2 --strip-components=1
Create some devices and directories that Udev cannot handle due to them being required very early in the boot process,
or by Udev itself:
install -dv /lib/{firmware,udev/devices/pts}
mknod -m0666 /lib/udev/devices/null c 1 3
Prepare the package for compilation:
./configure --prefix=/usr \
--sysconfdir=/etc --sbindir=/sbin \
--with-rootlibdir=/lib --libexecdir=/lib/udev \
--disable-hwdb --disable-introspection \
--disable-keymap --disable-gudev
The meaning of the new configure options
--with-rootlibdir=/lib
This controls where the libudev library is installed. The library needs to be in /lib because it's used by Udev
at boot time, before /usr might be available, and the default --rootlibdir is /usr/lib.
--libexecdir=/lib/udev
This controls where Udev-internal rules and helper programs are installed.
--disable-*
These options prevent Udev from installing helper programs and other extras which require more external
libraries. These libraries are not part of the base LFS system. See the Udev README file for more information.
Compile the package:
make
Test the package.
make check
Przeglądanie stron 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 346 347

Komentarze do niniejszej Instrukcji

Brak uwag