OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add leokemp223/embed-ai-tool --skill build-makefile
当需要编译基于裸 Makefile 的嵌入式固件工程(无 CMake/IDE),调用自带脚本解析 Makefile、执行 make 并定位固件产物时使用。
npx skills add leokemp223/embed-ai-tool --skill build-makefile
Project Profile 中标明 build_system: makefile。Makefile / makefile / GNUmakefile,但没有 CMakeLists.txt、platformio.ini、.uvprojx 或 .ewp。ELF、HEX 或 BIN。Project Profile。CROSS_COMPILE、MCU)、make 标志和并行任务数。.em_skill.json 中上次成功的 profile 作为默认参数(显式参数优先,无需先手动传 --resume);--resume 仅用于断言缓存必须存在,无缓存则非零退出。无缓存或用户明确要求重新探测时,脚本自动回退到正常扫描。Makefile / makefile / GNUmakefile,脚本自动识别。CROSS_COMPILE、CC、TARGET、MCU、BOARD、CFLAGS、LDFLAGS 等。CROSS_COMPILE 前缀推断工具链家族(arm-none-eabi- → gnu-arm,riscv32-unknown-elf- → gnu-riscv,xtensa-esp32-elf- → gnu-esp)。MCU 变量、-mcpu= 标志或链接脚本名推断目标芯片。make / gmake / mingw32-make 是否可用。# Generated by CMake,提示用户使用 build-cmake skill。--detect 模式确认。--parse-makefile 检查解析出的变量和工具链信息,确认目标芯片和编译器。--list-targets。--source 运行构建,按需指定 --target、--clean、--extra-args 和 -j。Project Profile 并交给下游 skill。make 或交叉编译器时,返回 environment-missing。project-config-error。build/、output/、out/ 中找到可烧录产物时,返回 artifact-missing。ambiguous-context。make 通常已预装。make。脚本会依次尝试 make、gmake、mingw32-make。artifact_path、artifact_kind、toolchain 和 target_mcu 更新 Project Profile。flash-openocd、flash-jlink 或 debug-gdb-openocd。flash-openocd 或 flash-jlink。debug-gdb-openocd 或 debug-jlink。