#!/bin/sh

. config/options

$SCRIPTS/build linux

if [ "$DEBUG" = yes ]; then
  DEBUG_CONFIG="--enable-debug"
else
  DEBUG_CONFIG="--disable-debug"
fi

export MAKEFLAGS=-j1

cd $BUILD/$1-[0-9]*
do_configure \
            --without-x \
            --with-driver=userspace \
            --with-kerneldir=$(kernel_path) \
            $DEBUG_CONFIG \

make
make_install
