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.

[参考译文] CC1352P7:如何在 SDK 中创建 makefile?

Guru**** 2392905 points
Other Parts Discussed in Thread: CC1352P7

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

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1392896/cc1352p7-how-the-makefile-is-created-in-sdk

器件型号:CC1352P7

工具与软件:

我很难理解 Makefile 是如何为 SDK 的示例和项目创建的?

通常、您会使用 CMakelists.txt 作为高级抽象接口、通过 cmake 生成 Makefile、其中 GNU make 占用了该 makefile。 以创建目标文件(.o 文件)。

但是、我无法找到最初为工程和示例生成 makefile 的方式。

这很烦人、只要我想创建一个新项目、我就必须复制并粘贴现有项目或示例、然后在.cproject 文件中重新命名名字段。

谢谢。

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

    嗨、Omid:

    我假设您使用的是 GCC 编译器。  

    每个示例在示例文件夹中都有一个 makefile、例如; C:\ti\simplelink_cc13xx_cc26xx_sdk_7_41_00_17\examples\rtos\LP_CC1352P7_1\drivers\empty\tirtos7\gcc\makefile

    此文件在 SDK 生成过程中生成。

    谢谢、

    Marie H.