Rev 6908 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6908 | Rev 7129 | ||
---|---|---|---|
1 | #!/bin/sh |
1 | #!/bin/sh |
2 | # Compile the KolibriOS kernel on Linux |
2 | # Compile the KolibriOS kernel on Linux |
3 | # 2017, The KolibriOS team |
3 | # 2017, The KolibriOS team |
4 | 4 | ||
5 | KERPACK=$HOME/kolibrios/programs/other/kpack/kerpack_linux/kerpack |
5 | KERPACK=$HOME/kolibrios/programs/other/kpack/kerpack_linux/kerpack |
6 | KOLIBRI_IMG=$HOME/nightly/kolibri.img |
6 | KOLIBRI_IMG=$HOME/nightly/kolibri.img |
7 | 7 | ||
8 | replace=0; # Replace kernel in the image file? |
8 | replace=0; # Replace kernel in the image file? |
- | 9 | echo 'lang fix en' > lang.inc |
|
- | 10 | fasm -m 65536 bootbios.asm bootbios.bin |
|
9 | fasm -m 65536 kernel.asm kernel.mnt |
11 | fasm -m 65536 kernel.asm kernel.mnt |
10 | $KERPACK kernel.mnt kernel.mnt |
12 | $KERPACK kernel.mnt kernel.mnt |
11 | 13 | ||
12 | [[ $replace -eq 1 ]] && { |
14 | [[ $replace -eq 1 ]] && { |
13 | mntpt=$(mktemp -d) |
15 | mntpt=$(mktemp -d) |
14 | 16 | ||
15 | sudo mount -o loop $KOLIBRI_IMG $mntpt |
17 | sudo mount -o loop $KOLIBRI_IMG $mntpt |
16 | sudo mount -o remount,rw $mntpt |
18 | sudo mount -o remount,rw $mntpt |
17 | sudo cp kernel.mnt ${mntpt}/KERNEL.MNT |
19 | sudo cp kernel.mnt ${mntpt}/KERNEL.MNT |
18 | sudo umount $mntpt |
20 | sudo umount $mntpt |
19 | rmdir $mntpt |
21 | rmdir $mntpt |
20 | } |
22 | } |