diff options
author | Cem Keylan <cem@ckyln.com> | 2020-01-20 10:47:12 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-01-20 10:47:12 +0300 |
commit | e0d23589fdcc4a9de176336e2d241dc37d125e7f (patch) | |
tree | ac9e9bd437c8703818af2828ba0695a0dfc22645 /cem/linux/build | |
parent | 92b636a6e77703797bb868950729910a50c7ecd6 (diff) | |
download | repository-e0d23589fdcc4a9de176336e2d241dc37d125e7f.tar.gz |
linux: add to repo
Diffstat (limited to 'cem/linux/build')
-rwxr-xr-x | cem/linux/build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cem/linux/build b/cem/linux/build new file mode 100755 index 0000000..d7bc96e --- /dev/null +++ b/cem/linux/build @@ -0,0 +1,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" |