Changeset 2576866 for chapter08/udev.xml


Ignore:
Timestamp:
12/31/2023 09:57:54 PM (8 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64
Children:
9f894d5
Parents:
00de269 (diff), 6fec3f5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/udev.xml

    r00de269 r2576866  
    126126    </variablelist>
    127127
     128    <para>Get the list of the shipped udev helpers and save it into an
     129    environment variable:</para>
     130
     131    <screen><userinput remap="make">udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \
     132               awk '{print $3}' | tr -d ",'" | grep -v 'udevadm')</userinput></screen>
     133
    128134    <para>Only build the components needed for udev:</para>
    129135
    130136    <screen><userinput remap="make">ninja udevadm systemd-hwdb                                           \
    131137      $(ninja -n | grep -Eo '(src/(lib)?udev|rules.d|hwdb.d)/[^ ]*') \
    132       $(realpath libudev.so --relative-to .)</userinput></screen>
     138      $(realpath libudev.so --relative-to .)                         \
     139      $udev_helpers udevadm</userinput></screen>
    133140
    134141    <para>Install the package:</para>
     
    148155                      -not -name '*power-switch*') /usr/lib/udev/rules.d/
    149156install -vm644 hwdb.d/*  ../hwdb.d/{*.hwdb,README} /usr/lib/udev/hwdb.d/
    150 install -vm755 $(find src/udev \
    151                       -type f -not -name '*.*')    /usr/lib/udev
     157install -vm755 $udev_helpers                       /usr/lib/udev
    152158install -vm644 ../network/99-default.link          /usr/lib/udev/network</userinput></screen>
    153159
Note: See TracChangeset for help on using the changeset viewer.