Build makefile

From LeoKemp223/embed-ai-tool · View interactive version

Build makefile is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要编译基于裸 Makefile 的嵌入式固件工程(无 CMake/IDE),调用自带脚本解析 Makefile、执行 make 并定位固件产物时使用。

How to use this skill

Skill file

构建 Makefile 工程

适用场景

必要输入

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次是环境探测、解析 Makefile、列出目标、执行构建,还是仅扫描产物。
  2. 若不确定环境是否就绪,先运行自带脚本 scripts/makefile_builder.py 的 --detect 模式确认。
  3. 运行 --parse-makefile 检查解析出的变量和工具链信息,确认目标芯片和编译器。
  4. 若需查看可用目标,运行 --list-targets。
  5. 使用 --source 运行构建,按需指定 --target、--clean、--extra-args 和 -j。
  6. 读取脚本输出的构建结果和产物扫描报告,将产物路径写回 Project Profile 并交给下游 skill。

失败分流

平台说明

输出约定

交接关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.