-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
sof-firmware: 1.7 -> 1.8 #130884
Closed
Closed
sof-firmware: 1.7 -> 1.8 #130884
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
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -3,18 +3,19 @@ | |||||||||||||||||||||
with lib; | ||||||||||||||||||||||
stdenv.mkDerivation rec { | ||||||||||||||||||||||
pname = "sof-firmware"; | ||||||||||||||||||||||
version = "1.7"; | ||||||||||||||||||||||
version = "1.8"; | ||||||||||||||||||||||
|
||||||||||||||||||||||
src = fetchFromGitHub { | ||||||||||||||||||||||
owner = "thesofproject"; | ||||||||||||||||||||||
repo = "sof-bin"; | ||||||||||||||||||||||
rev = "v${version}"; | ||||||||||||||||||||||
sha256 = "sha256-Z0Z4HLsIIuW8E1kFNhAECmzj1HkJVfbEw13B8V7PZLk="; | ||||||||||||||||||||||
sha256 = "sha256-NPbzDXZoZVWriV3klemX59ACnAlb357A5V/GbmzshyA="; | ||||||||||||||||||||||
}; | ||||||||||||||||||||||
|
||||||||||||||||||||||
dontFixup = true; # binaries must not be stripped or patchelfed | ||||||||||||||||||||||
|
||||||||||||||||||||||
installPhase = '' | ||||||||||||||||||||||
cd v${version}.x | ||||||||||||||||||||||
mkdir -p $out/lib/firmware/intel/ | ||||||||||||||||||||||
cp -a sof-v${version} $out/lib/firmware/intel/sof | ||||||||||||||||||||||
cp -a sof-tplg-v${version} $out/lib/firmware/intel/sof-tplg | ||||||||||||||||||||||
Comment on lines
+18
to
21
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. After further consideration I don't think it makes sense to use the upstream install script. However, I think it is worthwhile to address the review comments left by the bot:
Suggested change
|
||||||||||||||||||||||
|
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.
Starting with v1.8 upstream has a new install script: https://github.com/thesofproject/sof-bin/blob/v1.8/install.sh
Any chance we could use this?
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 script was introduced in 1.7. As stated in the README:
Having said that, we might as well use it? This seems to work:
The script installs some additional tools, not sure what they're for. We'll need a fixup phase that strips and patches these, but not the SOF binaries.
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.
Oh and
rsync
is needed as a build input.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.
Actually stripping and patching the firmware binaries doesn't seem to make a difference. Maybe it's just unnecessary?
If we want the tools to be thrown in with the firmware they should be added to
systemPackages
too.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.
@evenbrenden why dont you take this change over then since you seem to have thoughts about how it shoudl be done.
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.
IMO using the install script is a nice practice, but I think it's fine to merge this PR as is.
As for the tools, I'm really not sure if we should add them, just noticed them now. Either way that could be done in a separate PR.
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 track record of the SOF install script is also pretty bad. They manage to break the script with every other release. It was me, who switched the
installPhase
to just perform a recursive copy.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.
For copying two files the script is quite big and uses rsync which we don't need.