c66x POST: added makefile, disabled C6678 emac test until CSL is synced
[keystone-rtos/mcsdk-tools.git] / post / evmk2h / bin / post_romparse.sh
1 export CGT_INSTALL_DIR=~/ti/ccsv5/tools/compiler/c6000_7.4.1
2 export TARGET=k2h
3 export ENDIAN=little
4 export IBL_ROOT_DIR="../../../boot_loader/ibl"
6 echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
7 echo TARGET set as: ${TARGET}
8 echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
10 echo Converting .out to HEX ...
11 if [ ${ENDIAN} == little ]
12 then
13 ${CGT_INSTALL_DIR}/bin/hex6x -order L post_image.rmd post_evm${TARGET}.out
14 else
15 ${CGT_INSTALL_DIR}/bin/hex6x -order M post_image.rmd post_evm${TARGET}.out
16 fi
18 ${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.b post.ccs
20 if [ ${ENDIAN} == little ]
21 then
22 ${CGT_INSTALL_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}.out
23 else
24 ${CGT_INSTALL_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}.out
25 fi
27 if [ ${ENDIAN} == little ]
28 then
29 ${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -le post2.b post.b
30 else
31 ${IBL_ROOT_DIR}/src/util/bconvert/bconvert64x -be post2.b post.b
32 fi
34 ${IBL_ROOT_DIR}/src/util/btoccs/b2i2c post.b post.i2c.b
36 ${IBL_ROOT_DIR}/src/util/btoccs/b2ccs post.i2c.b post.i2c.ccs
38 echo Generating I2C ROM data ...
39 ${IBL_ROOT_DIR}/src/util/romparse/romparse -rom_base 0x50 post_i2crom.map.pp
41 ${IBL_ROOT_DIR}/src/util/btoccs/ccs2bin -swap i2crom.ccs  post_i2crom.bin
43 rm -f *.ccs *.b