-
Notifications
You must be signed in to change notification settings - Fork 362
qps615-dlkm: fix devtool build directory and package version #3163
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
Open
paddy-chiu
wants to merge
1
commit into
qualcomm-linux:master
Choose a base branch
from
paddy-chiu:master
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.
+19
−0
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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,10 +11,29 @@ SRCREV = "2cbd7b9ddf2318d58044dcbd57dc187dfca55034" | |
|
|
||
| SRC_URI = "git://github.com/qualcomm-linux/TC9564_Host_Driver.git;protocol=https;branch=qcom" | ||
|
|
||
| QPS615_ORIGINAL_SRC_URI := "${SRC_URI}" | ||
|
|
||
| def qps615_pkgv_suffix(d): | ||
| import bb.fetch | ||
|
|
||
| data = d.createCopy() | ||
| data.setVar("SRC_URI", d.getVar("QPS615_ORIGINAL_SRC_URI")) | ||
| return bb.fetch.get_pkgv_string(data) | ||
|
|
||
| PV = "6.0.3+git" | ||
|
|
||
| # externalsrc removes the Git URI from SRC_URI, so package_setup_pkgv() cannot | ||
| # append the normal SCM revision suffix. Reuse BitBake's own revision formatter | ||
| # so devtool package versions match versions from the regular fetch/build path. | ||
| QPS615_PKGREV = "${@qps615_pkgv_suffix(d)}" | ||
| PKGV = "${@d.getVar('PV') + d.getVar('QPS615_PKGREV') if d.getVar('EXTERNALSRC') else d.getVar('PV')}" | ||
|
|
||
| B = "${S}/drivers/net/ethernet/toshiba/tc956x" | ||
|
|
||
| # devtool/externalsrc replaces B with a separate work directory unless the | ||
| # out-of-tree build directory is explicitly provided. | ||
| EXTERNALSRC_BUILD = "${EXTERNALSRC}/drivers/net/ethernet/toshiba/tc956x" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This part is ok. |
||
|
|
||
| # The original Makefile uses an "ifeq ($(pf), 1)" check to pick the default config. | ||
| # Therefore, pf=1 needs to be set while compiling for non-SRIOV VF config. | ||
| EXTRA_OEMAKE += "KCFLAGS='-DTC956X -DCONFIG_TC956X_PLATFORM_SUPPORT -DTC956X_SRIOV_PF' pf=1" | ||
|
|
||
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.
Above changes should be separated on a different commit.
Also, is this really qps615-dlkm specific? I think this is just an oe-core issue.