URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
[/] [s1_core/] [trunk/] [tools/] [bin/] [compile_test] - Diff between revs 38 and 73
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 38 |
Rev 73 |
Line 27... |
Line 27... |
|
|
# Compile the dumper
|
# Compile the dumper
|
gcc -o $S1_ROOT/tools/bin/dump2hex.bin $S1_ROOT/tools/src/dump2hex.c
|
gcc -o $S1_ROOT/tools/bin/dump2hex.bin $S1_ROOT/tools/src/dump2hex.c
|
|
|
# Compile the boot code
|
# Compile the boot code
|
sparc64-linux-as -o boot/boot.bin boot/boot.s
|
sparc64-linux-as -ah -am -o boot/boot.bin boot/boot.s
|
sparc64-linux-objdump -d -EB -w -z boot/boot.bin > boot/boot.dump
|
sparc64-linux-objdump -d -EB -w -z boot/boot.bin > boot/boot.dump
|
grep " " boot/boot.dump | egrep -v "file format" | dump2hex.bin > boot/boot.image
|
grep " " boot/boot.dump | egrep -v "file format" | dump2hex.bin > boot/mem_RED_SEC.image
|
|
|
# Compile the C test
|
# Compile the C test
|
#sparc64-linux-g++ -c -O0 $1.c
|
sparc64-linux-gcc -c -O0 $1.c
|
#sparc64-linux-ld -Ur --script=$S1_ROOT/tools/src/linker.map -EB -o $1.bin $1.o
|
sparc64-linux-ld -Ur --script=$S1_ROOT/tools/src/linker.map -EB -o $1.bin $1.o
|
#sparc64-linux-objdump -d -EB -w -z $1.bin > $1.dump
|
sparc64-linux-objdump -d -EB -w -z $1.bin > $1.dump
|
#grep " " $1.dump | egrep -v "file format" | dump2hex.bin > dump/$1_MAIN.image
|
grep " " $1.dump | egrep -v "file format" | dump2hex.bin > boot/mem_RED_EXT_SEC.image
|
|
|
rm -f *.o *~ *.bin *.dump # Make clean
|
rm -f *.o *~ *.bin *.dump # Make clean
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.