RPi-Distro / rpi-source

Raspberry Pi kernel source installer
MIT License
140 stars 39 forks source link

Missing headers #15

Open molcik opened 1 year ago

molcik commented 1 year ago

Building DKMS modules on this kernel fails, because of missing headers.

Folders /lib/modules/KERNEL_V/build and /lib/modules/KERNEL_V/source are symlinked to non existing location /rpi-kernel/linux (this folder exists only in docker environment).

This causes dkms modules to fail.

Solution could be to include make INSTALL_HDR_PATH=/raspios/mnt/disk/usr/src headers_install in build.sh and then symlink the headers. Or copy whole /rpi-kernel/linux, but this would increase image size significantly.