Generate dbginfo packages for kernel and kernel modules

This commit is contained in:
Ozan Çağlayan
2009-08-07 13:30:58 +00:00
parent cd45f31327
commit 7c64b9fa04
+8
View File
@@ -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))