-
Notifications
You must be signed in to change notification settings - Fork 2k
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
makefiles/tools/serial: ensure PORT is set and fail early. #12479
Conversation
By ensuring the PORT auto-detection worked, we can give meaningful error messages and fail earlier. This uses ensure_value from makefiles/utils/checks.mk. An include was added to Makefile.include to make this fuction available to all other makefiles.
I'm not sure I understand the goal of this PR. if I do
it indeed fails early. But this is not the usual way of setting a port. The variable used in general is
|
It was just to get the commit in faster since @jcarrano is not working on the project anymore. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK and go
Contribution description
This commit has been cherry-picked from #10342
This also avoids evaluating
$(PORT)
.Testing procedure
Set
PORT_LINUX
empty:Issues/PRs references
From #10342, closes #10342