Changes in chapter08/udev.xml [7152faa:4bc51b9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/udev.xml
r7152faa r4bc51b9 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 3 3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ … … 55 55 56 56 <screen><userinput remap="pre">sed '/systemd-sysctl/s/^/#/' -i rules.d/99-systemd.rules.in</userinput></screen> 57 58 <para>Adjust the hardcoded paths to network configuration files for the59 standalone udev installation:</para>60 61 <screen><userinput remap="pre">sed '/NETWORK_DIRS/s/systemd/udev/' -i src/basic/path-lookup.h</userinput></screen>62 57 63 58 <para>Prepare Udev for compilation:</para> … … 126 121 </variablelist> 127 122 128 <para>Get the list of the shipped udev helpers and save it into an129 environment variable (exporting it is not strictly necessary, but it makes130 building as a regular user or using a package manager easier):</para>131 132 <screen><userinput remap="make">export udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \133 awk '{print $3}' | tr -d ",'" | grep -v 'udevadm')</userinput></screen>134 135 123 <para>Only build the components needed for udev:</para> 136 124 137 125 <screen><userinput remap="make">ninja udevadm systemd-hwdb \ 138 126 $(ninja -n | grep -Eo '(src/(lib)?udev|rules.d|hwdb.d)/[^ ]*') \ 139 $(realpath libudev.so --relative-to .) \ 140 $udev_helpers</userinput></screen> 127 $(realpath libudev.so --relative-to .)</userinput></screen> 141 128 142 129 <para>Install the package:</para> 143 130 144 <screen><userinput remap="install">install -vm755 -d {/usr/lib,/etc}/udev/{hwdb .d,rules.d,network}131 <screen><userinput remap="install">install -vm755 -d {/usr/lib,/etc}/udev/{hwdb,rules}.d 145 132 install -vm755 -d /usr/{lib,share}/pkgconfig 146 133 install -vm755 udevadm /usr/bin/ … … 156 143 -not -name '*power-switch*') /usr/lib/udev/rules.d/ 157 144 install -vm644 hwdb.d/* ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/ 158 install -vm755 $ udev_helpers /usr/lib/udev159 install -vm644 ../network/99-default.link /usr/lib/udev/network</userinput></screen>145 install -vm755 $(find src/udev \ 146 -type f -not -name '*.*') /usr/lib/udev</userinput></screen> 160 147 161 148 <para>Install some custom rules and support files useful in an LFS … … 172 159 --no-same-owner --strip-components=1 \ 173 160 -C /usr/share/man --wildcards '*/udev*' '*/libudev*' \ 174 '*/systemd.link.5' \175 161 '*/systemd-'{hwdb,udevd.service}.8 176 177 sed 's|systemd/network|udev/network|' \178 /usr/share/man/man5/systemd.link.5 \179 > /usr/share/man/man5/udev.link.5180 181 162 sed 's/systemd\(\\\?-\)/udev\1/' /usr/share/man/man8/systemd-hwdb.8 \ 182 163 > /usr/share/man/man8/udev-hwdb.8 183 184 164 sed 's|lib.*udevd|sbin/udevd|' \ 185 165 /usr/share/man/man8/systemd-udevd.service.8 \ 186 166 > /usr/share/man/man8/udevd.8 187 188 rm /usr/share/man/man*/systemd*</userinput></screen> 189 190 <para>Finally, unset the <envar>udev_helpers</envar> variable:</para> 191 192 <!-- remap="make" seems confusing but we don't have sth. like 193 remap="clean". --> 194 <screen><userinput remap="install">unset udev_helpers</userinput></screen> 167 rm /usr/share/man/man8/systemd-*.8</userinput></screen> 195 168 196 169 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.