MCSDK 3.0: update srio/pcie boot exampls scripts
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / srio / srioboot_helloworld / evmk2h / bin / helloworld_elf2HBin.sh
1 export CGT_INSTALL_DIR=~/ti/ccsv5/tools/compiler/c6000_7.4.1
2 export TOOL_DIR="../../../../../../"
3 export TARGET=k2h
4 export ENDIAN=little
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 helloworld_image.rmd srioboot_helloworld_evm${TARGET}.out
14 else
15 ${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd srioboot_helloworld_evm${TARGET}.out
16 fi
18 ../../../../../../bttbl2hfile/Bttbl2Hfile srioboot_helloworld.btbl srioboot_helloworld.h srioboot_helloworld.bin
20 ../../../../../../hfile2array/hfile2array srioboot_helloworld.h srioBootCode.h bootCode
22 mv srioBootCode.h ../../../srioboot_example/src/