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

[bazel,dvsim] remove gen-binaries.py's reliance on meson_init.sh #12634

Merged
merged 2 commits into from
May 13, 2022

Conversation

timothytrippel
Copy link
Contributor

Meson will soon be removed from our project and replaced entirely with
bazel (#12449). This updates the the OTBN gen-binaries.py script to
not rely on the presence of the .env file that was produced by the
meson_init.sh script to provide locations to the RV32 toolchain.

Instead, the gen-binaries.py script now uses environment variables to
get the locations of the RV32 toolchain tools, which are populated via
queries to bazel.

This fixes #12447.

Signed-off-by: Timothy Trippel [email protected]

hw/ip/otbn/dv/uvm/get-toolchain-paths.sh Outdated Show resolved Hide resolved
@timothytrippel timothytrippel force-pushed the bazelify-otbn-utils branch 3 times, most recently from ea2aa31 to 1d6e944 Compare May 13, 2022 07:00
Copy link
Contributor

@rswarbrick rswarbrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather you hadn't done the first commit: the project hasn't standardised on a Python formatter and to my eyes the results are much uglier than what was there already!

It's not a big deal and it seems silly to have to re-do the second patch, so don't worry too much. But please could you avoid re-formatting perfectly reasonable looking code until there's a project-level agreement on Python formatters (yapf isn't the only contender, and I also think that Python is a language where it might be better to mandate PEP8 compliance with, say, flake8 and then just expect people to format their code sensibly on their own).

hw/ip/otbn/dv/uvm/gen-binaries.py Outdated Show resolved Hide resolved
hw/ip/otbn/dv/uvm/gen-binaries.py Outdated Show resolved Hide resolved
hw/ip/otbn/dv/uvm/gen-binaries.py Outdated Show resolved Hide resolved
hw/ip/otbn/dv/uvm/gen-binaries.py Outdated Show resolved Hide resolved
Meson will soon be removed from our project and replaced entirely with
bazel (lowRISC#12449). This updates the the OTBN `gen-binaries.py` script to
not rely on the presence of the `.env` file that was produced by the
`meson_init.sh` script to provide locations to the RV32 toolchain.

Instead, the `gen-binaries.py` script now uses environment variables to
get the locations of the RV32 toolchain tools, which are populated via
queries to bazel.

This fixes lowRISC#12447.

Signed-off-by: Timothy Trippel <[email protected]>
@timothytrippel timothytrippel merged commit 26c7aa4 into lowRISC:master May 13, 2022
@timothytrippel timothytrippel deleted the bazelify-otbn-utils branch May 13, 2022 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bazel,dvsim] remove gen-binaries.py's reliance on meson_init.sh script
3 participants