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

sys-kernel/linux-firmware: compress firmwares via copy-firmware.sh #37213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

puleglot
Copy link
Contributor

@puleglot puleglot commented Jun 19, 2024

Currently we only skip compression of AMD microcode, but we should skip it for all files labeled as RawFile in WHENCE. copy-firmware.sh got support for compressing firmware files at some point and it does it right.

A notable consequence of this change is that saved config now contains file names with compression extension.

Closes: https://bugs.gentoo.org/934537


Please check all the boxes that apply:

  • I can submit this contribution in agreement with the Copyright Policy.
  • I have certified the above via adding a Signed-off-by line to every commit in the pull request.
  • This contribution has not been created with the assistance of Natural Language Processing artificial intelligence tools, in accordance with the AI policy.
  • I have run pkgcheck scan --commits --net to check for issues with my commits.

Please note that all boxes must be checked for the pull request to be merged.

@puleglot
Copy link
Contributor Author

Note that I didn't ported all changes to live ebuild, only those that touches passing options to copy-firmware.sh

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @puleglot
Areas affected: ebuilds
Packages affected: sys-kernel/linux-firmware

sys-kernel/linux-firmware: chithanh, @ZeroChaos-, @mpagano, @gentoo/kernel

Linked bugs

Bugs linked: 934537


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Jun 19, 2024
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-06-19 08:36 UTC
Newest commit scanned: 9130007
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/44e6687b16/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-06-19 08:56 UTC
Newest commit scanned: 13e0c10
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/fcaf1596ba/output.html

Currently we only skip compression of AMD microcode, but we should skip
it for all files labeled as RawFile in WHENCE. copy-firmware.sh got
support for compressing firmware files at some point and it does it
right.

A notable consequence of this change is that saved config now contains
file names with compression extension.

Closes: https://bugs.gentoo.org/934537
Signed-off-by: Alexander Tsoy <[email protected]>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-06-19 09:36 UTC
Newest commit scanned: b880333
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/51f8de990d/output.html

@AndrewAmmerlaan
Copy link
Member

Do you know if there is a reason why it wasn't done like this originally in: https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-kernel/linux-firmware?id=12113f5d57730f8c36d3df433ec7f1606519e360 ?

@puleglot
Copy link
Contributor Author

Do you know if there is a reason why it wasn't done like this originally in: https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-kernel/linux-firmware?id=12113f5d57730f8c36d3df433ec7f1606519e360 ?

Because upstream added support for this later:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=ee91452dac5abfc4c5b9827cf55e701d8c0ca678

@thesamesam thesamesam requested a review from mpagano June 26, 2024 10:53
@thesamesam
Copy link
Member

thesamesam commented Jun 26, 2024

Could you note that in the commit message?

nevermind, it's clear enough

@mpagano
Copy link
Contributor

mpagano commented Jun 26, 2024

Is it normal to do a new commit like this so we can't see the diff ?

@AndrewAmmerlaan
Copy link
Member

Is it normal to do a new commit like this so we can't see the diff ?

The revision bump is required since the effective list of files excluded from compressing is changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR.
Projects
None yet
6 participants