Author Topic: Which patch stops DKMS nuking needed files?  (Read 761 times)

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Which patch stops DKMS nuking needed files?
« on: January 02, 2011, 06:45:05 PM »
DKMS calls make mrproper twice when building modules - before and after.

Unfortunately, in a stock kernel (and I need a 2.6.35 or higher for my Acer laptop acpi functions) make mrproper deletes files that are needed to build modules with symbol tables which will actually load in the kernel, so DKMS destroys what it needs to work.

I presume the pclos kernels contain a patch to prevent this happening. Anyone know which one it might be?
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline jfdesign

  • Full Member
  • ***
  • Posts: 210
Re: Which patch stops DKMS nuking needed files?
« Reply #1 on: January 02, 2011, 07:31:16 PM »
disable-mrproper.patch ??

diff -Nurp linux-2.6.33-rc4-git7-t1/Makefile linux-2.6.33-rc4-git7-t1.1/Makefile                                                               
--- linux-2.6.33-rc4-git7-t1/Makefile   2010-01-20 23:45:34.883140355 +0200                                                                   
+++ linux-2.6.33-rc4-git7-t1.1/Makefile 2010-01-20 23:52:22.337329287 +0200                                                                   
@@ -1158,10 +1158,12 @@ CLEAN_FILES +=  vmlinux System.map \                                                                                   
                 .tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map                                                                     
.                                                                                                                                             
 # Directories & files removed with 'make mrproper'                                                                                           
-MRPROPER_DIRS  += include/config usr/include include/generated                                                                               
-MRPROPER_FILES += .config .config.old .version .old_version             \                                                                     
-                  include/linux/version.h                               \                                                                     
-                 Module.symvers tags TAGS cscope*                                                                                             
+#MRPROPER_DIRS  += include/config usr/include include/generated                                                                               
+#MRPROPER_FILES += .config .config.old .version .old_version             \                                                                   
+#                  include/linux/version.h                               \                                                                   
+#                Module.symvers tags TAGS cscope*                                                                                             
+MRPROPER_DIRS  += ""                                                                                                                         
+MRPROPER_FILES += ""                                                                                                                         
.                                                                                                                                             
 # clean - Delete most, but leave enough to build external modules                                                                             
 #                                                                                                                                             
@@ -1187,7 +1189,7 @@ clean: archclean $(clean-dirs)                                                                                           
 #                                                                                                                                             
 mrproper: rm-dirs  := $(wildcard $(MRPROPER_DIRS))                                                                                           
 mrproper: rm-files := $(wildcard $(MRPROPER_FILES))                                                                                           
-mrproper-dirs      := $(addprefix _mrproper_,Documentation/DocBook scripts)                                                                   
+mrproper-dirs      := $(addprefix _mrproper_,Documentation/DocBook)                                                                           
.                                                                                                                                             
 PHONY += $(mrproper-dirs) mrproper archmrproper                                                                                               
 $(mrproper-dirs):

did your 2.6.35 works normally ?
i've got kernel oops when reach aufs ... not really sure though what cause it, not enough free time to play with ... waiting for tex for my sandy bridge. :)
« Last Edit: January 02, 2011, 07:33:20 PM by jfdesign »

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Re: Which patch stops DKMS nuking needed files?
« Reply #2 on: January 03, 2011, 08:16:29 AM »
Thanks, that was it!

My kernel is actually a 2.6.36. I can't get a remaster to boot yet either. That's my next task.

I had to patch with unionfs-2.5.7_for_2.6.36.diff before I could build a kernel that would build an ISO. As the problem was also related to modules I'm just trying again to see whether the problem is still there.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf