e5722d3414c7005eef088ffd75d263fecea48e6d
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / srio / srioboot_helloworld / evmc6657l / bin / helloworld_elf2HBin.sh
1 export CGT_INSTALL_DIR=~/ti/TI_CGT_C6000_7.2.4
2 export TOOL_DIR="../../../../../../"
3 export TARGET=6678
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}l.out
14 else
15 ${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd srioboot_helloworld_evm${TARGET}l.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/