forked from platformio/platformio-core
Improve support of Atmel SAM platform
This commit is contained in:
@ -57,7 +57,7 @@ platform = atmelavr
|
|||||||
framework = arduino
|
framework = arduino
|
||||||
board = yun
|
board = yun
|
||||||
|
|
||||||
#[env:arduino_due]
|
[env:arduino_due]
|
||||||
#platform = atmelsam
|
platform = atmelsam
|
||||||
#framework = arduino
|
framework = arduino
|
||||||
#board = due
|
board = due
|
||||||
|
@ -34,31 +34,38 @@ env.Replace(
|
|||||||
"-mcpu=${BOARD_OPTIONS['build']['mcu']}"
|
"-mcpu=${BOARD_OPTIONS['build']['mcu']}"
|
||||||
],
|
],
|
||||||
|
|
||||||
CCFLAGS=[
|
CPPFLAGS=[
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
"-g", # include debugging info (so errors include line numbers)
|
||||||
"-Os", # optimize for size
|
"-Os", # optimize for size
|
||||||
"-Wall", # show warnings
|
"-fdata-sections",
|
||||||
|
"-ffunction-sections", # place each function in its own section
|
||||||
|
"-Wall",
|
||||||
|
"-MMD", # output dependancy info
|
||||||
|
"-mcpu=${BOARD_OPTIONS['build']['mcu']}",
|
||||||
|
"-mthumb",
|
||||||
"-ffunction-sections", # place each function in its own section
|
"-ffunction-sections", # place each function in its own section
|
||||||
"-fdata-sections",
|
"-fdata-sections",
|
||||||
"-MMD", # output dependency info
|
"-nostdlib"
|
||||||
"-mcpu=${BOARD_OPTIONS['build']['mcu']}",
|
|
||||||
"-mthumb"
|
|
||||||
],
|
],
|
||||||
|
|
||||||
CXXFLAGS=[
|
CXXFLAGS=[
|
||||||
"-fno-rtti",
|
"-fno-rtti",
|
||||||
|
"-felide-constructors",
|
||||||
"-fno-exceptions"
|
"-fno-exceptions"
|
||||||
],
|
],
|
||||||
|
|
||||||
CPPDEFINES=[
|
CPPDEFINES=[
|
||||||
"F_CPU=$BOARD_F_CPU"
|
"F_CPU=$BOARD_F_CPU",
|
||||||
|
"printf=iprintf"
|
||||||
],
|
],
|
||||||
|
|
||||||
LINKFLAGS=[
|
LINKFLAGS=[
|
||||||
"-Os",
|
"-Os",
|
||||||
"-Wl,--gc-sections",
|
"-Wl,--gc-sections",
|
||||||
"-mcpu=${BOARD_OPTIONS['build']['mcu']}",
|
"-mcpu=${BOARD_OPTIONS['build']['mcu']}",
|
||||||
"-mthumb"
|
"-mthumb",
|
||||||
|
"-Wl,--entry=Reset_Handler",
|
||||||
|
"-Wl,--start-group"
|
||||||
],
|
],
|
||||||
|
|
||||||
SIZEPRINTCMD='"$SIZETOOL" -B -d $SOURCES',
|
SIZEPRINTCMD='"$SIZETOOL" -B -d $SOURCES',
|
||||||
|
Reference in New Issue
Block a user