mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-08-04 01:36:10 -04:00
Add some utility targets
This commit is contained in:
parent
7dddf0979d
commit
a84df385f1
13
Makefile
13
Makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: default clean force_look qemu bochs debug
|
||||
.PHONY: default clean force_look qemu bochs debug mount_fat check_fat umount_fat
|
||||
|
||||
default: thor.flp
|
||||
|
||||
@ -59,6 +59,17 @@ bochs: default
|
||||
bochs_simple: default
|
||||
bochs -qf tools/bochsrc.txt
|
||||
|
||||
mount_fat:
|
||||
sudo /sbin/losetup -o1048576 /dev/loop0 hdd.img
|
||||
sudo /bin/mount -t vfat /dev/loop0 mnt/fake/
|
||||
|
||||
check_fat:
|
||||
sudo fsck.fat -n /dev/loop0
|
||||
|
||||
umount_fat:
|
||||
sudo /bin/umount mnt/fake/
|
||||
sudo /sbin/losetup -d /dev/loop0
|
||||
|
||||
debug: default
|
||||
echo "c" > commands
|
||||
bochs -qf tools/debug_bochsrc.txt -rc commands
|
||||
|
Loading…
x
Reference in New Issue
Block a user