Use long format for a readable code, don't forget strip-debug for kernel modules as they won't be loadable at all

This commit is contained in:
Ozan Çağlayan
2009-08-10 10:36:32 +00:00
parent 444b85d23c
commit 36709d22a9
+2 -2
View File
@@ -507,7 +507,7 @@ def strip_file(filepath, fileinfo, outpath):
ctx.ui.warning(_("objcopy (add-debuglink) command failed for file '%s'!") % f)
if "current ar archive" in fileinfo:
run_strip(filepath, "-g")
run_strip(filepath, "--strip-debug")
return True
if "SB relocatable" in fileinfo and filepath.endswith(".ko"):
@@ -515,7 +515,7 @@ def strip_file(filepath, fileinfo, outpath):
if ctx.config.values.build.generatedebug:
check_dir(os.path.dirname(outpath))
save_elf_debug(filepath, outpath)
run_strip(filepath)
run_strip(filepath, "--strip-debug")
return True
elif "SB executable" in fileinfo: