summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-06 20:43:57 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-06 20:43:57 +0100
commit1271f4f3e3891b1de2f810c2063490c4a71a2518 (patch)
treee4d872454a8e2e1330fd16e8af360da3abe9bcd6 /Makefile
parent2a30fa85fd50919aa45fac4b961cc9508732b62a (diff)
vdi target for virtualbox.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c130e17..64ae1f9 100644
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,7 @@ FILLUP=./data/fill.bin
############ final image (default target) ############
-all: FoolOS.img FoolData.img
+all: FoolOS.vdi
new: clean all
@@ -113,6 +113,9 @@ FoolData.img: binfont.bin $(MP_BIN) userspace/ext2.img
dd if=binfont.bin of=$@ bs=512 seek=1 conv=notrunc
dd if=userspace/ext2.img of=$@ bs=512 seek=4 conv=notrunc #will end up at 0x80800 in ram
+FoolOS.vdi: FoolOS.img
+ VBoxManage convertfromraw FoolOS.img FoolOS.vdi
+
############ vm stuff ############
# run in our local bochs (we need cirrus support for our vesa mode)
@@ -128,7 +131,7 @@ clean_release:
make -C userspace clean
clean: clean_release
- -rm FoolOS.img
+ -rm FoolOS.img FoolOS.vdi
release: new
-mv FoolOS.img release/