Skip to content

Commit af2ee52

Browse files
committed
cleaned .gitignore to target existing files, and
compile-script now places all relevant files into a toplevel "sdcard" dir, and src/Makefile now downloads the appropriate ROM files, formatting, and moved *.c to the tools dir
1 parent acea053 commit af2ee52

File tree

4 files changed

+160
-60
lines changed

4 files changed

+160
-60
lines changed

.gitignore

+37-24
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,51 @@
77
*.*~
88

99
# files generated using make
10-
charrom.vhdl
11-
cpu_test.exe
12-
cpu_test
13-
diskchooser
14-
diskchooser.list
15-
diskmenu_c000.bin
16-
diskmenuc000.list
17-
err.log
18-
etherload.prg
19-
ghdl-frame-gen.exe
20-
ghdl-frame-gen
21-
kickstart.list
22-
kickstart.vhdl
23-
kickstart65gs.bin
24-
pngprepare.exe
25-
pngprepare
26-
version.a65
27-
version.vhdl
28-
src/BOOTLOGO.M65
2910
src/KICKUP.M65
11+
src/*.prg
12+
src/diskmenu_c000.bin
13+
src/tests/*.prg
14+
src/tools/*.prg
15+
src/utilities/*.prg
16+
17+
# ophis
18+
src/*.list
19+
src/*.map
20+
src/tests/*.list
21+
src/tests/*.map
22+
src/tools/*.list
23+
src/tools/*.map
24+
src/utilities/*.list
25+
src/utilities/*.map
26+
27+
# generated vhdl
28+
src/vhdl/charrom.vhdl
29+
src/vhdl/kickstart.vhdl
30+
src/vhdl/version.vhdl
31+
32+
# generated ASM
33+
src/version.a65
34+
35+
# executables
36+
src/tools/etherkick/etherkick
37+
src/tools/etherload/etherload
38+
src/tools/hotpatch/hotpatch
39+
src/tools/pngprepare/pngprepare
40+
41+
# outputs
42+
sdcard-files/BOOTLOGO.M65
43+
sdcard-files/CHARROM.M65
44+
sdcard-files/MEGA65.D81
45+
sdcard-files/MEGA65.ROM
46+
sdcard-files/old-bitfiles/*
3047

3148
# files generated during compilation using ./compile.sh script
3249
compile-*.log
3350
bit*.bit
51+
isework/container.bit
3452

3553
# files generated by ISE during compilation using ISE
3654
isework/container_*
3755

3856
# files generated by src/utilities/getsdcardinfo
3957
sdcardinfo-*
40-
41-
# unsure why these are here
42-
work-obj93.cf
43-
index_range_tests.zip
44-
index_range_tests/

compile.sh

+25-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ ls -al isework/container.xst
88
chmod a-w isework/container.xst
99
ls -al isework/container.xst
1010

11-
( cd src ; make generated_vhdl firmware ../iomap.txt tools utilities )
11+
# ensure these directory exists, if not, make them
12+
if test ! -e "./sdcard-files"; then
13+
echo "Creating ./sdcard-files"
14+
mkdir ./sdcard-files
15+
fi
16+
if test ! -e "./sdcard-files/old-bitfiles"; then
17+
echo "Creating ./sdcard-files/old-bitfiles"
18+
mkdir ./sdcard-files/old-bitfiles
19+
fi
20+
21+
( cd src ; make generated_vhdl firmware ../iomap.txt tools utilities roms)
1222
retcode=$?
1323

1424
if [ $retcode -ne 0 ] ; then
@@ -168,7 +178,17 @@ echo "From $outfile6: =================================================" >> $out
168178
echo "Nil" >> $outfile0
169179

170180
echo " "
171-
# now copy the bit-file to the top-level-directory, and timestamp it with time and git-status
172-
echo "cp ./isework/container.bit ./bit${datetime2}_${branch2}_${gitstring}.bit"
173-
cp ./isework/container.bit ./bit${datetime2}_${branch2}_${gitstring}.bit
174-
ls ./bit${datetime2}_${branch2}_${gitstring}.bit
181+
# now prepare the sdcard-output directory by moving any existing bit-file
182+
for filename in ./sdcard-files/*.bit; do
183+
echo "mv ${filename} ./sdcard-files/old-bitfiles"
184+
mv ${filename} ./sdcard-files/old-bitfiles
185+
done
186+
# now copy the bit-file to the sdcard-output directory, and timestamp it with time and git-status
187+
echo "cp ./isework/container.bit ./sdcard-files/bit${datetime2}_${branch2}_${gitstring}.bit"
188+
cp ./isework/container.bit ./sdcard-files/bit${datetime2}_${branch2}_${gitstring}.bit
189+
# and the KICKUP file
190+
echo "cp ./src/KICKUP.M65 ./sdcard-files"
191+
cp ./src/KICKUP.M65 ./sdcard-files
192+
193+
echo " "
194+
ls -al ./sdcard-files

0 commit comments

Comments
 (0)