From: Michael Gernoth Date: Tue, 29 Apr 2008 13:52:00 +0000 (+0200) Subject: build roms X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fpga-games/commitdiff_plain/21be5d59bcec69d9641ac8c80dab0e6004a17faf build roms --- diff --git a/galaxian/build_roms b/galaxian/build_roms index a8371f8..436b84c 100755 --- a/galaxian/build_roms +++ b/galaxian/build_roms @@ -1,5 +1,9 @@ #!/bin/sh -set -x +set -x -e + +if [ ! -x "romgen/romgen" ]; then + make -C romgen romgen +fi ./romgen/romgen roms/1h.bin GALAXIAN_1H 11 l r e >roms/galaxian_1h.vhd ./romgen/romgen roms/1k.bin GALAXIAN_1K 11 l r e >roms/galaxian_1k.vhd diff --git a/galaxian/build_xst b/galaxian/build_xst index 4f203ca..afc41d9 100755 --- a/galaxian/build_xst +++ b/galaxian/build_xst @@ -4,7 +4,10 @@ set -x name=galaxian rom_path=roms/ -echo use build_xst /xil to skip synthesis stage. + +if [ ! -e "roms/galaxian_6l.vhd" ]; then + ./build_roms +fi rm -rf build/ mkdir -p build diff --git a/galaxian/romgen/Makefile b/galaxian/romgen/Makefile new file mode 100644 index 0000000..e31ccd2 --- /dev/null +++ b/galaxian/romgen/Makefile @@ -0,0 +1 @@ +romgen: romgen.cpp