]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blob - boot_loader/examples/pcie/pcieboot_helloworld/evmc6678l/bin/helloworld_elf2HBin.sh
updated the CGT version in the bootloader scripts
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / pcie / pcieboot_helloworld / evmc6678l / bin / helloworld_elf2HBin.sh
1 export C6000_CG_DIR=~/ti/TI_CGT_C6000_7.4.2
2 export TOOL_DIR="../../../../../../"
3 export TARGET=6678
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}l.out
15 else
16 ${CGT_INSTALL_DIR}/bin/hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm${TARGET}l.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 if [ ${ENDIAN} == little ]
24 then
25 mv pcieBootCode.h ../../../linux_host_loader/LE/pcieBootCode_${TARGET}.h
26 else
27 mv pcieBootCode.h ../../../linux_host_loader/BE/pcieBootCode_${TARGET}.h
28 fi