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

DATA_DIR override with environment variable #333

Closed
mmicko opened this issue Apr 17, 2023 · 3 comments
Closed

DATA_DIR override with environment variable #333

mmicko opened this issue Apr 17, 2023 · 3 comments

Comments

@mmicko
Copy link

mmicko commented Apr 17, 2023

Would it be possible to add ability to override DATA_DIR location with environment variable ( OPENFPGA_LOADER_DIR for example) ? With oss-cad-suite can place their files anywhere, so using environment variable or checking it relative to binary position are only options.

https://github.com/trabucayre/openFPGALoader/blob/master/src/xilinx.cpp#L472

@trabucayre
Copy link
Owner

Is this solution looks good to you?
With this commit if you set OPENFPGALOADER_SOJ_DIR to priovides an alternate spiOverJtag bitstreams directory, this directory will be used, instead of DATA_DIR to open the bridge.

@mmicko
Copy link
Author

mmicko commented Apr 17, 2023

Thanks @trabucayre this looks just right. Will work on change required on oss-cad-suite tomorrow.

@mmicko
Copy link
Author

mmicko commented Apr 18, 2023

Thanks, all working now as expected

@mmicko mmicko closed this as completed Apr 18, 2023
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

2 participants