aboutsummaryrefslogtreecommitdiff
path: root/cem/linux/build
blob: d7bc96ef31bef97ee8dd722ce6e11364fb900818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

make -j12
make INSTALL_MOD_PATH="$1/usr/lib/modules" modules_install

VERSION="$(sed 4q Makefile | grep VERSION | cut -d " " -f 3)"
PATCHLEVEL="$(sed 4q Makefile | grep PATCHLEVEL | cut -d " " -f 3)"
SUBLEVEL="$(sed 4q Makefile | grep SUBLEVEL | cut -d " " -f 3)"
KERNELVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"

for file in vmlinux System.map ; do
	install -Dm644 "$file" "$1/boot/$file-$KERNELVERSION"
done
install -Dm644 .config "$1/boot/Config-$KERNELVERSION"
install -Dm644 arch/x86/boot/bzImage "$1/boot/vmlinuz-$KERNELVERSION"