Invoking cogeno¶
Synopsis¶
cogeno [OPTIONS]
Description¶
Cogeno transforms files in a very simple way: it finds chunks of script code embedded in them, executes the script code, and places its output combined with the original file content into the generated file. It supports Python and Jinja2 scripts.
Options¶
The following options are understood:
-h, --helpshow this help message and exit
-x, --delete-codeDelete the generator code from the output file.
-w, --warn-emptyWarn if a file has no generator code in it.
-n ENCODING, --encoding ENCODINGUse ENCODING when reading and writing files.
-U, --unix-newlinesWrite the output with Unix newlines (only LF line-endings).
-D DEFINE, --define DEFINEDefine a global string available to your generator code.
-m DIR [DIR ...], --modules DIR [DIR ...]Use modules from modules DIR. We allow multiple
-t DIR [DIR ...], --templates DIR [DIR ...]Use templates from templates DIR. We allow multiple
-c FILE, --config FILEUse configuration variables from configuration FILE.
-k FILE, --cmakecache FILEUse CMake variables from CMake cache FILE.
-d FILE, --dts FILELoad the device tree specification from FILE.
-b DIR [DIR ...], --bindings DIR [DIR ...]Use bindings from bindings DIR for device tree extraction. We allow multiple.
-e FILE, --edts FILEWrite or read EDTS database to/ from FILE.
-i FILE, --input FILEGet the input from FILE.
-o FILE, --output FILEWrite the output to FILE.
-l FILE, --log FILELog to FILE.
-k FILE, --lock FILEUse lock FILE for concurrent runs of cogeno.