Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6908 ashmew2 1
#!/bin/sh
2
# Compile the KolibriOS kernel on Linux
3
# 2017, The KolibriOS team
4
 
5
KERPACK=$HOME/kolibrios/programs/other/kpack/kerpack_linux/kerpack
6
KOLIBRI_IMG=$HOME/nightly/kolibri.img
7
 
8
replace=0; # Replace kernel in the image file?
9
fasm -m 65536 kernel.asm kernel.mnt
10
$KERPACK kernel.mnt kernel.mnt
11
 
12
[[ $replace -eq 1 ]] && {
13
    mntpt=$(mktemp -d)
14
 
15
    sudo mount -o loop $KOLIBRI_IMG $mntpt
16
    sudo mount -o remount,rw $mntpt
17
    sudo cp kernel.mnt ${mntpt}/KERNEL.MNT
18
    sudo umount $mntpt
19
    rmdir $mntpt
20
}