Browse Source

🩹 Fix CONFIGURATION_EMBEDDING

Followup to b7fd046d59
Scott Lahteine 1 year ago
parent
commit
becef39c19
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      buildroot/share/PlatformIO/scripts/signature.py

+ 4
- 4
buildroot/share/PlatformIO/scripts/signature.py View File

@@ -39,8 +39,8 @@ def get_file_sha256sum(filepath):
39 39
 # Compress a JSON file into a zip file
40 40
 #
41 41
 import zipfile
42
-def compress_file(filepath, outputbase):
43
-	with zipfile.ZipFile(outputbase + '.zip', 'w', compression=zipfile.ZIP_BZIP2, compresslevel=9) as zipf:
42
+def compress_file(filepath, outpath):
43
+	with zipfile.ZipFile(outpath, 'w', compression=zipfile.ZIP_BZIP2, compresslevel=9) as zipf:
44 44
 		zipf.write(filepath, compress_type=zipfile.ZIP_BZIP2, compresslevel=9)
45 45
 
46 46
 #
@@ -63,7 +63,7 @@ def compute_build_signature(env):
63 63
 		hashes += get_file_sha256sum(header)[0:10]
64 64
 
65 65
 	marlin_json = build_path / 'marlin_config.json'
66
-	marlin_zip = build_path / 'mc'
66
+	marlin_zip = build_path / 'mc.zip'
67 67
 
68 68
 	# Read existing config file
69 69
 	try:
@@ -260,7 +260,7 @@ def compute_build_signature(env):
260 260
 	# Generate a C source file for storing this array
261 261
 	with open('Marlin/src/mczip.h','wb') as result_file:
262 262
 		result_file.write(
263
-			  b'#ifndef NO_CONFIGURATION_EMBEDDING_WARNING\n'
263
+				b'#ifndef NO_CONFIGURATION_EMBEDDING_WARNING\n'
264 264
 			+ b'  #warning "Generated file \'mc.zip\' is embedded (Define NO_CONFIGURATION_EMBEDDING_WARNING to suppress this warning.)"\n'
265 265
 			+ b'#endif\n'
266 266
 			+ b'const unsigned char mc_zip[] PROGMEM = {\n '

Loading…
Cancel
Save