- Timestamp:
- 10/10/2008 03:13:52 PM (16 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- a737f40
- Parents:
- 4661ef51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/udev.xml
r4661ef51 r166a9db 59 59 ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen> 60 60 61 <para>Prepare the package for compilation:</para> 62 63 <screen><userinput remap="configure">./configure --prefix=/ --includedir=/usr/include \ 64 --datarootdir=/usr/share</userinput></screen> 65 61 66 <para>Compile the package:</para> 62 67 63 <screen><userinput remap="make">make EXTRAS="`echo extras/*/`"</userinput></screen> 64 65 <variablelist> 66 <title>The meaning of the make option:</title> 67 68 <varlistentry> 69 <term><parameter>EXTRAS=...</parameter></term> 70 <listitem> 71 <para>This builds the helper binaries that can aid in writing custom 72 Udev rules.</para> 73 </listitem> 74 </varlistentry> 75 76 </variablelist> 77 78 <para>To test the results, issue:</para> 79 80 <screen><userinput remap="test">make test</userinput></screen> 81 82 <para>Note that the Udev testsuite will produce numerous messages in 83 the host system's logs. These are harmless and can be ignored.</para> 68 <screen><userinput remap="make">make</userinput></screen> 69 70 <para>This package does not come with a test suite.</para> 84 71 85 72 <para>Install the package:</para> 86 73 87 <screen><userinput remap="install">make DESTDIR=/ EXTRAS="`echo extras/*/`" install</userinput></screen> 88 89 <variablelist> 90 <title>The meaning of the make parameter:</title> 91 92 <varlistentry> 93 <term><parameter>DESTDIR=/</parameter></term> 94 <listitem> 95 <para>This prevents the Udev build process from killing any 96 <command>udevd</command> processes that may be running on the 97 host system.</para> 98 </listitem> 99 </varlistentry> 100 101 </variablelist> 74 <screen><userinput remap="install">make install</userinput></screen> 75 76 <para>Recreate the library <filename class="extension">.so</filename> files 77 currently in the <filename class="directory">/lib</filename> directory in 78 <filename class="directory">/usr/lib</filename>, then remove the 79 originals:</para> 80 81 <screen><userinput remap="install">ln -sv ../../lib/$(readlink /lib/libudev.so) \ 82 /usr/lib/libudev.so 83 ln -sv ../../lib/$(readlink /lib/libvolume_id.so) \ 84 /usr/lib/libvolume_id.so 85 rm -v /lib/lib{udev,volume_id}.so</userinput></screen> 86 87 <para>Move the <filename class="extension">.pc</filename> files currently 88 in the <filename class="directory">/lib/pkgconfig</filename> directory to 89 their proper place in <filename class="directory">/usr/lib</filename>:</para> 90 91 <screen><userinput remap="install">mv -v /lib/pkgconfig/lib{udev,volume_id}.pc /usr/lib/pkgconfig 92 rmdir -v /lib/pkgconfig</userinput></screen> 102 93 103 94 <para>Udev has to be configured in order to work properly, as its default 104 configuration does not cover all devices. First install a fewextra rules95 configuration does not cover all devices. First install two extra rules 105 96 files from Udev to help support device-mapper and RAID setups:</para> 106 97 … … 111 102 112 103 <screen><userinput remap="install">install -m644 -v etc/udev/packages/40-pilot-links.rules \ 113 /etc/udev/rules.d/ 40-pilot-links.rules</userinput></screen>104 /etc/udev/rules.d/</userinput></screen> 114 105 115 106 <!-- There are more files available in the packages/ directory, if we want … … 137 128 138 129 <screen><userinput remap="install">cd .. 139 install -dv /usr/share/doc/udev-&udev-version; 140 install -m644 -v docs/writing_udev_rules/index.html \ 130 install -m644 -v -D docs/writing_udev_rules/index.html \ 141 131 /usr/share/doc/udev-&udev-version;/index.html</userinput></screen> 142 132 … … 155 145 firmware.sh, fstab_import, path_id, scsi_id, udevadm, udevd, 156 146 usb_id, vol_id, write_cd_rules, and write_net_rules</seg> 157 <seg>lib volume_id</seg>147 <seg>libudev and libvolume_id</seg> 158 148 <seg>/etc/udev</seg> 159 149 </seglistitem> … … 334 324 </varlistentry> 335 325 326 <varlistentry id="libudev"> 327 <term><command>libudev</command></term> 328 <listitem> 329 <para>A library interface to udev device information</para> 330 <indexterm zone="ch-system-udev libudev"> 331 <primary sortas="c-libudev">libudev</primary> 332 </indexterm> 333 </listitem> 334 </varlistentry> 335 336 336 <varlistentry id="libvolume_id"> 337 337 <term><command>libvolume_id</command></term> 338 338 <listitem> 339 <para> </para>339 <para>A library interface to read volume labels and uuids</para> 340 340 <indexterm zone="ch-system-udev libvolume_id"> 341 341 <primary sortas="c-libvolume_id">libvolume_id</primary>
Note:
See TracChangeset
for help on using the changeset viewer.