X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fpkg%2Feudev;h=9cb94574e79ef4a50ff954c28b358e8e02e6d431;hb=fc7d8c678ca78bef7c6e7eaeeb579269b7c501be;hp=b36838f299a9f2d3e0a1e7a804d0ff86738954c3;hpb=085c7444d60ccd8512e49df7dfa6410934b86510;p=hvlinux.git diff --git a/stage1/pkg/eudev b/stage1/pkg/eudev index b36838f..9cb9457 100644 --- a/stage1/pkg/eudev +++ b/stage1/pkg/eudev @@ -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}} }