Skip to content

Fix issue with stripped vmlinux and re-introduce Gentoo tests#454

Merged
scaronni merged 2 commits intodkms-project:masterfrom
Nowa-Ammerlaan:master
Oct 24, 2024
Merged

Fix issue with stripped vmlinux and re-introduce Gentoo tests#454
scaronni merged 2 commits intodkms-project:masterfrom
Nowa-Ammerlaan:master

Conversation

@Nowa-Ammerlaan
Copy link
Contributor

@Nowa-Ammerlaan Nowa-Ammerlaan commented Oct 23, 2024

  • silence complaints from readelf if, for example, the .comment section is missing from vmlinux. If readelf fails then we should always just continue with the second .config based check.
  • re-introduce the tests for Gentoo with more optimizations for speed.

[EDIT] Gentoo tests now complete successfully after 4 minutes, I'd say that is quite fast.

vmlinux is not guaranteed to contain a .comment section, if it is
missing then readelf complains. To prevent this complaint from
interfering with the tests redirect stderr through the pipe as well
for this check. This also silences some useless noise at runtime.

Functionally this changes nothing, both before and after this change
the lack of a .comment section would cause the code to fall back to
the second .config based check.

This issue was discovered on Gentoo, where the package manager will
strip most installed files to save space unless instructed not to by
the user.

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Should be faster now due to making better use of the binhost, setting
MAKEOPTS for parallelisation, using the parallel-install feature, and
using a faster repository syncing method.

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
@Nowa-Ammerlaan Nowa-Ammerlaan mentioned this pull request Oct 23, 2024
@scaronni
Copy link
Member

Perfect, than you!

@scaronni scaronni merged commit 8a8a9d1 into dkms-project:master Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants