summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-12 22:06:14 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-12 22:06:14 +0100
commitf3fc47d50e4d840371c02bb0300b79e122fca842 (patch)
treed2e49477d2946822bc6efd3a8c1fb46e793b0fb6
parent529c47d944fa382c64b572ca60b8090b16cf418a (diff)
minor reordering
-rw-r--r--Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index ad0df1b..cd7ed53 100644
--- a/Makefile
+++ b/Makefile
@@ -54,21 +54,16 @@ MBR=./boot0/mbr.bin
STAGE2=./boot/stage2.bin
#multiprocessor binary entry
-
MP_BIN=./boot/mp.bin
#some fillup data (zeros)
-
FILLUP=./data/fill.bin
############ final image (default target) ############
-
all: FoolOS.vdi
-
new: clean all
-
newrun: clean run
############ nasm assembling rules ############
@@ -102,7 +97,7 @@ FoolOS.img: $(MBR) $(STAGE2) kernel.bin $(FILLUP) FoolData.img
cp $(FILLUP) $@
dd if=$(MBR) of=$@ bs=512 seek=0 conv=notrunc
dd if=$(STAGE2) of=$@ bs=512 seek=1 conv=notrunc
- dd if=kernel.bin of=$@ bs=512 seek=10 conv=notrunc #will end up at 0x100000 in ram (this is what the booloader starts loading secotr: 10)
+ dd if=kernel.bin of=$@ bs=512 seek=10 conv=notrunc #will end up at 0x100000 in ram (this is what the booloader starts loading secotr: 10)
dd if=FoolData.img of=$@ bs=512 seek=842 conv=notrunc #data starts at 0x168000
binfont.img: binfont.bin
@@ -113,16 +108,22 @@ 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
+
+############ virtual machines stuff ############
+
+# vdi image for VirtualBox
FoolOS.vdi: FoolOS.img
VBoxManage convertfromraw FoolOS.img FoolOS.vdi --uuid 2f11ca11-c35d-4240-b77e-79e37d32616c
-############ vm stuff ############
-
# run in our local bochs (we need cirrus support for our vesa mode)
-
run: all
~/opt/bochs-2.6.6/bochs -q -f bochs/bochsrc -rc bochs/bochsdebug
+############ create bootable usb image ############
+
+stick: FoolOS.img
+ cat FoolOS.img > $(USB_STICK) && sync
+ xxd $(USB_STICK) | head -n 50
############ cleanup ############
@@ -140,8 +141,3 @@ release: new
userspace/ext2.img:
make -C userspace
-############ test stuff ############
-stick: FoolOS.img
- cat FoolOS.img > $(USB_STICK) && sync
- xxd $(USB_STICK) | head -n 50
-