#!/bin/bash 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" 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 \ --disable-introspection \ --disable-gtk-doc-html \ --disable-gudev \ --disable-keymap \ --with-firmware-path=/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 }