13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
16
- # __globals = dict(globals())
17
16
from os .path import isdir , split , join
18
17
from SCons .Script import AlwaysBuild , Builder , Default , DefaultEnvironment
19
18
import sys
@@ -59,23 +58,6 @@ def launch_arduino_core_builder(env, platform, board):
59
58
env .SConscript (join ("arduino" , "%s.py" % script_name ))
60
59
61
60
62
- def configure_base_arduino_environment (env ):
63
- # A full list with the available variables
64
- # http://www.scons.org/doc/production/HTML/scons-user.html#app-variables
65
- env .Replace (
66
- AR = "arm-none-eabi-ar" ,
67
- AS = "arm-none-eabi-as" ,
68
- CC = "arm-none-eabi-gcc" ,
69
- CXX = "arm-none-eabi-g++" ,
70
- GDB = "arm-none-eabi-gdb" ,
71
- OBJCOPY = "arm-none-eabi-objcopy" ,
72
- RANLIB = "arm-none-eabi-ranlib" ,
73
- SIZETOOL = "arm-none-eabi-size" ,
74
-
75
- ARFLAGS = ["rc" ],
76
-
77
- )
78
-
79
61
def configure_uploader (env ):
80
62
upload_protocol = env .subst ("$UPLOAD_PROTOCOL" )
81
63
@@ -102,7 +84,6 @@ def configure_uploader(env):
102
84
platform = env .PioPlatform ()
103
85
board = env .BoardConfig ()
104
86
105
- configure_base_arduino_environment (env )
106
87
launch_arduino_core_builder (env , platform , board )
107
88
configure_uploader (env )
108
89
0 commit comments