Skip to content

Commit

Permalink
scripts: install .config in /usr/src/linux-headers-$kver
Browse files Browse the repository at this point in the history
This is needed by dkms and update-initramfs.

Signed-off-by: Mingcong Bai <jeffbai@aosc.io>
  • Loading branch information
MingcongBai authored and Avenger-285714 committed Dec 11, 2024
1 parent 3c262ed commit b8d3512
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/package/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ install_kernel_headers () {

CC="${DEB_HOST_GNU_TYPE}-gcc" "${srctree}/scripts/package/install-extmod-build" "${pdir}/usr/src/linux-headers-${version}"

# Install .config archive
cp .config ${pdir}/usr/src/linux-headers-${version}/

mkdir -p $pdir/lib/modules/$version/
ln -s /usr/src/linux-headers-$version $pdir/lib/modules/$version/build
}
Expand Down

0 comments on commit b8d3512

Please sign in to comment.