[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / pcie / pcieboot_interrupt / evmc6678l / bin / interrupt_elf2HBin.sh
1 export C6000_CG_DIR=~/ti/TI_CGT_C6000_7.4.0B2
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 interrupt_image.rmd pcieboot_interrupt_evm${TARGET}l.out
15 else
16 ${CGT_INSTALL_DIR}/bin/hex6x -order M interrupt_image.rmd pcieboot_interrupt_evm${TARGET}l.out
17 fi
19 ../../../../../../bttbl2hfile/Bttbl2Hfile pcieboot_interrupt.btbl pcieboot_interrupt.h pcieboot_interrupt.bin
21 ../../../../../../hfile2array/hfile2array pcieboot_interrupt.h pcieInterrupt.h Interrupt
23 if [ ${ENDIAN} == little ]
24 then
25 mv pcieBootCode.h ../../../linux_host_loader/LE/pcieInterrupt_${TARGET}.h
26 else
27 mv pcieBootCode.h ../../../linux_host_loader/BE/pcieInterrupt_${TARGET}.h
28 fi