blob: b276fb598b2c9a2341fcd6980f90d65ce7eb9fa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import config
# Code testing section
def _code_test():
def callback_writeeventlog(opt, opt_str, value, parser):
if len(parser.rargs) < 1 or parser.rargs[0].startswith("-"):
value = ""
else:
value = parser.rargs[0]
del parser.rargs[0]
setattr(parser.values, opt.dest, value)
parser = optparse.OptionParser()
parser.add_option("-w", "--write-log", help = "Writes the event log of the build to a bitbake event json file.",
action = "callback", callback=callback_writeeventlog, dest = "writeeventlog")
options, targets = parser.parse_args(sys.argv)
print (options, targets)
|