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 \
+ --prefix=${LFS} \
+ --with-sysroot=${LFS} \
--build=${CLFS_HOST} \
--host=${CLFS_TARGET} \
- --with-rootprefix= \
- --enable-split-usr \
- --sysconfdir=/etc \
- --libexecdir=/lib \
- --bindir=/sbin \
- --sbindir=/sbin \
- --libdir=/lib \
+ --bindir=${LFS}/sbin \
+ --datarootdir=${LFS}/usr/share \
+ --includedir=${LFS}/usr/include \
--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
+ install -dv ${LFS}/lib/{firmware,udev/devices/{pts,shm}}
- if [ ! -h ${LFS}/lib/udev/devices/core ]; then
- ln -sfv /proc/kcore ${LFS}/lib/udev/devices/core
- fi
+ # Move udev pkgconfig file to /usr
+ install -dv ${LFS}/usr/lib/pkgconfig
+ mv ${LFS}/lib/pkgconfig/libudev.pc ${LFS}/usr/lib/pkgconfig
+ rmdir --ignore-fail-on-non-empty ${LFS}/lib/pkgconfig
}
--- /dev/null
+#!/bin/bash
+
+hvconfig_pre()
+{
+ CONFIGURE_OPTS="\
+ --prefix=/usr \
+ --bindir=/sbin \
+ --sbindir=/sbin \
+ --libdir=/usr/lib \
+ --sysconfdir=/etc \
+ --libexecdir=/lib \
+ --with-rootlibdir=/lib \
+ --enable-split-usr \
+ --enable-libkmod \
+ --enable-rule_generator \
+ --enable-keymap \
+ --disable-introspection \
+ --disable-gtk-doc-html \
+ --disable-gudev \
+ --with-firmware-path=/lib/firmware"
+}
+
+hvbuild_post()
+{
+ install -v -m755 ${SCRDIR}/misc/udev/udev-create-persistent-net.sh \
+ /usr/local/bin
+ install -v -m644 ${SCRDIR}/misc/udev/10-media-automount.rules \
+ /etc/udev/rules.d/
+ install -v -m644 ${SCRDIR}/misc/udev/11-sd-card-automount.rules \
+ /etc/udev/rules.d/
+
+ sed -i -e "s/\(SYMLINK+=\"cdrom\)\"/\1 dvd\"/" \
+ /lib/udev/rules.d/60-cdrom_id.rules
+}
+++ /dev/null
-#!/bin/bash
-
-hvconfig_pre()
-{
- # --disable-keymap: to remove gperf dependency
-
- CONFIGURE_OPTS="\
- ${CONFIGURE_OPTS} \
- --exec-prefix="" \
- --libexecdir=/lib \
- --with-usb-ids-path=no \
- --with-pci-ids-path=no \
- --disable-keymap \
- --disable-introspection"
-}
-
-hvbuild_post()
-{
- install -v -m755 ${SCRDIR}/misc/udev/udev-create-persistent-net.sh \
- /usr/local/bin
- install -v -m644 ${SCRDIR}/misc/udev/10-media-automount.rules \
- /etc/udev/rules.d/
- install -v -m644 ${SCRDIR}/misc/udev/11-sd-card-automount.rules \
- /etc/udev/rules.d/
-
- mv /lib/pkgconfig/{gudev-*.pc,libudev.pc} /usr/lib/pkgconfig
- rmdir /lib/pkgconfig
-
- sed -i -e "s/\(SYMLINK+=\"cdrom\)\"/\1 dvd\"/" \
- /lib/udev/rules.d/60-cdrom_id.rules
-}