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