-
Notifications
You must be signed in to change notification settings - Fork 85
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
image_types_qcom.bbclass: Allow QCOMFLASH_DIR to be overridden #755
Open
quic-vkraleti
wants to merge
1
commit into
qualcomm-linux:master
Choose a base branch
from
quic-vkraleti:master-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What for? Please provide an example rather than a vague "users may need to".
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.
To use here: qualcomm-linux/meta-qcom-distro@d045d04
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.
What is the point? You can still use the .qcomflash subdir.
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.
What is wrong if qcomflash subdir is not used? This is not about what is correct and what is not. When a variable is defined, there is a general expectation that it can be overridden as needed. Making a hard assignment is not correct. If the intention is not to allow modifying the path, then it should not have been a variable and should have been hard-coded instead.
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.
The variable can be defined in order to make reading the code easier, like the const in other languages. Some variables differ from configuration to the configuration, there is a need to override them. Others are common and as such there is no need to override them. If you think that the existing value is not optimal, please change it instead of overriding it just for the distro: it makes user experience much more difficult if the deploy subdirs start to depend on the
$DISTRO
.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.
In house tools used by Qualcomm don't understand this directory organization. They are coded to work with the paths used in Kirkstone & Scarthgap branches of meta-qcom-hwe. (i.e. builddir/tmpdir/deploy/images/machine/imgName)
I am not comfortable discussing beyond this in a public forum.
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.
So, either those tools need to be fixed, or you can change a default value here. Both options are fine with me.
P.S. This is a public layer now, so such discussions are to be public.
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.
I don't think we should have a different behavior for this in meta-qcom-distro, we should have a default and use the same on both, otherwise this will cause confusion to our users (e.g. documentation would be different when using just the BSP layer).
Can we evaluate changing the internal tools? We can discuss the internal tooling needs via email.
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.
Tangentially related to this: in Angstrom we moved
DEPLOY_DIR
out ofTMPDIR
to the top level to make it easier to find, since it contains the things people actually consume. So theDISTRO
cleaning up how a BSP behaves is not unprecedented, but it does need careful consideration.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.
Well, Angstrom moved the whole DEPLOY_DIR.