summaryrefslogtreecommitdiffstats
path: root/bin/build-preboot-kernel
blob: d03810d93dbb71a2da475fef63145e6ca2998a82 (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
#!/bin/bash

ROOT_DIR=$(readlink -f $(dirname $(readlink -f $0))/..)

. $ROOT_DIR/config/setup.conf



cd $ROOT_DIR/build
if [ ! -f linux-${kernel_version}.tar.bz2 ]; then
    echo "download kernel"
    wget -c "$kernel_url"
fi

if [ ! -d linux-${kernel_version} ]; then
  echo "unpack kernel"
  tar xjf linux-${kernel_version}.tar.bz2
fi

cd linux-${kernel_version}
cp ${ROOT_DIR}/config/kernel.config ./.config

linux32 make oldconfig
linux32 make -j 4 

cp arch/x86/boot/bzImage ../kernel-preboot-latest