forked from platformio/platformio-core
Fix builder for assembling files
This commit is contained in:
@ -18,16 +18,10 @@ env.Replace(
|
|||||||
RANLIB="arm-none-eabi-ranlib",
|
RANLIB="arm-none-eabi-ranlib",
|
||||||
SIZETOOL="arm-none-eabi-size",
|
SIZETOOL="arm-none-eabi-size",
|
||||||
|
|
||||||
ARFLAGS=["rcs"],
|
ASCOM=("$AS -o $TARGET -c -x assembler-with-cpp "
|
||||||
|
"$CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES"),
|
||||||
|
|
||||||
ASFLAGS=[
|
ARFLAGS=["rcs"],
|
||||||
"-c",
|
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
|
||||||
"-x", "assembler-with-cpp",
|
|
||||||
"-Wall",
|
|
||||||
"-mthumb",
|
|
||||||
"-mcpu=${BOARD_OPTIONS['build']['cpu']}"
|
|
||||||
],
|
|
||||||
|
|
||||||
CPPFLAGS=[
|
CPPFLAGS=[
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
"-g", # include debugging info (so errors include line numbers)
|
||||||
|
@ -18,14 +18,10 @@ env.Replace(
|
|||||||
RANLIB="avr-ranlib",
|
RANLIB="avr-ranlib",
|
||||||
SIZETOOL="avr-size",
|
SIZETOOL="avr-size",
|
||||||
|
|
||||||
ARFLAGS=["rcs"],
|
ASCOM=("$AS -o $TARGET -c -x assembler-with-cpp "
|
||||||
|
"$CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES"),
|
||||||
|
|
||||||
ASFLAGS=[
|
ARFLAGS=["rcs"],
|
||||||
"-c",
|
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
|
||||||
"-x", "assembler-with-cpp",
|
|
||||||
"-mmcu=$BOARD_MCU"
|
|
||||||
],
|
|
||||||
|
|
||||||
CCFLAGS=[
|
CCFLAGS=[
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
"-g", # include debugging info (so errors include line numbers)
|
||||||
|
@ -23,14 +23,10 @@ env.Replace(
|
|||||||
RANLIB="msp430-ranlib",
|
RANLIB="msp430-ranlib",
|
||||||
SIZETOOL="msp430-size",
|
SIZETOOL="msp430-size",
|
||||||
|
|
||||||
ARFLAGS=["rcs"],
|
ASCOM=("$AS -o $TARGET -c -x assembler-with-cpp "
|
||||||
|
"$CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES"),
|
||||||
|
|
||||||
ASFLAGS=[
|
ARFLAGS=["rcs"],
|
||||||
"-c",
|
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
|
||||||
"-x", "-assembler-with-cpp",
|
|
||||||
"-mmcu=$BOARD_MCU"
|
|
||||||
],
|
|
||||||
|
|
||||||
CCFLAGS=[
|
CCFLAGS=[
|
||||||
"-g", # include debugging info (so errors include line numbers)
|
"-g", # include debugging info (so errors include line numbers)
|
||||||
|
@ -50,7 +50,7 @@ def BuildFirmware(env, corelibs):
|
|||||||
|
|
||||||
# enable "cyclic reference" for linker
|
# enable "cyclic reference" for linker
|
||||||
firmenv.Prepend(
|
firmenv.Prepend(
|
||||||
_LIBFLAGS="-Wl,--start-group ",
|
_LIBFLAGS="-Wl,--start-group "
|
||||||
)
|
)
|
||||||
firmenv.Append(
|
firmenv.Append(
|
||||||
_LIBFLAGS=" -Wl,--end-group"
|
_LIBFLAGS=" -Wl,--end-group"
|
||||||
|
Reference in New Issue
Block a user