summaryrefslogtreecommitdiff
path: root/sos-code-article6.75/extra/dot.mkvars
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-03-28 17:16:09 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-03-28 17:16:09 +0100
commitacb5161d7384e6b6352c0a9f3cc067621fbf28ad (patch)
tree6b66a66927e98b84d53f97da411b58c1b7ad3c53 /sos-code-article6.75/extra/dot.mkvars
parenta8968330aff45e0b8cf278f49fa337d5fcb9bfd8 (diff)
downloadSOS-acb5161d7384e6b6352c0a9f3cc067621fbf28ad.tar.gz
SOS-acb5161d7384e6b6352c0a9f3cc067621fbf28ad.zip
Import and compile article 6.75HEADmaster
Diffstat (limited to 'sos-code-article6.75/extra/dot.mkvars')
-rw-r--r--sos-code-article6.75/extra/dot.mkvars29
1 files changed, 29 insertions, 0 deletions
diff --git a/sos-code-article6.75/extra/dot.mkvars b/sos-code-article6.75/extra/dot.mkvars
new file mode 100644
index 0000000..1f7dca5
--- /dev/null
+++ b/sos-code-article6.75/extra/dot.mkvars
@@ -0,0 +1,29 @@
+# For cross-compilation and/or installations without grub available,
+# copy this file as .mkvars to the root directory of the SOS sources,
+# and customize the CC/LD/... variables. You still need the mtools
+# installed and running
+
+CC := i586-gnu-gcc
+LD := i586-gnu-ld
+OBJCOPY := i586-gnu-objcopy
+CFLAGS += -O3
+
+# Configuration of mtools
+MTOOLSRC = extra/mtoolsrc
+export MTOOLSRC
+
+$(MULTIBOOT_IMAGE): $(KERNEL_OBJ) menu.txt
+ gzip -dc < extra/grub.img.gz > $@
+ mcopy menu.txt v:/boot/grub/
+ mmd v:/system
+ mcopy sos.elf v:/system/sos.elf
+
+menu.txt:
+ echo timeout 0 > $@
+ echo default 0 >> $@
+ echo title SOS >> $@
+ echo "root (fd0)" >> $@
+ echo kernel /system/sos.elf >> $@
+
+runbochs: all
+ echo c | bochs -q