summaryrefslogtreecommitdiff
path: root/floppy
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2009-12-23 22:26:43 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2009-12-23 22:31:02 +0100
commit864fb03a3305b65fedbe434ebb87510ac13fe865 (patch)
tree6b0b2b0dccf6fd1835a4e86ba808fbad2cba89cb /floppy
Initial commit.
Diffstat (limited to 'floppy')
-rw-r--r--floppy/SConscript24
-rw-r--r--floppy/empty.imgbin0 -> 1474560 bytes
-rw-r--r--floppy/grub.conf9
3 files changed, 33 insertions, 0 deletions
diff --git a/floppy/SConscript b/floppy/SConscript
new file mode 100644
index 0000000..2021b18
--- /dev/null
+++ b/floppy/SConscript
@@ -0,0 +1,24 @@
+Import('env')
+
+env = env.Clone(
+ BASE_IMAGE = File('empty.img').path,
+ MOUNTPOINT = Dir('mountpoint').path,
+ GRUB_CONF = File('grub.conf').path,
+)
+
+floppy = env.Command(
+ 'floppy.img',
+ ['#kernel/kernel'],
+ [
+ 'cp $BASE_IMAGE $TARGET',
+ 'mkdir $MOUNTPOINT',
+ 'hdiutil attach -quiet -mountpoint $MOUNTPOINT $TARGET',
+ 'cp $SOURCE $MOUNTPOINT/',
+ 'cp $GRUB_CONF $MOUNTPOINT/boot/grub/',
+ 'hdiutil detach -quiet $MOUNTPOINT',
+ 'rmdir $MOUNTPOINT',
+ ]
+)
+
+Depends(floppy, 'empty.img')
+Depends(floppy, 'grub.conf')
diff --git a/floppy/empty.img b/floppy/empty.img
new file mode 100644
index 0000000..d7156a1
--- /dev/null
+++ b/floppy/empty.img
Binary files differ
diff --git a/floppy/grub.conf b/floppy/grub.conf
new file mode 100644
index 0000000..476404b
--- /dev/null
+++ b/floppy/grub.conf
@@ -0,0 +1,9 @@
+default 0
+timeout 1
+serial
+terminal --dumb serial
+hiddenmenu
+
+title=Potetmos
+ root (fd0)
+ kernel /kernel