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

build.wake: Fix string interpolation of bootrom path. #2535

Merged
merged 1 commit into from
Jun 25, 2020

Conversation

richardxia
Copy link
Member

Related issue:

Type of change: bug report

Impact: no functional change

Development Phase: implementation

Release Notes

I can't actually add @mmjconolly as a reviewer, since he does not have write access to this repo, so @jackkoenig will have to be one to actually approve this PR.

In #2526, one of the strings that we changed was a single-quoted string, which does not do string interpolation, which resulted in a string that literally had a value of {rocketChipRoot}/bootrom/bootrom.img. This fixes it to be a double-quoted string, which is interpolated.

BTW, if either of you knows how to set up a Vim syntax highlighting file to specially highlight interpolated expressions within a string, it'd be nice to get this into the Wake Vim syntax highlighting file so that it's more obvious when a string is not interpolated: https://github.com/sifive/wake/blob/96a0323d49ab12a9313ec0b4c385329e2d0f4232/share/doc/wake/syntax/vim/syntax/wake.vim

@richardxia richardxia requested a review from jackkoenig June 25, 2020 05:03
@mmjconolly
Copy link
Contributor

Ah I’ll be more careful with that in future

@richardxia
Copy link
Member Author

Ah I’ll be more careful with that in future

No worries, I've totally made that mistake too, and in other languages as well.

@richardxia richardxia merged commit 8e73bdd into master Jun 25, 2020
@richardxia richardxia deleted the fix-wake-string-interpolation branch June 25, 2020 23:03
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.

3 participants