Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Convert Atmel Studio 7 generated makefile (windows paths) to linux, so you can compile your project from linux
# Rafael Corsi
# Script to convert makefile generate from atmel studio 7 (windows)
# to linux path, assuming that you have gcc on PATH
# on Arch
# - sudo pacman -S arm-none-eabi-gcc
# - sudo pacman -S arm-none-eabi-newlib
# based on
if [ "$FILEMAKE" != "" ]; then
# remove ref to gcc windows path
sed -i 's/C:\\.*\\bin\\//g' $FILEMAKE
# remove ref to extension .bin
sed -i 's/.exe//g' $FILEMAKE
# remove SHELL
sed -i 's/SHELL := cmd//g' $FILEMAKE
echo "Usage: MAKE FILE"

This comment has been minimized.

Copy link

@biboc biboc commented Dec 16, 2016

I would add this:
You need to remove all .d dependencies in the Makefile to make it work with Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment