System Workbench headless build doesn't generate correct makefile
Hi
We have an issue with the compiling/linking our code in batch mode. We use the below command for running compiling : “C:\Ac6\SystemWorkbench\eclipsec.exe” -noSplash -data “C:\workspace\project\eclipse_workspace” -application org.eclipse.cdt.managedbuilder.core.headlessbuild -importAll “C:\workspace\project\MainMCU” -launcher.suppressErrors -build “.*/Debug” -cleanBuild all
The issue is that we have some shared code that is added as a “linked folder”. This works fine when we run from the Eclipse IDE, but not when running in batch mode.
We have found that the issue is that the auto-generated makefile is different depending on if we build using the IDE or from command line.
If we build from the IDE the below lines are included in the auto-generated makefile (found in the Debug folder)
’’ -include Src/AppBootShared/extMemories/LL/subdir.mk
-include Src/AppBootShared/extMemories/subdir.mk
-include Src/AppBootShared/TraceDebug/subdir.mk
-include Src/AppBootShared/subdir.mk’’
When running in batch mode the above lines are not included in the makefile. Due to this the shared code is not compiled and the linker fails with a “undefined reference”.
Does anybody have any clue to what we can do to fix this issue ?
Thanks