From 21be5d59bcec69d9641ac8c80dab0e6004a17faf Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Tue, 29 Apr 2008 15:52:00 +0200 Subject: [PATCH 1/1] build roms --- galaxian/build_roms | 6 +++++- galaxian/build_xst | 5 ++++- galaxian/romgen/Makefile | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 galaxian/romgen/Makefile 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 -- 2.39.5