Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOT of modtool make error for fpga testbench while using build folder with name other than build(like build-host or build-arm) #55

Open
Arshamza opened this issue Feb 13, 2021 · 0 comments

Comments

@Arshamza
Copy link

Arshamza commented Feb 13, 2021

Hi every one
there is a bug in CMakeLists.txt of OOT created of modtool latest version.
if you use "build" as the name of your "build folder" it will pass in "make rfnoc_block_custom_tb" but other than build, it will face error:

/bin/sh: ../../../../build/cmake/Modules/run_testbench.sh: No such file or directory
beacuse it search a non existing folder rather than "your-build-folder-name"
/gr-ettus/python/rfnoc_modtool/rfnoc-newmod/CMakeLists.txt
or /your-new-mod-oot(like rfnoc-custom)/CMakeLists.txt
line 194:        add_custom_target(${_target_name}
            COMMAND ${CMAKE_SOURCE_DIR}/build/cmake/Modules/run_testbench.sh ${UHD_FPGA_DIR} e310 ${CMAKE_CURRENT_SOURCE_DIR} xsim
it should be :
        add_custom_target(${_target_name}
            COMMAND ${CMAKE_SOURCE_DIR}/"your-build-folder-name"/cmake/Modules/run_testbench.sh ${UHD_FPGA_DIR} e310 ${CMAKE_CURRENT_SOURCE_DIR} xsim
or 
        add_custom_target(${_target_name}
            COMMAND ${CMAKE_BINARY_DIR}/cmake/Modules/run_testbench.sh ${UHD_FPGA_DIR} e310 ${CMAKE_CURRENT_SOURCE_DIR} xsim
thanks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant