Subversion Repositories Kolibri OS

Rev

Rev 6908 | Details | Compare with Previous | 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?
7129 dunkaist 9
echo 'lang fix en' > lang.inc
10
fasm -m 65536 bootbios.asm bootbios.bin
6908 ashmew2 11
fasm -m 65536 kernel.asm kernel.mnt
12
$KERPACK kernel.mnt kernel.mnt
13
 
14
[[ $replace -eq 1 ]] && {
15
    mntpt=$(mktemp -d)
16
 
17
    sudo mount -o loop $KOLIBRI_IMG $mntpt
18
    sudo mount -o remount,rw $mntpt
19
    sudo cp kernel.mnt ${mntpt}/KERNEL.MNT
20
    sudo umount $mntpt
21
    rmdir $mntpt
22
}