Add symlink to most recently compiled kernel in /boot
[hvlinux.git] / stage1 / pkg / udev
index 984e6f7..4333579 100644 (file)
@@ -1,22 +1,30 @@
 #!/bin/bash
 
-CC="${CC} ${CLFS_BUILDFLAGS}"
-
-CONFIGURE_OPTS="\
-    --prefix=/usr \
-    --build=${CLFS_HOST} \
-    --host=${CLFS_TARGET} \
-    --exec-prefix="" \
-    --sysconfdir=/etc \
-    --libexecdir=/lib/udev \
-    --libdir=/usr/lib \
-    --disable-extras \
-    --disable-introspection"
-
 hvconfig_pre()
 {
-    cd ${LFS_TMP}/${PACKAGE}
+    export LIBS="-lpthread"
+    export BLKID_CFLAGS="-I/tools/include/blkid"
+    export BLKID_LIBS="-L/tools/lib64 -lblkid"
+    export KMOD_CFLAGS="-I/tools/include"
+    export KMOD_LIBS="-L${CLFS}/lib64 -lkmod"
 
+    CONFIGURE_OPTS="\
+        --prefix=/usr \
+        --build=${CLFS_HOST} \
+        --host=${CLFS_TARGET} \
+        --exec-prefix="" \
+        --with-rootprefix=${LFS}
+        --sysconfdir=/etc \
+        --libexecdir=/lib \
+        --disable-introspection \
+        --with-usb-ids-path=no \
+        --with-pci-ids-path=no \
+        --disable-gtk-doc-html \
+        --disable-gudev \
+        --disable-keymap \
+        --disable-logging"
+
+    cd ${LFS_TMP}/${PACKAGE}
     install -dv ${LFS}/lib/{firmware,udev/devices/{pts,shm}}
 }