Update for new BUILD_DIR and SRC_DIR variables
[hvlinux.git] / stage1 / pkg / util-linux
index 079a343..3b57fa9 100644 (file)
@@ -1,29 +1,27 @@
 #!/bin/bash
 
-hvconfig_pre()
+# The following cache entries set the values for tests that do not run while
+# cross-compiling:
+hvconfig_cache()
 {
-    CONFIGURE_OPTS="\
-        --build=${CLFS_HOST} \
-        --host=${CLFS_TARGET} \
-        --enable-login-utils \
-        --disable-makeinstall-chown"
-}
-
-hvbuild()
-{
-    ${HVMAKE}
-    ${HVMAKE} DESTDIR=${LFS} install
+cat > ${BUILD_DIR}/config.cache << EOF
+scanf_cv_type_modifier=as
+EOF
 }
 
 hvbuild_post()
 {
-    # Copy Libraries and includes to /tools:
-    rm -fv ${LFS}/usr/lib/lib{blkid,uuid}.la
-    cp -v ${LFS}/usr/lib/lib{blkid,uuid}* /tools/lib
-    cp -v ${LFS}/lib/lib{blkid,uuid}* /tools/lib
-    ln -sfvT libblkid.so.1.1.0 /tools/lib/libblkid.so
-    ln -sfvT libuuid.so.1.3.0 /tools/lib/libuuid.so
-    install -dv /tools/include/{blkid,uuid}
-    cp -av ${LFS}/usr/include/blkid/* /tools/include/blkid/
-    cp -av ${LFS}/usr/include/uuid/* /tools/include/uuid/
+    # Create needed symlinks in sbin for a bootable system:
+    LINKS="agetty blkid fsck"
+
+    for link in ${LINKS}; do
+        ln -svfT /tools/sbin/${link} ${LFS}/sbin/${link}
+    done
+
+    # Create needed symlinks in bin for a bootable system:
+    LINKS="dmesg login mount"
+
+    for link in ${LINKS}; do
+        ln -svfT /tools/bin/${link} ${LFS}/bin/${link}
+    done
 }