HAL for Re:ARM (LPC1768) architecture
This commit is contained in:
committed by
Scott Lahteine
parent
f3e562e46e
commit
44b0c186a6
51
Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
Normal file
51
Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
Normal file
@@ -0,0 +1,51 @@
|
||||
#dynaomic build flags for generic compile options
|
||||
if __name__ == "__main__":
|
||||
print " ".join([ "-std=gnu11",
|
||||
"-std=gnu++11",
|
||||
"-Os",
|
||||
"-mcpu=cortex-m3",
|
||||
"-mthumb",
|
||||
|
||||
"-ffreestanding",
|
||||
"-fsigned-char",
|
||||
"-fno-move-loop-invariants",
|
||||
|
||||
"-Wall",
|
||||
"--specs=nano.specs",
|
||||
"--specs=nosys.specs",
|
||||
|
||||
"-IMarlin/src/HAL/HAL_LPC1768/framework_cmsis/CMSIS/Include",
|
||||
"-IMarlin/src/HAL/HAL_LPC1768/framework_cmsis/Device/NXP/LPC17xx/Include",
|
||||
"-IMarlin/src/HAL/HAL_LPC1768/framework_cmsis/Device/NXP/LPC17xx/drivers/include",
|
||||
|
||||
"-MMD",
|
||||
"-MP",
|
||||
"-DTARGET_LPC1768",
|
||||
"-DIS_REARM"
|
||||
])
|
||||
|
||||
# extra script for linker options
|
||||
else:
|
||||
from SCons.Script import DefaultEnvironment
|
||||
env = DefaultEnvironment()
|
||||
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",
|
||||
"-Wl,-TMarlin/src/HAL/HAL_LPC1768/framework_cmsis/Device/NXP/LPC17xx/Source/Re-ARM/LPC1768.ld,--gc-sections"
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user