Forum Replies Created
-
AuthorPosts
-
Ocef
Participanthi,
I am using Make for my project and can’t really edit the source files, so no macros.
Can I ask for further help with $(filter-out …) ? Where should I put without overwriting it with automatic make generation?
Ocef
ParticipantThank you, it works file.
Is there any chance that it can get overwritten in the future?
Ocef
ParticipantThank you for your help, everything works fine.
Ocef
ParticipantI have created a new makefile (linux.mak) with an if statement that checks the OS and if isn’t windows, then it overwrites the variables.
My last question: Inside debug.mak (and release.mak) is it a good place to include it:
ADDITIONAL_MAKE_FILES := stm32.mak linux.mak
?
It works, I am just worried if the IDE would overwrite it in the future.
Ocef
ParticipantOh yeah, that was pretty straightforward. The makefile version works fine. Thank you.
Here is the second question:
What if the build server is on linux? The toolchain used by VisualGDB doesn’t work there. I managed to compile it with manually editing the makefile (I know, I should, but just for testing):
CC := arm-none-eabi-gcc #$(TOOLCHAIN_<wbr />ROOT)/bin/arm-eabi-gcc.exe
CXX := arm-none-eabi-g++ #$(TOOLCHAIN_<wbr />ROOT)/bin/arm-eabi-g++.exe
LD := $(CXX)
AR := arm-none-eabi-ar #$(TOOLCHAIN_<wbr />ROOT)/bin/arm-eabi-ar.exe
OBJCOPY := arm-none-eabi-objcopy #$(<wbr />TOOLCHAIN_ROOT)/bin/arm-eabi-<wbr />objcopy.exeIs there any way to do it with the IDE? I mean: it detects the OS and changes these values automatically somehow.
-
AuthorPosts