blob: cce1d7545db26feb56043c5d47e20b6462913680 (
plain) (
tree)
|
|
#! /bin/bash
cd $1
if [ ! -f ".config" ]; then
cp -v ../config_base .config | sed 's/^/--> /g'
fi
make olddefconfig | sed 's/^/--> /g'
flags=""
if [ "$2" != "" ]; then
flags="$flags \"KERNELRELEASE=$2\""
echo $flags POTATO
echo "appending 'KERNELRELEASE=$2'" | sed 's/^/--> /g'
fi
make KERNELRELEASE="$2" -j16 | sed 's/^/--> /g'
if [ "$?" != "0" ]; then
echo "MAKE FAIL []"
exit 1
fi
sudo make KERNELRELEASE="$2" -j16 modules_install | sed 's/^/--> /g'
if [ "$?" != "0" ]; then
echo "MAKE FAIL [modules_install]"
exit 1
fi
touch ../build.ok
|