Bootable multiboot2 kernel

This commit is contained in:
2022-01-02 17:25:07 +01:00
parent fdcb46d6f2
commit e0979ed357
10 changed files with 107 additions and 2 deletions

View File

@@ -13,4 +13,9 @@ end
define reset
monitor system_reset
end
python
import os
gdb.execute('file ' + os.environ['BUILDROOT'] + '/sysroot/kernel')
end

13
toolchain/setup-grub.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
mkdir -p ${BUILDROOT}/sysroot/boot/grub
cat > ${BUILDROOT}/sysroot/boot/grub/grub.cfg << EOF
set timeout=1
set default=0
menuentry "mittos64" {
multiboot2 /kernel
}
EOF