From f6b3f935ef4566dc5ecfaa429ce9a46562dad30d Mon Sep 17 00:00:00 2001 From: Arthur Beck Date: Wed, 12 Feb 2025 06:58:09 -0600 Subject: [PATCH] bochs only works for x86 --- kernel/emulate | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/kernel/emulate b/kernel/emulate index 1150071..2bade6c 100755 --- a/kernel/emulate +++ b/kernel/emulate @@ -11,10 +11,12 @@ set -e cd ../emulation -# -f makes it so it won't error out if the file doesn't exist -rm -f bochsrc -cp bochsrc.template bochsrc +if [[ "$1" = "x86" ]]; then + # -f makes it so it won't error out if the file doesn't exist + rm -f bochsrc + cp bochsrc.template bochsrc -sed -i "s@%{BUILT_FILE}@aphrodite-$1.iso@g" bochsrc + sed -i "s@%{BUILT_FILE}@aphrodite-$1.iso@g" bochsrc -bochs -q \ No newline at end of file + bochs -q +fi \ No newline at end of file