summaryrefslogtreecommitdiff
path: root/gr-utils/modtool/core
Commit message (Collapse)AuthorAgeFilesLines
* utils: pep8 formattingJosh Morman2021-11-2410-187/+277
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: move OOTs equal to components for 3.10 mormj2021-11-249-31/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * modtool: move OOTs equal to components for 3.10 Signed-off-by: Josh Morman <jmorman@gnuradio.org> * pybind: update some python dir references Signed-off-by: Josh Morman <jmorman@gnuradio.org> * cmake: have pybind address the correct header Signed-off-by: Josh Morman <jmorman@gnuradio.org> * runtime: extend the python search path allow OOT modules to be installed in other places in PYTHONPATH that have a gnuradio directory Signed-off-by: Josh Morman <jmorman@gnuradio.org> * modtool: update python paths for rm Signed-off-by: Josh Morman <jmorman@gnuradio.org> * modtool: minor fixes for new dir structure Signed-off-by: Josh Morman <jmorman@gnuradio.org> * modtool: update the installed cmake targets Signed-off-by: Josh Morman <jmorman@gnuradio.org> * modtool: add include(CMakePackageConfigHelpers) Signed-off-by: Josh Morman <jmorman@gnuradio.org> * modtool: test_modules dir under gnuradio Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: fix CMake export configChristoph Koehler2021-11-121-1/+0
| | | | Signed-off-by: Christoph Koehler <christoph@zerodeviation.net>
* modtool: complete renaming of update-hash-onlyJosh Morman2021-10-261-3/+3
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: ability to fix the hash using modtoolmormj2021-10-221-4/+9
| | | | | | * modtool: bind --update-hash-only command Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* modtool: Fix `rm`, `disable`, `rename` and `makeyml` similar namingSolomon2021-06-254-28/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * modtool: Fix issue #2672 for `rm` In the event that the user specifies only one specific block to delete, this PR ensures that the files for said block is not confused with files of similarly named blocks. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au> * modtool: Fix issue #2672 for `rename` and more This commit fixes the following for the `rename` command. 1. Issue #2672 that also affects `rename` 2. Fixes errorneous replacement of similarly named blocks in CMakeLists 3. Replaced the file search in `_run_file_rename` from `file.find` to `re.search` so that block names will not be confused with names with one or two prefix characters (e.g. "decoder" vs "adecoder"). 4. Renames the bind function in `python_bindings.cc` as well. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au> * modtool: Fix Issue #2672 for `disable` & more When the user specifies a block name, only the block with that specific blockname should be disabled. Prior to this PR, all blocks matching said specified block name are disabled. This PR fixes it. This PR also fixes what appears to be a spelling error `self._info`. The error is thrown for OOT module version 38: Attribute error `'ModToolDisable' object has no attribute '_info'` Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au> * modtool: Fix Issue #2672 for `makeyaml` This PR fixes issue #2672 which also affects the `makeyaml` command. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* modtool: Fix TypeErrorSolomon Tan2021-06-162-16/+35
| | | | | | | Fixes #4682, a bug triggered in the `rm` and `bind` commands when the block name (or regex) is entered as stdin rather than an argument. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
* modtool: improve the 'invalid name' error messageFerenc Gerlits2021-05-035-12/+14
| | | | | | also fix some validations which checked a prefix instead of the whole name Signed-off-by: Ferenc Gerlits <fgerlits@gmail.com>
* Make additional includes and defines available in the bind processVolker Schroer2020-10-281-1/+4
|
* Adding optional parameter addl_includes to gr_modtool bind, space addedVolker Schroer2020-10-151-1/+2
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-0311-33/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* modtool: Run all generated C++ code through clang-formatThomas Habets2020-07-142-1/+23
|
* pybind: update modtool renameJosh Morman2020-06-041-0/+30
|
* pybind: clean up unused script and modtool testsJosh Morman2020-06-041-1/+0
|
* pybind: incorporate modtool rmJosh Morman2020-06-042-12/+28
|
* modtool: add hash checking into initial block addJosh Morman2020-06-041-2/+10
|
* pybind: add hash check to binding file creation (#3472)mormj2020-06-041-0/+2
|
* utils: add functionality to generate bindingsJosh Morman2020-06-048-115/+165
| | | | | | | | This currently exists in two places 1) Bindtool (longevity TBD) which calls blocktool to parse the public header file in the include directory 2) Modtool - binding of headers added to add and bind. rm, update, info, etc still TODO
* modtool: Corrected Single and Double Quotesalekhgupta14412020-04-191-2/+2
|
* Code Cleanup core filesalekhgupta14412020-04-196-38/+29
|
* modtool: Replaced str.format() by Python f'strings in all codesalekhgupta14412020-04-199-94/+104
|
* gr-utils: restructure {mod,block}tool foldersjapm482020-04-1011-0/+1731
Move modtool and blocktool outside of the python folder, as per issue #2462.