From 237014e9de6b3aeb3479a8a6103ca54d5dbe6ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Sat, 16 May 2009 22:58:46 +0000 Subject: [PATCH] Some fixes for the kernel-headers package: # Copy Modules.symvers # Copy .config file which will be needed by some external modules # Unset CONFIG_DEBUG_INFO if it's set in the kernel configuration --- pisi/actionsapi/kerneltools.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pisi/actionsapi/kerneltools.py b/pisi/actionsapi/kerneltools.py index 0d28ff56..0e22b891 100644 --- a/pisi/actionsapi/kerneltools.py +++ b/pisi/actionsapi/kerneltools.py @@ -189,6 +189,15 @@ def installHeaders(extra=[]): xargs -n1 -i: find : -type f) | \ cpio -pd --preserve-modification-time %s" % destination) + # Copy Modules.symvers + shutil.copy("Module.symvers", "%s/" % destination) + + # Copy .config file which will be needed by some external modules + shutil.copy(".config", "%s/" % destination) + + # Unset CONFIG_DEBUG_INFO if it's set in the kernel configuration + pisitools.dosed(".config", ".*CONFIG_DEBUG_INFO=.*", "# CONFIG_DEBUG_INFO is not set") + # Settle the correct build symlink to this headers pisitools.dosym("/%s" % headersDirectoryName, "/lib/modules/%s/build" % suffix)