Improve support for assembly programming

This commit is contained in:
Ivan Kravets
2022-05-27 17:27:28 +03:00
parent de59b730a0
commit 886f388e4d
2 changed files with 6 additions and 7 deletions
+6 -4
View File
@@ -21,7 +21,12 @@ from SCons.Script import Import
Import("env")
env.Append(
ASFLAGS=["-x", "assembler-with-cpp"],
ASFLAGS=[
"-mlongcalls",
],
ASPPFLAGS=[
"-x", "assembler-with-cpp",
],
CFLAGS=["-std=gnu99"],
@@ -60,6 +65,3 @@ env.Append(
"-Wl,--gc-sections"
]
)
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
env.Append(ASFLAGS=env.get("CCFLAGS", [])[:])
-3
View File
@@ -227,9 +227,6 @@ if env.get("PROGNAME", "program") == "program":
env.Replace(PROGNAME="firmware")
env.Append(
# copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode)
ASFLAGS=env.get("CCFLAGS", [])[:],
BUILDERS=dict(
ElfToBin=Builder(
action=env.VerboseAction(" ".join([