|
@ -21,8 +21,11 @@ |
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
udev_pm() { |
|
|
udev_pm() { |
|
|
mkdir -p $root/lib/udev/devices |
|
|
|
|
|
# the deletion and re-creation is needed for stage 9 rebuilds |
|
|
# the deletion and re-creation is needed for stage 9 rebuilds |
|
|
|
|
|
rm -rf $root/lib/{firmware,udev/devices/{pts,shm,bus/usb}} |
|
|
|
|
|
mkdir -p $root/lib/{firmware,udev/devices/{pts,shm,bus/usb}} |
|
|
|
|
|
rm -f $root/lib/udev/devices/null |
|
|
|
|
|
mknod -m0666 $root/lib/udev/devices/null c 1 3 |
|
|
rm -f $root/lib/udev/devices/fd |
|
|
rm -f $root/lib/udev/devices/fd |
|
|
ln -sv /proc/self/fd $root/lib/udev/devices/fd |
|
|
ln -sv /proc/self/fd $root/lib/udev/devices/fd |
|
|
rm -f $root/lib/udev/devices/core |
|
|
rm -f $root/lib/udev/devices/core |
|
@ -33,25 +36,29 @@ udev_pm() { |
|
|
ln -sv /proc/self/fd/1 $root/lib/udev/devices/stdout |
|
|
ln -sv /proc/self/fd/1 $root/lib/udev/devices/stdout |
|
|
rm -f $root/lib/udev/devices/stderr |
|
|
rm -f $root/lib/udev/devices/stderr |
|
|
ln -sv /proc/self/fd/2 $root/lib/udev/devices/stderr |
|
|
ln -sv /proc/self/fd/2 $root/lib/udev/devices/stderr |
|
|
rm -rf $root/lib/udev/devices/{pts,shm} |
|
|
|
|
|
mkdir -p $root/lib/udev/devices/{pts,shm,bus/usb} |
|
|
|
|
|
# Somehow on boot-up this prevents errors like: |
|
|
# Somehow on boot-up this prevents errors like: |
|
|
# cp: will not create hard link `/dev/pts' to directory `/dev/bus/usb' |
|
|
# cp: will not create hard link `/dev/pts' to directory `/dev/bus/usb' |
|
|
touch $root/lib/udev/devices/{pts,shm,bus/usb}/.empty |
|
|
touch $root/lib/udev/devices/{pts,shm,bus/usb}/.empty |
|
|
|
|
|
|
|
|
|
|
|
# Install LFS-specific rules and docs. |
|
|
|
|
|
# tar $taropt $archdir/udev-config-$udev_config_ver.tar.bz2 |
|
|
|
|
|
# cd udev-config-$udev_config_ver |
|
|
|
|
|
# make install |
|
|
|
|
|
# make install-doc |
|
|
|
|
|
# make install-extra-doc |
|
|
|
|
|
|
|
|
cp -v $confdir/rules/* $root/etc/udev/rules.d/ |
|
|
cp -v $confdir/rules/* $root/etc/udev/rules.d/ |
|
|
cp -v $confdir/scripts/*.sh $confdir/scripts/modalias_* $root/lib/udev/ |
|
|
cp -v $confdir/scripts/*.sh $confdir/scripts/modalias_* $root/lib/udev/ |
|
|
chmod +x $root/lib/udev/*.sh $root/lib/udev/modalias_* |
|
|
chmod +x $root/lib/udev/*.sh $root/lib/udev/modalias_* |
|
|
|
|
|
|
|
|
mkdir -p $root/lib/firmware |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
udev_prem() { |
|
|
udev_prem() { |
|
|
for i in $(find extras/ -name Makefile -maxdepth 2); do |
|
|
|
|
|
|
|
|
for i in $(find extras/ -maxdepth 2 -name Makefile); do |
|
|
udev_extras="${udev_extras} $(dirname ${i})" |
|
|
udev_extras="${udev_extras} $(dirname ${i})" |
|
|
done |
|
|
done |
|
|
|
|
|
# DESTDIR=/ prevents kill and restart of udev. |
|
|
var_append makeopt " " 'EXTRAS="${udev_extras}"' |
|
|
var_append makeopt " " 'EXTRAS="${udev_extras}"' |
|
|
var_append makeinstopt " " 'EXTRAS="${udev_extras}"' |
|
|
|
|
|
|
|
|
var_append makeinstopt " " 'DESTDIR=/ EXTRAS="${udev_extras}"' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
prefix="" |
|
|
prefix="" |
|
|