Subversion Repositories Kolibri OS

Rev

Rev 6908 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  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. echo 'lang fix en' > lang.inc
  10. fasm -m 65536 bootbios.asm bootbios.bin
  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. }
  23.