-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
- Loading branch information
1 parent
ae28439
commit 959be66
Showing
41 changed files
with
130 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/usr/bin/env python | ||
# | ||
# STM32F1_build_flags.py | ||
# Add build_flags for the base STM32F1_maple environment (stm32f1-maple.ini) | ||
# | ||
from __future__ import print_function | ||
import sys | ||
|
||
# Dynamic build flags for generic compile options | ||
if __name__ == "__main__": | ||
|
||
# Print these plus the given args when running directly on the command-line | ||
args = [ | ||
"-std=gnu++14", | ||
"-Os", | ||
"-mcpu=cortex-m3", | ||
"-mthumb", | ||
|
||
"-fsigned-char", | ||
"-fno-move-loop-invariants", | ||
"-fno-strict-aliasing", | ||
"-fsingle-precision-constant", | ||
|
||
"--specs=nano.specs", | ||
"--specs=nosys.specs", | ||
|
||
"-MMD", "-MP", | ||
|
||
"-IMarlin/src/HAL/STM32F1", | ||
|
||
"-DTARGET_STM32F1", | ||
"-DARDUINO_ARCH_STM32", | ||
"-DPLATFORM_M997_SUPPORT" | ||
] + sys.argv[1:] | ||
|
||
print(" ".join(args)) | ||
|
||
else: | ||
|
||
# Extra script for stm32f1-maple.ini build_flags | ||
|
||
import pioutil | ||
if pioutil.is_pio_build(): | ||
pioutil.env.Append( | ||
ARFLAGS=["rcs"], | ||
|
||
ASFLAGS=["-x", "assembler-with-cpp"], | ||
|
||
CXXFLAGS=[ | ||
"-fabi-version=0", | ||
"-fno-use-cxa-atexit", | ||
"-fno-threadsafe-statics" | ||
], | ||
LINKFLAGS=[ | ||
"-Os", | ||
"-mcpu=cortex-m3", | ||
"-ffreestanding", | ||
"-mthumb", | ||
"--specs=nano.specs", | ||
"--specs=nosys.specs", | ||
"-u_printf_float", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.