4 kerneldir
=/lib
/modules
/$
(uname
-r)/build
9 arch
=`uname -m | sed -e s/i.86/i386/`
18 --arch=ARCH architecture to compile for ($arch)
19 --cross-prefix=PREFIX cross compiler prefix
20 --cc=CC c compiler to use ($cc)
21 --ld=LD ld linker to use ($ld)
22 --prefix=PREFIX where to install things ($prefix)
23 --kerneldir=DIR kernel build directory for kvm.h ($kerneldir)
28 while [[ "$1" = -* ]]; do
31 if [[ "$opt" = *=* ]]; then
66 cat <<EOF > config.mak
68 KERNELDIR=$(readlink -f $kerneldir)
73 OBJCOPY=$cross_prefix$objcopy