File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 94
94
OBJCOPY = "arm-none-eabi-objcopy" ,
95
95
RANLIB = "arm-none-eabi-gcc-ranlib" ,
96
96
SIZETOOL = "arm-none-eabi-size" ,
97
- SIZEPRINTCMD = "$SIZETOOL -B -d $SOURCES"
97
+ SIZEPRINTCMD = "$SIZETOOL -B -d $SOURCES" ,
98
+ TEENSYSECURE = "teensy_secure"
98
99
)
99
100
100
101
env .Append (
125
126
)
126
127
)
127
128
129
+ if build_core == "teensy4" :
130
+ env .Append (
131
+ BUILDERS = dict (
132
+ HexToEhex = Builder (
133
+ action = env .VerboseAction (" " .join ([
134
+ "$TEENSYSECURE" ,
135
+ "encrypthex" ,
136
+ board_config .id .upper (),
137
+ "$SOURCES"
138
+ ]), "Encrypting $TARGET" ),
139
+ suffix = ".ehex"
140
+ )
141
+ )
142
+ )
143
+
128
144
if not env .get ("PIOFRAMEWORK" ):
129
145
env .SConscript ("frameworks/_bare_arm.py" )
130
146
161
177
else :
162
178
target_elf = env .BuildProgram ()
163
179
target_firm = env .ElfToHex (join ("$BUILD_DIR" , "${PROGNAME}" ), target_elf )
180
+ if build_core == "teensy4" :
181
+ target_firm = env .HexToEhex (join ("$BUILD_DIR" , "${PROGNAME}" ), target_firm )
164
182
env .Depends (target_firm , "checkprogsize" )
165
183
166
184
AlwaysBuild (env .Alias ("nobuild" , target_firm ))
You can’t perform that action at this time.
0 commit comments