blob: f4cba51274d7b908d41a8785ee9e15308d6baea3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#! /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" -j`nproc` | sed 's/^/--> /g'
if [ "$?" != "0" ]; then
echo "MAKE FAIL []"
exit 1
fi
sudo ZSTD_CLEVEL=13 make KERNELRELEASE="$2" -j16 INSTALL_MOD_STRIP=1 modules_install | sed 's/^/--> /g'
if [ "$?" != "0" ]; then
echo "MAKE FAIL [modules_install]"
exit 1
fi
touch ../build.ok
|