From 864fb03a3305b65fedbe434ebb87510ac13fe865 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Wed, 23 Dec 2009 22:26:43 +0100 Subject: Initial commit. --- floppy/SConscript | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 floppy/SConscript (limited to 'floppy/SConscript') 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') -- cgit v1.2.3