Skip to content

Check kernel version and add DWARF config option if kernel version is 5.12 or later#7

Open
scratchadams wants to merge 2 commits into
deepseagirl:mainfrom
scratchadams:main
Open

Check kernel version and add DWARF config option if kernel version is 5.12 or later#7
scratchadams wants to merge 2 commits into
deepseagirl:mainfrom
scratchadams:main

Conversation

@scratchadams

Copy link
Copy Markdown

This fixes the issue with debugging kernel images that was outline in issue #4. I've tested this on kernel versions 6.5, 6.6, and 6.7

This config option is only available on kernel versions starting from 5.12 according to: https://cateee.net/lkddb/web-lkddb/DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT.html

@deepseagirl

deepseagirl commented Jan 3, 2025

Copy link
Copy Markdown
Owner

hello! just a comment to say I've been thinking about this change. i was working on your pr further, to make it use the simple version parser we already use in another function within easylkb, instead of bringing in a new library to install.

but your change is good, thank you for setting this up! I plan on using it with just the slight modification of doing the version check ourselves, since for our purposes we don't need the full granularity of the version checking offered by packaging.version but simply to check the major & minor versions to test whether it's 5.12 or later.

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