source: trunk/tools/gensigs_dryos.sh @ 1369

Revision 1369, 740 bytes checked in by philmoz, 19 months ago (diff)

Makefile update part 3.
Move the list of camera & firmware versions into the 'camera_list.csv' file.
Replace the large lists of batch build rules in Makefile with a shell script that processes 'camera_list.csv' and performs the desired build action on each entry.
Updated the EOL property on gensigs_dryos.sh and gensigs_vxworks.sh files.

  • Property svn:eol-style set to LF
RevLine 
[1291]1#!/bin/sh
2
3VERSIONS=$3
4
5echo
6
7for v in $VERSIONS; do
8    cat sig_ref_$2_${v}.txt | \
9        ( read line; rom_start=($line) ; \
10    while read line; do
11        # workaround - multiword read does not work in Windows shell!
12        line=($line)
13        name=${line[0]}
14        addr=${line[1]}
15        length=${line[2]}
16        lnk_addr=${line[3]}
17        lnk_length=${line[4]}
18        ./gensig_dryos sig_ref_$2_${v}.bin ${rom_start} ${name}_${v} $addr ${length:-32} ${lnk_addr:-0} ${lnk_length:-32}
19    done
20        )
21done
22
23echo "FuncsList func_list[] = {"
24
25for v in $VERSIONS; do
26    cat sig_ref_$2_${v}.txt | \
27        ( read line; rom_start=($line) ; \
28    awk -v v=${v} '{ printf("\t{ \"%s\", func_sig_%s_%d, %d },\n",$1,$1,v,v)}'
29        )
30done | "$1"
31
32echo -e "\t{ NULL }\n};"
Note: See TracBrowser for help on using the repository browser.