# udev
# Udev cold-plugging script
-DAEMON=/sbin/udevd
+DAEMON=/tools/sbin/udevd
DAEMON_DESC=UDEV
DAEMON_OPTS="--daemon"
mkdir -p /dev/udev/queue &&
# Configure all devices
- /sbin/udevadm trigger --action=add --type=subsystems &&
- /sbin/udevadm trigger --action=add --type=devices &&
+ /tools/sbin/udevadm trigger --action=add --type=subsystems &&
+ /tools/sbin/udevadm trigger --action=add --type=devices &&
# Now wait for udevd to process the uevents we triggered
- /sbin/udevadm settle
+ /tools/sbin/udevadm settle
}
udev_start()
boot_failure "FAILURE: Unable to create devices without a SysFS filesystem."
fi
- cmd_run_log_box "Copying static /dev entries" cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev
+ cmd_run_log_box "Copying static /dev entries" cp --preserve=all --recursive --remove-destination /tools/lib/udev/devices/* /dev
cmd_run_log_box "Setting permissons on /dev/shm" chmod 1777 /dev/shm
cmd_run_log_box_warn "${DAEMON_DESC} start" udev_start
ipkg ${E2FSPROGS}
ipkg -m noac ${SYSVINIT}
ipkg ${KMOD}
-
-LDFLAGS="-Wl,-rpath,/tools/lib:/lib" \
- ipkg ${EUDEV}
+ipkg ${EUDEV}
ipkg -c -m noac ${KERNEL}
rscr once "Creating default users" create-users
{
# --disable-keymap: to remove gperf dependency
- CONFIGURE_OPTS="\
- --prefix=${LFS} \
- --with-sysroot=${LFS} \
- --build=${CLFS_HOST} \
- --host=${CLFS_TARGET} \
- --bindir=${LFS}/sbin \
- --datarootdir=${LFS}/usr/share \
- --includedir=${LFS}/usr/include \
+ CONFIGURE_OPTS+="\
--disable-introspection \
--disable-gtk-doc-html \
--disable-gudev \
--disable-keymap \
- --with-firmware-path=/lib/firmware \
+ --with-firmware-path=/tools/lib/firmware \
--enable-libkmod"
}
hvbuild_post()
{
- install -dv ${LFS}/lib/{firmware,udev/devices/{pts,shm}}
+ install -dv ${LFS}/tools/lib/{firmware,udev/devices/{pts,shm}}
# Move udev pkgconfig file to /usr
- install -dv ${LFS}/usr/lib/pkgconfig
- mv ${LFS}/lib/pkgconfig/libudev.pc ${LFS}/usr/lib/pkgconfig
- rmdir --ignore-fail-on-non-empty ${LFS}/lib/pkgconfig
+ #install -dv ${LFS}/usr/lib/pkgconfig
+ #mv ${LFS}/lib/pkgconfig/libudev.pc ${LFS}/usr/lib/pkgconfig
+ #rmdir --ignore-fail-on-non-empty ${LFS}/lib/pkgconfig
}