Cleaned code

This commit is contained in:
Ivan Kravets
2014-06-02 20:59:02 +03:00
parent 8506e13ad5
commit fc7430de94
8 changed files with 4 additions and 30 deletions
-7
View File
@@ -11,7 +11,6 @@ from os.path import join
from SCons.Script import (AlwaysBuild, Builder, Default, DefaultEnvironment,
SConscript, SConscriptChdir)
env = DefaultEnvironment()
env.Replace(
@@ -93,10 +92,8 @@ env.PrependENVPath(
join(env.subst("$PLATFORMTOOLS_DIR"), "toolchain", "bin")
)
BUILT_LIBS = []
#
# Process framework script
#
@@ -108,21 +105,18 @@ if "FRAMEWORK" in env:
exports="env")
BUILT_LIBS += flibs
#
# Target: Build executable and linkable firmware
#
target_elf = env.BuildFirmware(BUILT_LIBS + ["c", "gcc", "m"])
#
# Target: Build the .bin file
#
target_bin = env.ElfToBin(join("$BUILD_DIR", "firmware"), target_elf)
#
# Target: Upload firmware
#
@@ -130,7 +124,6 @@ target_bin = env.ElfToBin(join("$BUILD_DIR", "firmware"), target_elf)
upload = env.Alias("upload", target_bin, ["$UPLOADCMD"])
AlwaysBuild(upload)
#
# Target: Define targets
#