aboutsummaryrefslogtreecommitdiff
path: root/scripts/linux.sh
blob: d701216aa9d5fda7ae6f13fe361e0a357aed6121 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
. ./.vars
VERSION=4.16.2
KERNEL_TAR_PKG="${build_dir}/linux-$VERSION/linux-$VERSION-x86.tar"
cd $build_dir
if ! [ -d "${build_dir}/linux-$VERSION" ] ; then
	xz -dc < "${dist_dir}/linux-$VERSION.tar.xz" | tar -xvf -
fi
cd "linux-$VERSION"
if ! [ -e ./.config ] ; then
	cp "${base_dir}/kernel-config" ./.config
fi
if ! [ -f "$KERNEL_TAR_PKG" ] ; then
	make olddefconfig
	make -j$(nproc) bzImage modules
	make tar-pkg
fi
cd "$prefix"
tar -xvf - < "$KERNEL_TAR_PKG"