Import Debian changes 3.0.7-ok1

dkms (3.0.7-ok1) yangtze; urgency=low

  * Initial release.
This commit is contained in:
Luoyaoming 2022-10-09 14:40:34 +08:00 committed by luoyaoming
parent 6059f52d89
commit 13dec9fbdd
4 changed files with 0 additions and 27 deletions

1
debian/compat vendored
View File

@ -1 +0,0 @@
11

1
debian/files vendored
View File

@ -1 +0,0 @@
dkms_3.0.7-ok1_source.buildinfo kernel optional

View File

@ -1,23 +0,0 @@
Description: Use exact compiler for dkms as used to build the kernel
Ubuntu kernel builds do not export .kernelvariables file, thus extend
CC detection to read compiler binary from the .config file
Index: dkms-3.0.3/dkms.in
===================================================================
--- dkms-3.0.3.orig/dkms.in
+++ dkms-3.0.3/dkms.in
@@ -1007,6 +1007,13 @@ actual_build()
unset CC
fi
+ if [[ -e $kernel_source_dir/.config ]]; then
+ cc=$(sed -n 's|^CONFIG_CC_VERSION_TEXT="\([^ ]*\) .*"|\1|p' $kernel_source_dir/.config)
+ if command -v "$cc" >/dev/null; then
+ export CC="$cc"
+ fi
+ fi
+
invoke_command "$clean" "Cleaning build area" background
echo $"DKMS make.log for $module-$module_version for kernel $kernelver ($arch)" >> "$build_log"
date >> "$build_log"

View File

@ -1,2 +0,0 @@
#abort-on-upstream-changes
#unapply-patches