[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / pcie / pcieboot_post / evmk2k / bin / pcieboot_post_elf2HBin.sh
1 export C6000_CG_DIR=~/ti/ccsv5/tools/compiler/c6000_7.4.1
2 export TOOL_DIR="../../../../../../"
3 export TARGET=k2k
4 export ENDIAN=little
6 echo C6000_CG_DIR set as: ${C6000_CG_DIR}
7 echo TARGET set as: ${TARGET}
8 echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
10 cp ../../../../../../post/evm${TARGET}/bin/post_evm${TARGET}.out .
12 echo Converting .out to HEX ...
13 if [ ${ENDIAN} == little ]
14 then
15 ${C6000_CG_DIR}/bin/hex6x -order L post.rmd post_evm${TARGET}.out
16 else
17 ${C6000_CG_DIR}/bin/hex6x -order M post.rmd post_evm${TARGET}.out
18 fi
20 ../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_post.btbl pcieboot_post.h pcieboot_post.bin
21 ../../../../../../hfile2array/hfile2array pcieboot_post.h post.h post
22 mv post.h ../../../linux_host_loader/post_${TARGET}.h