|
@@ -163,7 +163,9 @@ def compute_build_signature(env):
|
163
|
163
|
|
164
|
164
|
# Generate a C source file for storing this array
|
165
|
165
|
with open('Marlin/src/mczip.h','wb') as result_file:
|
166
|
|
- result_file.write(b'#warning "Generated file \'mc.zip\' is embedded"\n')
|
|
166
|
+ result_file.write(b'#ifndef NO_CONFIGURATION_EMBEDDING_WARNING\n')
|
|
167
|
+ result_file.write(b' #warning "Generated file \'mc.zip\' is embedded (Define NO_CONFIGURATION_EMBEDDING_WARNING to suppress this warning.)"\n')
|
|
168
|
+ result_file.write(b'#endif\n')
|
167
|
169
|
result_file.write(b'const unsigned char mc_zip[] PROGMEM = {\n ')
|
168
|
170
|
count = 0
|
169
|
171
|
for b in open(os.path.join(build_dir, 'mc.zip'), 'rb').read():
|