Clean eudev commented instructions
[hvlinux.git] / stage1 / pkg / eudev
index b36838f..9cb9457 100644 (file)
@@ -2,65 +2,18 @@
 
 hvconfig_pre()
 {
-    export BLKID_CFLAGS="-I/tools/include"
-    export BLKID_LIBS="-L/tools/lib -lblkid"
-    export KMOD_CFLAGS="-I/tools/include/"
-    export KMOD_LIBS="-L/tools/lib -lkmod"
+    # --disable-keymap: to remove gperf dependency
 
-    CONFIGURE_OPTS="\
-        --prefix=/usr \
-        --build=${CLFS_HOST} \
-        --host=${CLFS_TARGET} \
-        --with-rootprefix= \
-        --enable-split-usr \
-        --sysconfdir=/etc \
-        --libexecdir=/lib \
-        --bindir=/sbin \
-        --sbindir=/sbin \
-        --libdir=/lib \
+    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"
-
-    cd ${LFS_TMP}/${PACKAGE}
-
-}
-
-hvbuild()
-{
-    make
-    make DESTDIR=${LFS} install
 }
 
 hvbuild_post()
 {
-    install -dv ${LFS}/lib/{firmware,udev/devices}
-
-    # Static UDEV devices
-    if [ ! -c ${LFS}/lib/udev/devices/kmsg ]; then
-        mknod -m0666 ${LFS}/lib/udev/devices/kmsg c 1 11
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/fd ]; then
-        ln -sfv /proc/self/fd ${LFS}/lib/udev/devices/fd
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/stdin ]; then
-        ln -sfv /proc/self/fd/0 ${LFS}/lib/udev/devices/stdin
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/stdout ]; then
-        ln -sfv /proc/self/fd/1 ${LFS}/lib/udev/devices/stdout
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/stderr ]; then
-        ln -sfv /proc/self/fd/2 ${LFS}/lib/udev/devices/stderr
-    fi
-
-    if [ ! -h ${LFS}/lib/udev/devices/core ]; then
-        ln -sfv /proc/kcore ${LFS}/lib/udev/devices/core
-    fi
+    install -dv ${LFS}/tools/lib/{firmware,udev/devices/{pts,shm}}
 }