[Question]: How to generate kernel headers in an Armbian Legacy build for NanoPi Neo Core?

Description

  1.  

    1.  

      1. 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!

  1.  

    1.  

      1. How to reproduce?

i follow the defaults steps un readme

  1.  

    1.  

      1. Branch

main (main development branch)

  1.  

    1.  

      1. On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

  1.  

    1.  

      1. Are you building on Windows WSL2?

  • [x] Yes, my Ubuntu/Debian/OtherOS is running on WSL2

  1.  

    1.  

      1. Relevant log URL

No response

  1.  

    1.  

      1. 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

Checklist

hide

Activity

Show:

Details

Assignee

Reporter

Priority

Created February 7, 2025 at 11:41 AM
Updated February 7, 2025 at 11:41 AM