Skip to content

Commit c21f0db

Browse files
MingcongBaiopsiff
authored andcommitted
scripts: install .config in /usr/src/linux-headers-$kver
This is needed by dkms and update-initramfs. Signed-off-by: Mingcong Bai <jeffbai@aosc.io> (cherry picked from commit f6407a3) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 722315a commit c21f0db

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/package/builddeb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ install_kernel_headers () {
156156

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

159+
# Install .config archive
160+
cp .config ${pdir}/usr/src/linux-headers-${version}/
161+
159162
mkdir -p $pdir/lib/modules/$version/
160163
ln -s /usr/src/linux-headers-$version $pdir/lib/modules/$version/build
161164
}

0 commit comments

Comments
 (0)