build system: Changes for xc32 compiler #1264
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the PR
Three changes are needed to accommodate xc32 compiler build:
added CFLAGS_OPTIMIZED that defaults to
-Os
but can be overridden in boards-lnosys
added LIBS_GCC with default libraries that can be changed in boards
if LD_FILE is empty
-Wl,-T
options is not added to LDFLAGSAdditional context
xc32 compiler for Microchip mips chips in free edition have some functional limitations like
lack of
-Os
and-flto
.It also provides linker script automatically so it does not have to be specified on command line.
It does not have nosys library that is not needed for bulild.