mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-23 22:53:58 -06:00
🔨 Suppressible CONFIGURATION_EMBEDDING warning (#23545)
This commit is contained in:
parent
1e246d65ad
commit
8c83ddd201
2 changed files with 7 additions and 5 deletions
|
@ -163,7 +163,9 @@ def compute_build_signature(env):
|
|||
|
||||
# Generate a C source file for storing this array
|
||||
with open('Marlin/src/mczip.h','wb') as result_file:
|
||||
result_file.write(b'#warning "Generated file \'mc.zip\' is embedded"\n')
|
||||
result_file.write(b'#ifndef NO_CONFIGURATION_EMBEDDING_WARNING\n')
|
||||
result_file.write(b' #warning "Generated file \'mc.zip\' is embedded (Define NO_CONFIGURATION_EMBEDDING_WARNING to suppress this warning.)"\n')
|
||||
result_file.write(b'#endif\n')
|
||||
result_file.write(b'const unsigned char mc_zip[] PROGMEM = {\n ')
|
||||
count = 0
|
||||
for b in open(os.path.join(build_dir, 'mc.zip'), 'rb').read():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue