mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-26 02:39:55 +03:00
f208e0e454
* Move bios-related part of kernel.asm before B32 label to bootbios.asm file; * Move bx_from_load, boot_dev and kernel_restart_bootblock variables to BOOT_* 0x9000 block; * Update Tupfile.lua, Makefile, build.bat, build.sh accordingly; * Now bios and uefi loaders can jump to very first byte of the kernel. git-svn-id: svn://kolibrios.org@7129 a494cfbc-eb01-0410-851d-a64ba20cac60
23 lines
583 B
Bash
Executable File
23 lines
583 B
Bash
Executable File
#!/bin/sh
|
|
# Compile the KolibriOS kernel on Linux
|
|
# 2017, The KolibriOS team
|
|
|
|
KERPACK=$HOME/kolibrios/programs/other/kpack/kerpack_linux/kerpack
|
|
KOLIBRI_IMG=$HOME/nightly/kolibri.img
|
|
|
|
replace=0; # Replace kernel in the image file?
|
|
echo 'lang fix en' > lang.inc
|
|
fasm -m 65536 bootbios.asm bootbios.bin
|
|
fasm -m 65536 kernel.asm kernel.mnt
|
|
$KERPACK kernel.mnt kernel.mnt
|
|
|
|
[[ $replace -eq 1 ]] && {
|
|
mntpt=$(mktemp -d)
|
|
|
|
sudo mount -o loop $KOLIBRI_IMG $mntpt
|
|
sudo mount -o remount,rw $mntpt
|
|
sudo cp kernel.mnt ${mntpt}/KERNEL.MNT
|
|
sudo umount $mntpt
|
|
rmdir $mntpt
|
|
}
|