Since a longer time, I write software for an embedded system for a stm32f4 processor.
Until now, I worked with my own toolchain with my own makefiles to build the binary. To have the advantage of an IDE, I decided to integrate the project into Eclipse (stm32 workbench: eclipse for the stm32 controller). To stop having an own toolchain, I now use the integrated AC6 toolchain.
Most of the things I have to do are working fine.
My Problem
In my own makefile, I have the following entries:
SVNREPREV := $(shell ./svnversion.sh ./inc/ ./Drivers/ ./libs/ ./linkerscripts/ ./makefsdata/ ./src/)
XCFLAGS += -DSVNREPOVERSION=\"$(SVNREPREV)\"
(The shell script returns a value like that -> 1234:1234M and it will be converted to a string)
I can use this value in my c code like this:
const char svnRepoRevision[] = SVNREPOVERSION;
My Question
How can I realize a similar behavior in Eclipse/stm32 workbench with the AC6 toolchain and created makefiles?
My Tries
Add the symbols under Project -> Properties -> C/C++ Build -> Settings -> Build Steps -> Symbols
SVNREPREV=$(shell ../svnversion.sh ../inc/ ../Drivers/ ../libs/ ../linkerscripts/ ../makefsdata/ ../src/)
SVNREPOVERSION="SVNREPREV"
the build ends with the following error:
arm-none-eabi-gcc: error: ../src/): No such file or directory
I tried different versions of set the "", but it had no effect, alway received an error.
Any help would be appreciated.