[Question]: How to generate kernel headers in an Armbian Legacy build for NanoPi Neo Core?
Description
Checklist
hideActivity
Show:
Details
Details
Assignee
Unassigned
UnassignedReporter

Priority
Created February 7, 2025 at 11:41 AM
Updated February 7, 2025 at 11:41 AM
What happened?
Hello everyone,
I’m compiling an Armbian Legacy image for the NanoPi Neo Core, and I need to include the kernel headers in the full system build. My goal is to have the headers available in the final image without needing to install them manually afterward.
So far, I’ve been compiling using ./compile.sh, but I haven't found a clear way to include the headers.
Some specific questions I have:
Is there an option in compile.sh to generate and include the headers?
Do I need to modify any file in config/ or the kernel Makefile to ensure they are built automatically?
Should the headers be generated as part of the kernel package (linux-headers-legacy-xxx.deb), or do they need to be compiled separately?
If anyone has successfully included kernel headers in a custom build, I’d really appreciate any guidance or example configurations.
Thanks in advance!
How to reproduce?
i follow the defaults steps un readme
Branch
main (main development branch)
On which host OS are you running the build script and observing this problem?
Ubuntu 24.04 Noble
Are you building on Windows WSL2?
[x] Yes, my Ubuntu/Debian/OtherOS is running on WSL2
Relevant log URL
No response
Code of Conduct
[x] I agree to follow this project's Code of Conduct
Raised by: https://github.com/mastin-zgz
https://github.com/armbian/build/issues/7792