9
9
start_year = 2024
10
10
11
11
scheme_default = [
12
- ("boot" , "mcuboot" , 128 ),
12
+ ("boot" , "mcuboot" , 64 ),
13
+ ("sys" , "sys" , 64 ),
13
14
("slot0" , "image-0" , - 1 ),
14
15
("slot1" , "image-1" , - 1 ),
15
16
("slot0-lpcore" , "image-0-lpcore" , 32 ),
20
21
]
21
22
22
23
scheme_amp = [
23
- ("boot" , "mcuboot" , 128 ),
24
+ ("boot" , "mcuboot" , 64 ),
25
+ ("sys" , "sys" , 64 ),
24
26
("slot0" , "image-0" , - 3 ),
25
27
("slot1" , "image-1" , - 3 ),
26
28
("slot0-appcpu" , "image-0-appcpu" , - 1 ),
@@ -162,8 +164,8 @@ def generate_partition_table_dtsi(flash_size_mb, flash_offset_kb, scheme, scheme
162
164
163
165
with open (output_file , "w" ) as f :
164
166
f .write ("\n " .join (output ))
165
-
166
- print (f"Writing file { output_file } " )
167
+
168
+ print (f"Output file: { output_file } " )
167
169
168
170
def generate_default_partition_table_dtsi (flash_size_mb , flash_offset_kb , scheme_name ):
169
171
@@ -185,8 +187,8 @@ def generate_default_partition_table_dtsi(flash_size_mb, flash_offset_kb, scheme
185
187
186
188
with open (output_file , "w" ) as f :
187
189
f .write ("\n " .join (output ))
188
-
189
- print (f"Writing file { output_file } " )
190
+
191
+ print (f"Output file: { output_file } " )
190
192
191
193
if __name__ == "__main__" :
192
194
@@ -195,6 +197,8 @@ def generate_default_partition_table_dtsi(flash_size_mb, flash_offset_kb, scheme
195
197
if len (sys .argv ) > 1 :
196
198
output_path = sys .argv [1 ]
197
199
200
+ output_path = os .path .realpath (output_path )
201
+
198
202
for offset_kb in flash_offsets_kb :
199
203
for flash_mb in flash_sizes_mb :
200
204
generate_partition_table_dtsi (flash_mb , offset_kb , scheme_default , "default" )
0 commit comments