Correction problème avec make oldconfig pour architecture autre que le HOST.
[hvlinux.git] / stage1 / pkg / udev
index 0d46963..4333579 100644 (file)
@@ -1,26 +1,31 @@
 #!/bin/bash
 
-configure_pre()
+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"
 
-    install -dv ${LFS}/lib/{firmware,udev/devices/{pts,shm}}
-}
-
-hvconfigure()
-{
-    cd ${LFS_TMP}/${PACKAGE}-build
-
-    CC="${CC} ${CLFS_BUILDFLAGS}" ../${PACKAGE}/configure \
+    CONFIGURE_OPTS="\
         --prefix=/usr \
         --build=${CLFS_HOST} \
         --host=${CLFS_TARGET} \
         --exec-prefix="" \
+        --with-rootprefix=${LFS}
         --sysconfdir=/etc \
-        --libexecdir=/lib/udev \
-        --libdir=/usr/lib \
-        --disable-extras \
-        --disable-introspection
+        --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}}
 }
 
 hvbuild()