]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blob - boot_loader/examples/srio/srioboot_helloworld/evmk2h/bin/helloworld_elf2HBin.bat
c66x: added makefiles and update scripts for examples
[keystone-rtos/mcsdk-tools.git] / boot_loader / examples / srio / srioboot_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 srioboot_helloworld_evm%TARGET%.out
17 ) else (
18 %C6000_CG_DIR%\bin\hex6x -order M helloworld_image.rmd srioboot_helloworld_evm%TARGET%.out
19 )
21 ..\..\..\..\..\..\bttbl2hfile\Bttbl2Hfile srioboot_helloworld.btbl srioboot_helloworld.h srioboot_helloworld.bin
23 ..\..\..\..\..\..\hfile2array\hfile2array srioboot_helloworld.h srioBootCode.h bootCode
25 move srioBootCode.h ..\..\..\srioboot_example\src\