view images/lfs-bootstrap/mnt/build/udev.sh @ 24:6f975a65fe1d

Fixes for uClibc 0.9.33.1.
author Rob Landley <rob@landley.net>
date Thu, 19 Apr 2012 00:10:54 -0500
parents bcd2e358d57f
children
line wrap: on
line source

#!/bin/sh

mkdir -p /lib/udev/devices || exit 1
if [ ! -e /lib/udev/devices/null ]
then
  mknod -m0666 /lib/udev/devices/null c 1 3 || exit 1
fi
sed -i 's/ libudev-install-move-hook//' Makefile.in &&
install -d /lib/firmware /lib/udev/devices/pts /lib/udev/devices/shm &&
./configure --sysconfdir=/etc --sbindir=/sbin \
  --with-rootlibdir=/lib --libexecdir=/lib/udev --disable-extras \
  --disable-introspection &&
make -j $CPUS || exit 1
if [ ! -z "$CHECK" ]
then
  make check || exit 1
fi
make install &&
rmdir /usr/share/doc/udev &&
cd /mnt/packages/udev-config &&
make -j $CPUS install || exit 1

if [ ! -z "$DOCS" ]
then
  make install-doc
fi