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 <[email protected]>
  • Loading branch information
MingcongBai committed Dec 2, 2024
1 parent 639ad44 commit c78fed6
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 c78fed6

Please sign in to comment.