-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Ubuntu Resolute requires that there be a "scripts/mod/modpost" binary… #8996
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
… during header compilation Signed-off-by: Patrick Yavitz <[email protected]>
WalkthroughA conditional copy operation is added to the linux-headers packaging process in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (6)📓 Common learnings📚 Learning: 2025-09-27T21:50:04.845ZApplied to files:
📚 Learning: 2025-09-27T21:47:58.020ZApplied to files:
📚 Learning: 2025-09-27T21:49:55.796ZApplied to files:
📚 Learning: 2025-09-22T21:52:01.225ZApplied to files:
📚 Learning: 2025-09-22T21:52:01.225ZApplied to files:
🧬 Code graph analysis (1)lib/functions/compilation/kernel-debs.sh (1)
🔇 Additional comments (1)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
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. Comment |
|
After reverting previously mentioned problem, i get further, but then it fails: |
|
|
||
| # Ubuntu Resolute requires that there be a "scripts/mod/modpost" binary during header compilation | ||
| [[ -f "${kernel_work_dir}/scripts/mod/modpost" ]] && | ||
| run_host_command_logged cp -v "${kernel_work_dir}/scripts/mod/modpost" "${headers_target_dir}/scripts/mod/modpost" |
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 problem here is under cross-compilation: if kernel is for arm64 but is built say on amd64, the headers package will end up with a wrong architecture binary.
Instead, we would need to ship enough sources so that the modpost binary can be built board-side during linux-headers install, like the others.
I've very similar issue with resolve_btfids, but that one is easy since we already ship enough sources to build it there.
Or: just wait until all Armbian kernels are 6.12+, and get rid of this whole packaging code (instead just do make bindeb).
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 problem here is under cross-compilation: if kernel is for arm64 but is built say on amd64, the headers package will end up with a wrong architecture binary.
Hmm. Ur right. So this isn't gonna work as is. I'm not sure how using make bindeb would change anything, as I already use make bindeb-pkg on my personal builds.
I am curious, which is something Igor touched on... "why Resolute"? Doesn't appear to be an issue on other releases.
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.
I meant "one day we can make Armbian use the kernel's own .deb packaging", as 6.12 landed support for cross-compiled headers -- the whole reason Armbian re-invented deb packaging square. (Originally, each Armbian kernel had patches for the packaging, and bumping kernels was hell).
I'll take a look to see if I can make the linux-headers install produce modpost and resolve_btfids binaries on install without having to ship the whole of linux source in linux-headers.
Ref resolute: no idea. I've not touched Ubuntu since noble.
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.
I see what you mean. I just ran a test doing it the new way which requires debhelper and libssl-dev:$arch to be installed and the headers came out clean.
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.
They have also removed the *-static suffix from qemu; `https://git.launchpad.net/ubuntu/+source/qemu/tree/debian/qemu-user-static.NEWS?h=ubuntu/plucky
Current package lineup; binfmt-support qemu-user qemu-user-binfmt
Of course this only relates to using Questing and Resolute as a host.
Ubuntu Resolute
Fail: https://paste.armbian.com/bacifoqope.bash
Success: https://paste.armbian.com/picelafexa.bash
NOTE: For reasons I am unable to generate a Ubuntu Resolute Armbian Image. Tests were run in a chroot after debootstraping Ubuntu Resolute.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.