| Hi all, 
 with recent aptosid kernels (starting around 4.18, if I remember correctly) the nvidia kernel module fails to build. As far as I can tell, this is caused by the SUBLEVEL variable being empty in the aptosid kernel makefile. nvidia's Kbuild requires it to be set:
 
       Code: 
KERNEL_VERSION_NUMERIC := $(shell echo $$(( $(VERSION) * 65536 + $(PATCHLEVEL) * 256 + $(SUBLEVEL) )))
 
 
 I am getting the following error in the module build log:
 
       Code: 
/bin/sh: 1: arithmetic expression: expecting primary: " 4 * 65536 + 19 * 256 +  "
 /bin/sh: 1: [: -ge: unexpected operator
 
 
 This failure in turn causes the nvidia_unsupported.c file being included in the module build, which depends on some old header files and causes the build to fail.
 
 Cheers, Ilinsekt
 |