OpenCores
URL https://opencores.org/ocsvn/m1_core/m1_core/trunk

Subversion Repositories m1_core

[/] [m1_core/] [trunk/] [tools/] [bin/] [compile_test] - Diff between revs 54 and 64

Show entire file | Details | Blame | View Log

Rev 54 Rev 64
Line 3... Line 3...
# Compile a test for the M1 and build the memory.hex file.
# Compile a test for the M1 and build the memory.hex file.
#
#
# Parameter is test name without extension (e.g. to compile
# Parameter is test name without extension (e.g. to compile
# $M1_ROOT/tests/hello.c) run "compile_test hello".
# $M1_ROOT/tests/hello.c) run "compile_test hello".
#
#
# Requires mipsel-linux-gcc (see Download section on srisc.com).
# Requires mipsel-linux-gcc
 
 
if [ -z "$M1_ROOT" ]; then echo "***ERROR***: M1_ROOT variable is undefined, please set it and run 'source sourceme'."; exit 1; fi
if [ -z "$M1_ROOT" ]; then echo "***ERROR***: M1_ROOT variable is undefined, please set it and run 'source sourceme'."; exit 1; fi
if ! [ -d "$M1_ROOT" ]; then echo "***ERROR***: directory '$M1_ROOT' does not exist, please check it and run 'source sourceme' again."; exit 1; fi
if ! [ -d "$M1_ROOT" ]; then echo "***ERROR***: directory '$M1_ROOT' does not exist, please check it and run 'source sourceme' again."; exit 1; fi
 
 
cd $M1_ROOT/tests
cd $M1_ROOT/tests
rm -f *.o *~ *.bin                  # Make clean
rm -f *.o *~ *.bin                  # Make clean
if ( test $# != 1 ) then
if ( test $# != 1 ) then
  echo ""
  echo ""
  echo "compile_test - Script to compile a test for the M1 Core"
  echo "compile_test - Script to compile a test for the M1 Core"
  echo ""
  echo ""
  echo "(C)2008 Simply RISC"
 
  echo ""
 
  echo "Usage:"
  echo "Usage:"
  echo ""
  echo ""
  echo "      compile_test "
  echo "      compile_test "
  echo ""
  echo ""
  echo "where parameter is the test name without extension (e.g. 'hello')."
  echo "where parameter is the test name without extension (e.g. 'hello')."

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.