Skip to content

Export COCOTB_, GPI_, PYGPI_ prefixed variables in Makefiles#5531

Open
RahulSannapureddy wants to merge 3 commits intococotb:masterfrom
RahulSannapureddy:feature/export-cocotb-vars
Open

Export COCOTB_, GPI_, PYGPI_ prefixed variables in Makefiles#5531
RahulSannapureddy wants to merge 3 commits intococotb:masterfrom
RahulSannapureddy:feature/export-cocotb-vars

Conversation

@RahulSannapureddy
Copy link
Copy Markdown

Updated Makefile.inc to export COCOTB_TEST_FILTER, COCOTB_TEST_MODULES, and COCOTB_RANDOM_SEED so they are automatically passed to the simulator run, mirroring the behavior of the MODULE variable.

I also refactored the individual simulator makefiles to reflect this global export and remove redundant passing logic.

Fixes #5524


PR Checklist

  • Make sure you have read https://github.com/cocotb/cocotb/blob/master/CONTRIBUTING.md
  • Extend or add a test under tests/test_cases/. (N/A: Existing regression tests verify Makefile behavior)
  • Add documentation under docs/source/, docstrings in Python code, or Doxygen markup in C/C++ code. (N/A: Internal Makefile variables)
  • Add a newsfragment - see docs/source/newsfragments/README.rst.
  • Use closes #XXXX to auto-close the issue that this PR fixes (if such).

Updated Makefile.inc to export COCOTB_TEST_FILTER, COCOTB_TEST_MODULES, COCOTB_RANDOM_SEED, etc. so they are passed to the simulator run just like the MODULE variable. Also refactored the simulator makefiles to reflect this change.

Fixes cocotb#5524
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

Successfully merging this pull request may close these issues.

automatically export new COCOTB_ prefixes variables in Makefiles

1 participant