diff options
| author | Ha Thach <[email protected]> | 2025-10-03 22:04:29 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-03 22:04:29 +0700 |
| commit | 6ce46da042eb9ab243e4127ddcac57519c0a226f (patch) | |
| tree | cd7d2bf2894d85dbdd5d633747a1c328e75ecbb6 /tools | |
| parent | c1bf19ed6cf1eaa791f221c1bc5ce4b3d069f76d (diff) | |
| parent | f3f6046e0bbcf9b3b926ca5f0e1882d1ceb9652d (diff) | |
Merge pull request #3277 from hathach/remove-claude-code
remove claude code workflow
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/file2carray.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/file2carray.py b/tools/file2carray.py index abfb4e21b..7150364bf 100644 --- a/tools/file2carray.py +++ b/tools/file2carray.py @@ -35,7 +35,8 @@ def main(): fout_name = fin_name + '.h' with open(fout_name, 'w') as fout: print(f"Converting {fin_name} to {fout_name}") - fout.write(f'const size_t bindata_len = {len(contents)};\n') + fout.write(f'enum {{ BINDATA_LEN = {len(contents)} }};\n') + fout.write(f'const size_t bindata_len = BINDATA_LEN;\n') fout.write(f'const uint8_t bindata[] __attribute__((aligned(16))) = {{') print_carray(fout, contents) fout.write('};\n') |
