Added additional flags to C compiler for ARM kernel library Makefile
[ZeXOS.git] / apps / play / make_img.sh
blob86c0ab3c0b1163619c6a948010ef417bcd1860d3
1 #!/bin/bash
3 if [ "$USER" = "root" ] ; then
5 # Folder name of your application
6 APPNAME="play"
8 # Compile source
9 make
11 # Optimized for 1,4MB floppy
12 dd if=/dev/zero of=$APPNAME.img bs=1440k count=1
13 mkfs.vfat $APPNAME.img
15 mkdir floppy
16 mount -oloop $APPNAME.img floppy
17 cp $APPNAME floppy
18 umount floppy
19 rmdir floppy
21 else
23 echo "Please start this script as root - it is needed for mount program"