diff options
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 71c6179477..0be84ed74f 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -223,13 +223,12 @@ python () { | |||
223 | d.setVar("PACKAGERDEPTASK", "") | 223 | d.setVar("PACKAGERDEPTASK", "") |
224 | } | 224 | } |
225 | 225 | ||
226 | def splitfile(file, debugfile, debugsrcdir, d): | 226 | def splitdebuginfo(file, debugfile, debugsrcdir, d): |
227 | # Function to split a single file, called from split_and_strip_files below | 227 | # Function to split a single file into two components, one is the stripped |
228 | # A working 'file' (one which works on the target architecture) | 228 | # target system binary, the other contains any debugging information. The |
229 | # is split and the split off portions go to debugfile. | 229 | # two files are linked to reference each other. |
230 | # | 230 | # |
231 | # The debug information is then processed for src references. These | 231 | # sourcefile is also generated containing a list of debugsources |
232 | # references are copied to debugsrcdir, if defined. | ||
233 | 232 | ||
234 | import commands, stat, subprocess | 233 | import commands, stat, subprocess |
235 | 234 | ||
@@ -267,10 +266,8 @@ def splitfile(file, debugfile, debugsrcdir, d): | |||
267 | 266 | ||
268 | return 0 | 267 | return 0 |
269 | 268 | ||
270 | def splitfile2(debugsrcdir, d): | 269 | def copydebugsources(debugsrcdir, d): |
271 | # Function to split a single file, called from split_and_strip_files below | 270 | # The debug src information written out to sourcefile is further procecessed |
272 | # | ||
273 | # The debug src information processed in the splitfile2 is further procecessed | ||
274 | # and copied to the destination here. | 271 | # and copied to the destination here. |
275 | 272 | ||
276 | import commands, stat, subprocess | 273 | import commands, stat, subprocess |
@@ -875,7 +872,7 @@ python split_and_strip_files () { | |||
875 | bb.mkdirhier(os.path.dirname(fpath)) | 872 | bb.mkdirhier(os.path.dirname(fpath)) |
876 | #bb.note("Split %s -> %s" % (file, fpath)) | 873 | #bb.note("Split %s -> %s" % (file, fpath)) |
877 | # Only store off the hard link reference if we successfully split! | 874 | # Only store off the hard link reference if we successfully split! |
878 | if splitfile(file, fpath, debugsrcdir, d) == 0 and file_reference != "": | 875 | if splitdebuginfo(file, fpath, debugsrcdir, d) == 0 and file_reference != "": |
879 | file_links[file_reference] = file | 876 | file_links[file_reference] = file |
880 | 877 | ||
881 | # The above may have generated dangling symlinks, remove them! | 878 | # The above may have generated dangling symlinks, remove them! |
@@ -899,7 +896,7 @@ python split_and_strip_files () { | |||
899 | 896 | ||
900 | # Process the debugsrcdir if requested... | 897 | # Process the debugsrcdir if requested... |
901 | # This copies and places the referenced sources for later debugging... | 898 | # This copies and places the referenced sources for later debugging... |
902 | splitfile2(debugsrcdir, d) | 899 | copydebugsources(debugsrcdir, d) |
903 | # | 900 | # |
904 | # End of debug splitting | 901 | # End of debug splitting |
905 | # | 902 | # |