write_default_files.sh (1526B)
1 #!/bin/bash 2 3 # This scripts writes a selection of applications both from the main 4 # distribution and the contrib directory to an SD card. 5 6 KFS_CMD="sudo ../tools/kfs.py" 7 DEVICE=$1 8 SW_ASM=../sw/asm 9 SW_C=../sw/c 10 SW_CONTRIB_ASM=./asm 11 SW_CONTRIB_C=./c 12 SW_FORTH=./forth 13 14 for i in 10print serial_line_echo ttt via_test 15 do 16 pushd ${SW_ASM}/$i 17 make clean all 18 popd 19 done 20 21 for i in snake 22 do 23 pushd ${SW_C}/$i 24 make clean all 25 popd 26 done 27 28 29 for i in microchess Tiny-BASIC 30 do 31 pushd ${SW_CONTRIB_ASM}/$i 32 make clean all 33 popd 34 done 35 36 for i in eliza mmind wumpus abandoned_farmhouse 37 do 38 pushd ${SW_CONTRIB_C}/$i 39 make clean all 40 popd 41 done 42 43 pushd ${SW_FORTH} 44 make clean all 45 popd 46 47 # ${KFS_CMD} ${DEVICE} format 48 ${KFS_CMD} ${DEVICE} store 0 "Tic Tac Toe" ${SW_ASM}/ttt/ttt.bin 49 ${KFS_CMD} ${DEVICE} store 1 "Snake" ${SW_C}/snake/snake.bin 50 ${KFS_CMD} ${DEVICE} store 2 "10PRINT" ${SW_ASM}/10print/10print.bin 51 ${KFS_CMD} ${DEVICE} store 3 "Microchess" ${SW_CONTRIB_ASM}/microchess/microchess.bin 52 ${KFS_CMD} ${DEVICE} store 4 "Eliza" ${SW_CONTRIB_C}/eliza/eliza.bin 53 ${KFS_CMD} ${DEVICE} store 5 "Wumpus" ${SW_CONTRIB_C}/wumpus/wumpus.bin 54 ${KFS_CMD} ${DEVICE} store 6 "Master Mind" ${SW_CONTRIB_C}/mmind/mmind.bin 55 ${KFS_CMD} ${DEVICE} store 7 "The Abandoned Farmhouse Adventure" ${SW_CONTRIB_C}/abandoned_farmhouse/adventure.bin 56 ${KFS_CMD} ${DEVICE} store 8 "Tiny-BASIC" ${SW_CONTRIB_ASM}/Tiny-BASIC/tinybasic.bin 57 ${KFS_CMD} ${DEVICE} store 9 "Forth" ${SW_FORTH}/taliforth-eris2010-ram.bin 58 ${KFS_CMD} ${DEVICE} ls