]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blob - boot_loader/examples/srio/srioboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh
Verion updates: MCSDK 2.0.6.18, PDK 1.0.0.18, CGT 7.3.1
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / srio / srioboot_helloworld / evmc6678l / bin / helloworld_elf2HBin.sh
1 export CGT_INSTALL_DIR=~/ti/TI_CGT_C6000_7.3.1
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/