meson: Move all code generation scripts to utils/codegen/
We have multiple code generation scripts in utils/, mixed with other miscellaneous utilities, as well as a larger code base based on mojom in utils/ipc/. To make code sharing easier between the generator scripts, without creating a mess in the utils/ directory, move all the code generation code to utils/codegen/. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
d3bf27180e
commit
50c92cc7e2
91 changed files with 15 additions and 15 deletions
|
@ -48,7 +48,7 @@ tracepoints_h = custom_target(
|
|||
'tp_header',
|
||||
input : ['tracepoints.h.in', tracepoint_files],
|
||||
output : 'tracepoints.h',
|
||||
command : [gen_tracepoints_header, include_build_dir, '@OUTPUT@', '@INPUT@'],
|
||||
command : [gen_tracepoints, include_build_dir, '@OUTPUT@', '@INPUT@'],
|
||||
)
|
||||
|
||||
libcamera_internal_headers += tracepoints_h
|
||||
|
|
13
utils/codegen/meson.build
Normal file
13
utils/codegen/meson.build
Normal file
|
@ -0,0 +1,13 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
## Code generation
|
||||
|
||||
py_modules += ['jinja2', 'yaml']
|
||||
|
||||
gen_controls = files('gen-controls.py')
|
||||
gen_formats = files('gen-formats.py')
|
||||
gen_header = files('gen-header.sh')
|
||||
gen_ipa_pub_key = files('gen-ipa-pub-key.py')
|
||||
gen_tracepoints = files('gen-tp-header.py')
|
||||
|
||||
subdir('ipc')
|
|
@ -1,15 +1,7 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
subdir('ipc')
|
||||
subdir('codegen')
|
||||
subdir('ipu3')
|
||||
subdir('tracepoints')
|
||||
|
||||
## Code generation
|
||||
py_modules += ['yaml']
|
||||
gen_controls = files('gen-controls.py')
|
||||
gen_formats = files('gen-formats.py')
|
||||
gen_header = files('gen-header.sh')
|
||||
|
||||
## Module signing
|
||||
gen_ipa_priv_key = files('gen-ipa-priv-key.sh')
|
||||
gen_ipa_pub_key = files('gen-ipa-pub-key.py')
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
py_modules += ['jinja2']
|
||||
|
||||
gen_tracepoints_header = find_program('./gen-tp-header.py')
|
Loading…
Add table
Add a link
Reference in a new issue