af73029be408e094d6ff1beec1d48c89680bfad7
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / pcie / pcieboot_ddrinit / evmc6670l / bin / pcieboot_ddrinit_elf2HBin.sh
1 export CGT_INSTALL_DIR=~/texas_instruments/TI_CGT_C6000_7.3.0\r
2 export TARGET=6670\r
3 export ENDIAN=little\r
4 \r
5 echo CGT_INSTALL_DIR set as: ${CGT_INSTALL_DIR}\r
6 echo TARGET set as: ${TARGET}\r
7 \r
8 echo Converting .out to HEX ...\r
9 if [ ${ENDIAN} == little ]\r
10 then\r
11 ${CGT_INSTALL_DIR}/bin/hex6x -order L pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out\r
12 else\r
13 ${CGT_INSTALL_DIR}/bin/hex6x -order M pcieboot_ddrinit.rmd pcieboot_ddrinit_evm${TARGET}l.out\r
14 fi\r
15 \r
16 ../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_ddrinit.btbl pcieboot_ddrinit.h pcieboot_ddrinit.bin\r
17 \r
18 ../../../../../../hfile2array/hfile2array pcieboot_ddrinit.h pcieDdrInit.h ddrInitCode\r
19 \r
20 mv pcieDdrInit.h ../../../linux_host_loader/pcieDdrInit_${TARGET}.h\r