As2make
Converts an Atmel Studio Project File into a Makefile
Install / Use
/learn @noctarius/As2makeREADME
as2make - Atmel Studio to Makefile
Disclaimer: This project is not affiliated to Microchip in any way.
Atmel Studio (or now renamed to Microchip Studio) is built on Visual Studio, hence a Windows-only solution. A lot of companies, however, have their buildservers (like Hudson, Jenkins, Bamboo, ...) hosted on Linux environments. While Atmel Studio can generate Makefiles which enable building on Linux, keeping them up-to-date is a tedious job.
Since we had the same problem we build as2make. The tool reads the actual Atmel Studio project files and SDK files (at the moment it supports CMSIS and DFPs) and generated the Makefile (and makedep.mk) on-the-fly in Linux. Right in the build itself.
Example Call:
> as2make.linux \
--output-name=firmware \
--toolchain=../toolchain \
--toolchain-prefix=arm-none-eabi- \
--cmsis-sdk=../cmsis-sdk/CMSIS \
--dfp-sdk=../dfp-sdk --project=./firmware.cproj
Loading project file: ./firmware.cproj ...
Loading DPF package descriptor: ../dfp-sdk/Atmel.SAMD21_DFP.pdsc ...
Generating Makefile.gen ...
Generating makedep.mk ...
At the moment the feature list is small and the tool supports exactly the stuff we needed to build our own firmware files. However, we are happy to add additional features necessary to provide a full featured solution. We're also happy to see Pull Requests and Feature Requests. For PRs and FRs, it'd be great to provide examples of the project files and Visual Studio generated Makefiles as a hint what it should look like after generation.
Anyway, we hope that this tool is of help for others, too.
Information
Information on how to find the necessary SDKs:
https://ww1.microchip.com/downloads/en/DeviceDoc/Using-device-packs-with-toolchain-4.9.3.26.txt
Device Support Packs (DFP):
http://packs.download.atmel.com/
Rename *.atpack to *.zip and unpack.
CMSIS SDK:
http://www.keil.com/dd2/pack/
Rename *.pack to *.zip and unpack.
GCC ARM Toolchain:
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
(GCC 6 recommended)
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
