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.

[参考译文] MSP430F2274:在 Windows 中运行预编译 shell 脚本

Guru**** 2522770 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/970097/msp430f2274-running-a-pre-build-shell-script-in-windows

器件型号:MSP430F2274

大家好、我想运行预编译 shell 脚本来注入版本信息(来自 git)以及在哪个编译机器上执行该操作、但是当 CCS 尝试运行我的脚本时、它会得到...  

sh Y:/work/micro/bbpa/bbpa01/update_version.sh Y:/work/micro/bbpa/bbpa01
makefile:171:目标'pre-build'的配方失败
proc_begin:CreateProcess (NULL、sh Y:/work/micro/bbpa/bbpa01/update_version.sh Y:/work/micro/bbpa/bbpa01、...) 失败。

真正奇怪的是、如果我打开 cmd.exe 并转至 Y:/work/micro/bbpa/bbpa01/Debug 并运行"C:\\ti\\ccs1011\\ccs\\utils\\bin\\gmake"-k all (这就是 CCS 所说的运行)、则脚本会运行并正常编译。

该脚本在 CCS 中的 OSX 下运行正常。