Creating OOT Module in GR 4.0: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(Created page with "python3 $GR_PREFIX/src/gnuradio/utils/modtool/create_mod.py myOOT python3 $GR_PREFIX/src/gnuradio/utils/modtool/create_block.py blockname")
 
No edit summary
Line 1: Line 1:
python3 $GR_PREFIX/src/gnuradio/utils/modtool/create_mod.py myOOT
== Creating the OOT ==


python3 $GR_PREFIX/src/gnuradio/utils/modtool/create_block.py blockname
In place of modtool, there is a script in the <code>gnuradio</code> source tree that will perform the same function
 
<nowiki>python3 $GR_PREFIX/src/gnuradio/utils/modtool/create_mod.py myOOT</nowiki>
 
This will create a skeleton OOT with the following structure:
 
<nowiki>
gr4-myOOT/
├── blocklib
│   └── myOOT
│      ├── include
│      │   └── gnuradio
│      │      └── myOOT
│      │          └── meson.build
│      ├── lib
│      │   └── meson.build
│      ├── python
│      │   └── myOOT
│      │      └── __init__.py
│      └── test
│          └── meson.build
├── meson.build
└── meson_options.txt</nowiki>
 
== Creating a Block ==
 
To create a block, there is a helper scripts in the <code>gnuradio</code> source tree:
<nowiki>cd gr4-myOOT
python3 $GR_PREFIX/src/gnuradio/utils/modtool/create_block.py myblock</nowiki>
 
This will create the necessary files for compiling a block by placing a minimal set of files in the following structure:
 
<nowiki>├── blocklib
│   └── myOOT
│      ├── myblock
│      │   ├── myblock_cpu.cc
│      │   ├── myblock_cpu.h
│      │   └── myblock.yml</nowiki>
 
All of the files needed to create the block are located in one place, and all of the normal boilerplate will be automatically generated.
 
From here let's start with the <code>.yml</code> file

Revision as of 11:09, 8 September 2022

Creating the OOT

In place of modtool, there is a script in the gnuradio source tree that will perform the same function

python3 $GR_PREFIX/src/gnuradio/utils/modtool/create_mod.py myOOT

This will create a skeleton OOT with the following structure:

gr4-myOOT/
├── blocklib
│   └── myOOT
│       ├── include
│       │   └── gnuradio
│       │       └── myOOT
│       │           └── meson.build
│       ├── lib
│       │   └── meson.build
│       ├── python
│       │   └── myOOT
│       │       └── __init__.py
│       └── test
│           └── meson.build
├── meson.build
└── meson_options.txt

Creating a Block

To create a block, there is a helper scripts in the gnuradio source tree:

cd gr4-myOOT
python3 $GR_PREFIX/src/gnuradio/utils/modtool/create_block.py myblock

This will create the necessary files for compiling a block by placing a minimal set of files in the following structure:

├── blocklib
│   └── myOOT
│       ├── myblock
│       │   ├── myblock_cpu.cc
│       │   ├── myblock_cpu.h
│       │   └── myblock.yml

All of the files needed to create the block are located in one place, and all of the normal boilerplate will be automatically generated.

From here let's start with the .yml file