| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* grc: Implement --output functionality for grcc
Reference gnradio Issue #2799.
This commit adjusts some logic and code to enable the --output switch
for grcc.
Prior to this commit, grcc would only output to the GRC_HIER_PATH.
The commit adjusts the various Generators in grc/core/generator to
consistently use
output_dir for the output directory.
If it's None, then take from the platform.config.hier_block_lib_dir
attribute which can be set via the
GRC_HIER_PATH env var.
The cpp_top_block generator was also modified to remote its __init__ function
which appeared identical to its base TopBlockGenerator.
I did not test c++ GRC output.
* Make output directory if does not exist
* Duplicate TopBlockGenerator __init__ without .py extension; base class object
* Typo in os.makedirs kwarg
* Added _warnings method from TopBlockGenerator
Signed-off-by: Jared Dulmage <jared.dulmage@caliola.com>
|
|
|
|
| |
Signed-off-by: Håkon Vågsether <hakon.vagsether@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a hier2 block contains more than one ( input or output ) message port
GRC generates a wrong yml description of this block.
If you restart GRC, GRC terminates with an error messages is no longer usable.
This can be verified with the example here: "gr-blocks/examples/msg_passing/hier"
This example is running in 3.7 without any problems.
The modification in platform.py avoids the termination of grc
if there is an error in the flowgraph to be loaded.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before this fix, generating hier blocks with message pads would show the
following error:
```
Generate Error: 'Port' object has no attribute 'id'
>>> Failure
Traceback (most recent call last):
[...]
File "[...]/gnuradio/grc/core/generator/hier_block.py", line 102, in
_build_block_n_from_flow_graph_io
p['id'] = port.id
AttributeError: 'Port' object has no attribute 'id'
```
|
| |
|
|
|
|
|
| |
Previously, typos in hier_block.py were creating errors. This was a bug
when converting from Cheetah to Mako.
|
| |
|
| |
|
| |
|
| |
|
|
Includes basic converter from XML/Cheetah to YAML/Mako based block format.
|