-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Proposed Change - Add Kernel Version Parsing and Custom Description #8152
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
Conversation
""" WalkthroughThe changes introduce and utilize a new configuration variable, Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
lib/functions/configuration/interactive.sh (1)
179-207
: Add robust parsing for kernel version & description
The newget_kernel_info_for_branch()
function cleanly extractsKERNEL_MAJOR_MINOR
andKERNEL_DESCRIPTION
viaawk
. Consider adding a guard for a missing or unreadable config file:if [[ ! -r "$conf_file" ]]; then echo "|" return 0 fito avoid an
awk
error when${BOARDFAMILY}.conf
is absent.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
lib/functions/configuration/change-tracking.sh
(1 hunks)lib/functions/configuration/interactive.sh
(1 hunks)lib/library-functions.sh
(3 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
lib/functions/configuration/interactive.sh (1)
.github/generate_CODEOWNERS.sh (1)
display_alert
(6-6)
🔇 Additional comments (4)
lib/functions/configuration/change-tracking.sh (1)
43-45
: Track newKERNEL_DESCRIPTION
variable
IncludingKERNEL_DESCRIPTION
in thetrack_config_variables
call aligns change‐tracking with the new interactive parsing logic. This ensures that changes to custom kernel descriptions are properly displayed.lib/library-functions.sh (3)
103-111
: Verify relocation ofartifact-uboot.sh
sourcing
Moving the U-Boot artifact script immediately afterartifact-rootfs.sh
may be necessary if U-Boot packaging depends on rootfs variables. Please run a full U-Boot build to confirm no unintended side effects.
477-489
: Confirm patch order fordrivers_network
vsdrivers-harness
Swapping these two may impact interdependent patches. Ensure that network patches still apply cleanly when harness patches are loaded next.
697-705
: Approve movinggithub-actions.sh
aftergit.sh
Loading GitHub-Actions helpers immediately after coregit.sh
is logical, as those functions likely depend on Git operations being available.
61e0a7f
to
44d8f5d
Compare
Good idea! For the implementation part - looks decent, can be done better sure. Perhaps adding real-world example (or two) in a separate commit within this PR?
|
@igorpecovnik I reverted the change to library-functions since that was auto generated. There's already a few examples since it parses any family that declared KERNEL_MAJOR_MINOR in its kernel versions. I did also add custom kernel descriptions to k3.conf as an example - will be more relevant once a PR like this gets merged (so we do more build options and plan is to show both vendor and upstream options) - Grippy98#1 ![]() I'm not sure where to best document it. I can do a separate PR to documentation if you want, if you have a preferred spot let me know - just struggling to see where it fits best right now. Otherwise it will automatically start showing for any family that did declare that variable - Marvel - ![]() Samsung - ![]() Rockchip-rk3588 ![]() |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
config/sources/families/k3.conf
(1 hunks)
🔇 Additional comments (2)
config/sources/families/k3.conf (2)
27-27
: LGTM! Clear and descriptive kernel branch labeling.The addition of
KERNEL_DESCRIPTION
provides useful context for the current branch, making it easier for users to understand the purpose of this kernel option.
35-36
: LGTM! Consistent description format.The
KERNEL_DESCRIPTION
addition follows the same pattern as the current branch and provides clear identification of the edge branch purpose.
e715774
to
d97bab5
Compare
Adds ability to set custom descriptions for kernel inside family config and parses for kernel version.
Was auto-regenerated
a118c55
to
c994eef
Compare
Proposed change may not be ideal in how it's written - especially the helper function - so open to cleanup/discussion.
Description
This PR adds the option to set custom descriptions to kernel options inside the build system. If no custom description is given inside family.conf, the default descriptions are still used.
It also adds parsing and displaying the KERNEL_MAJOR_MINOR to the description from the family.conf.
Example -
Documentation summary for feature / change
How Has This Been Tested?
Checklist:
Please delete options that are not relevant.