diff options
| author | Ada Christine <adachristine18@gmail.com> | 2026-05-18 18:20:37 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2026-05-18 18:20:37 +0000 |
| commit | c8a25997dae70b7083725ebaa030ff363134a191 (patch) | |
| tree | abf7c2cc6a91ec9a1cd8a4a4d661e428b86c5dfd /debug.sh | |
| parent | 9fbfc6e951e565ef98c49c1dcfc4b6a39514f17d (diff) | |
build and debug system
Diffstat (limited to 'debug.sh')
| -rwxr-xr-x | debug.sh | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/debug.sh b/debug.sh deleted file mode 100755 index dd662a6..0000000 --- a/debug.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -make -C kc/core && -make -C kc/boot && -make -C loader && - -BOOT_DIR=EFI/BOOT -BOOT_FILE=BOOTX64.EFI -SYS_DIR=adasoft/sophia -OVMF_DIR=/usr/share/ovmf/x64 - -LOADER_FILE=loader/loader.efi - -SHIM_FILE=kc/boot/efi.os -KERNEL_FILE=kc/core/kernel.os - -tempdir=$(mktemp -d) && -rundir=${tempdir}/run && - -cp ${OVMF_DIR}/OVMF_VARS.fd ${tempdir} && - -mkdir -p ${rundir}/${BOOT_DIR} ${rundir}/${SYS_DIR} && -cp ${LOADER_FILE} ${rundir}/${BOOT_DIR}/${BOOT_FILE} && -cp ${SHIM_FILE} ${KERNEL_FILE} ${rundir}/${SYS_DIR} && - -qemu-system-x86_64 -d int \ - -drive if=pflash,format=raw,unit=0,file=/usr/share/ovmf/x64/OVMF_CODE.fd,readonly=on \ - -drive if=pflash,format=raw,unit=1,file=${tempdir}/OVMF_VARS.fd \ - -net none -drive file=fat:rw:${rundir} -monitor stdio \ - -serial file:sophia.log -no-shutdown -no-reboot -s -S - -rm -rf ${tempdir} - |
