blob: aaacbbe7f5995a49024691bb9d8c4da8afaf99b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# SPDX-License-Identifier: LGPL-2.1-or-later
"""Generate sample input for fuzz-bootspec"""
import json
import os
import sys
config = open(sys.argv[1]).read()
entries = [(os.path.basename(name), open(name).read())
for name in sys.argv[2:]]
data = {
'config': config,
'entries': entries,
}
print(json.dumps(data, indent=4))
|