#!/bin/sh
cd /linux
echo "### Cleaning Kernel tree"
echo "  # rm .config"
rm .config

echo "  # make clean"
make clean
echo "### Get kernel version"
make kernelversion
echo "### Create defconfig and prepare for module building"
echo "  # make x86_64_defconfig"
make x86_64_defconfig
echo "  # make modules_prepare"
make modules_prepare

echo "### Building DAHDI modules and installing"
cd /src
echo "  # make clean"
make clean
echo "  # make install KSRC=/linux"
make install KSRC=/linux

