Add nice logs
diff --git a/src/kernel/Jmk b/src/kernel/Jmk
index 3b718b8..8beb214 100644
--- a/src/kernel/Jmk
+++ b/src/kernel/Jmk
@@ -27,7 +27,7 @@
LDFLAGS += -Tlink.ld -melf_i386
ASMFLAGS += -felf -Fdwarf
-QEMUFLAGS = -d cpu_reset -hda hd0_$(FS).img
+QEMUFLAGS = -hda hd0_$(FS).img
OBJECTS = boot.o \
main.o \
@@ -63,7 +63,7 @@
qemu-system-i386 -s -S -kernel kernel.elf
debug: kernel.elf
- qemu-system-i386 -s -S -kernel kernel.elf &
+ qemu-system-i386 -s -S $(QEMUFLAGS) -kernel kernel.elf &
@echo run "target remote localhost:1234" to connect to qemu
gdb $<
@pkill qemu-system-i38
@@ -74,7 +74,7 @@
@$(patsubst hd0_%.img,mkfs.%,$@) $@
qemu: kernel.elf hd0_$(FS).img
- qemu-system-i386 $(QEMUFLAGS) -monitor stdio -kernel kernel.elf -no-reboot
+ qemu-system-i386 $(QEMUFLAGS) -d cpu_reset -monitor stdio -kernel kernel.elf -no-reboot
qemu-iso: install
qemu-system-i386 $(QEMUFLAGS) -monitor stdio $(ROOT)/bin/bluejay.iso
@@ -84,9 +84,9 @@
mount: hd0_$(FS).img
status_log(MOUNT, $^ $(ROOT)/mnt)
- @if [ $(whoami) = root ]; then echo "DON'T RUN THIS AS ROOT" && exit 1; fi
+ @if [ "$(whoami)" = root ]; then echo "DON'T RUN THIS AS ROOT" && exit 1; fi
@mkdir -p $(ROOT)/mnt
- @sudo mount $^ $(ROOT)/mnt -o rw,uid=$$(id -u),gid=$$(id -g)
+ @mount $^ $(ROOT)/mnt
umount:
status_log(UMOUNT, $(ROOT)/mnt)