This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于c6678中makefile的疑问



请问在C:\Program Files\Texas Instruments\mcsdk_2_00_05_17\tools\boot_loader\ibl\src\make目录下makefile、makestg1和makestg2是用来做什么的。貌似可以用来编译.bin或者是.out文件。那么用由makefile怎么来生成的,也就是说怎么样运行makefile文件。请各位专家详细指点。

  • Bin Chen,

    您好!

    下面是我的方法,不熟Msys但是可以工作,供参考。

    1.       The build is based on mcsdk_2_00_05_17, MCSDK_INSTALL_PATH\tools\boot_loader\ibl\doc\build_instructions.txt is a good start.

    2.       Go to below link to install MinGw from below link and click the latest exe version.

    sourceforge.net/.../download

    By default it will be installed in C:\MinGW

      While installing MinGW following options have to be chosen:

       1.  MinGw Compiler Suite

           -   C Compiler

       2. MinGW Developer Toolkit

    3.       Then we need run “MinGW Shell” to enter Msys shell.

    4.       Once enter Msys shell, the root is C:\MinGW\msys\1.0. Use command “cd /” then “ls” to know where you are.

    5.       Copy folder “ibl” and file “IBL_buildibl” under MCSDK_INSTALL_PATH\tools\boot_loader to C:\MinGW\msys\1.0.

    6.       Before run build script, we need to check “C:\MinGW\msys\1.0\IBL_buildibl” and “C:\MinGW\msys\1.0\ibl\src\make\setupenvMsys.sh”

    For IBL_buildibl, you can change “ENDIAN=little” to “ENDIAN=big”

    For setupenvMsys.sh, original path below.

    # Specify the base directory of the c6000 compiler with UNIX style path separator

    export C6X_BASE_DIR='"C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.2.4"'

    # Specify the base directory of the c6000 compiler in format understandable by the MSYS Bash shell

    export C6X_BASE_DIR_MSYS=/c/Program\ Files/Texas\ Instruments/C6000\ Code\ Generation\ Tools\ 7\.2\.4

    Which can be changed as below based on your C6000 CGT tool install path.

    # Specify the base directory of the c6000 compiler with UNIX style path separator

    export C6X_BASE_DIR='"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000"'

    # Specify the base directory of the c6000 compiler in format understandable by the MSYS Bash shell

    export C6X_BASE_DIR_MSYS=/c/Program\ Files/Texas\ Instruments/ccsv5/tools/compiler/c6000

    7.       Then run “IBL_buildibl”

    8.       Build result is under “C:\MinGW\msys\1.0\ibl\src\make\bin”.

  • Yu Liu

    您好!

    谢谢你的帮忙,我先试一试,再次谢过!