]> 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
3480a2e30f9f0047a5352aadbc92fddb16de1c8c
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / pcie / pcieboot_helloworld / evmc6678l / bin / helloworld_elf2HBin.sh
1 export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.2.4
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 mv pcieBootCode.h ../../../linux_host_loader/pcieBootCode_${TARGET}.h