]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blob - boot_loader/examples/pcie/pcieboot_helloworld/evmk2h/bin/helloworld_elf2HBin.sh
MCSDK 3.0: remove writer evmk2k projects, add evmk2h projects
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / pcie / pcieboot_helloworld / evmk2h / bin / helloworld_elf2HBin.sh
1 export CGT_INSTALL_DIR=~/ti/ccsv5/tools/compiler/c6000_7.3.4
2 export TOOL_DIR="../../../../../../"
3 export TARGET=k2h
4 export ENDIAN=little
5 export PATH=${PATH};${SystemRoot}/system32;${SystemRoot};
7 echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}
8 echo TARGET set as: ${TARGET}
9 echo IBL_ROOT_DIR set as : ${IBL_ROOT_DIR}
11 echo Converting .out to HEX ...
12 if [ ${ENDIAN} == little ]
13 then
14 ${CGT_INSTALL_DIR}/bin/hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm${TARGET}.out
15 else
16 ${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm${TARGET}.out
17 fi
19 ../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin
21 ../../../../../../hfile2array/hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode
23 mv pcieBootCode.h ../../../linux_host_loader/pcieBootCode_${TARGET}.h