]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - tools/elftosb/test_elftosb.sh
merged tx6dl-devel into denx master branch
[karo-tx-uboot.git] / tools / elftosb / test_elftosb.sh
1 #! /bin/bash
2
3 # Tool paths
4 if [ -d /System/Library/CoreServices ]; then
5     Elftosb=./build/Debug/elftosb
6     Sbtool=./build/Debug/sbtool
7 else
8     Elftosb=./bld/linux/elftosb
9     Sbtool=./bld/linux/sbtool
10 fi
11
12 # Create test output file directory
13 mkdir -p test_output
14
15 # simple.e
16 $Elftosb -Vdz -p bdfiles -p test_files -fmx28 -c simple.e -o test_output/output1.sb plugin_hello redboot_gcc.srec hostlink
17 $Sbtool -Vdz test_output/output1.sb > test_output/output1.txt
18
19 # habtest.bd
20 $Elftosb -Vdz -p bdfiles -p test_files -fmx28 -c habtest.bd -o test_output/output2.sb plugin_hello redboot_gcc.srec hostlink
21 $Sbtool -Vdz test_output/output2.sb > test_output/output2.txt
22
23 # basic_test_cmd.e
24 $Elftosb -Vdz -p bdfiles -p test_files -fmx28 -c basic_test_cmd.e -o test_output/output3.sb plugin_hello redboot_gcc.srec hostlink sd_player_gcc
25 $Sbtool -Vdz test_output/output3.sb > test_output/output3.txt
26