Generate dbginfo packages for kernel and kernel modules
This commit is contained in:
@@ -510,6 +510,14 @@ def strip_file(filepath, fileinfo, outpath):
|
|||||||
run_strip(filepath, "-g")
|
run_strip(filepath, "-g")
|
||||||
return True
|
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:
|
elif "SB executable" in fileinfo:
|
||||||
if ctx.config.values.build.generatedebug:
|
if ctx.config.values.build.generatedebug:
|
||||||
check_dir(os.path.dirname(outpath))
|
check_dir(os.path.dirname(outpath))
|
||||||
|
|||||||
Reference in New Issue
Block a user