From 7c64b9fa046e283a2f0388376203a5acafaf4bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Fri, 7 Aug 2009 13:30:58 +0000 Subject: [PATCH] Generate dbginfo packages for kernel and kernel modules --- pisi/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pisi/util.py b/pisi/util.py index 6015b48d..939050d0 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -510,6 +510,14 @@ def strip_file(filepath, fileinfo, outpath): run_strip(filepath, "-g") return True + if "SB relocatable" in fileinfo and filepath.endswith(".ko"): + # kernel module + if ctx.config.values.build.generatedebug: + check_dir(os.path.dirname(outpath)) + save_elf_debug(filepath, outpath) + run_strip(filepath) + return True + elif "SB executable" in fileinfo: if ctx.config.values.build.generatedebug: check_dir(os.path.dirname(outpath))