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))