From b8d351258bbcdedcace097d890402328ee43670e Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Tue, 26 Nov 2024 15:16:42 +0800 Subject: [PATCH] scripts: install .config in /usr/src/linux-headers-$kver This is needed by dkms and update-initramfs. Signed-off-by: Mingcong Bai --- scripts/package/builddeb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 3d8792b42a2876..e6ca02c1c66899 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -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 }