]> 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.bat
c66x: added makefiles and update scripts for examples
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / pcie / pcieboot_helloworld / evmk2h / bin / helloworld_elf2HBin.bat
1 set C6000_CG_DIR=%C6X_GEN_INSTALL_PATH%
2 set TOOL_DIR="..\..\..\..\..\..\"
3 set TARGET=k2h
4 set ENDIAN=little
5 set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;
8 @echo off
10 echo C6000_CG_DIR set as: %C6000_CG_DIR%
11 echo TARGET set as: %TARGET%
12 echo IBL_ROOT_DIR set as : %IBL_ROOT_DIR%
14 echo Converting .out to HEX ...
15 if %ENDIAN% == little (
16 %C6000_CG_DIR%\bin\hex6x -order L helloworld_image.rmd pcieboot_helloworld_evm%TARGET%.out
17 ) else (
18 %C6000_CG_DIR%\bin\hex6x -order M helloworld_image.rmd pcieboot_helloworld_evm%TARGET%.out
19 )
21 ..\..\..\..\..\..\bttbl2hfile\Bttbl2Hfile pcieboot_helloworld.btbl pcieboot_helloworld.h pcieboot_helloworld.bin
23 ..\..\..\..\..\..\hfile2array\hfile2array pcieboot_helloworld.h pcieBootCode.h bootCode
25 move pcieBootCode.h ..\..\..\linux_host_loader\pcieBootCode_%TARGET%.h