diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-29 13:43:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-01 15:54:01 +0000 |
commit | fed8dfff1fa697bccf1f9199c9b08bd0b7c16cb6 (patch) | |
tree | fb976690a73cffc719406f22cd61a558ae1d4f6b /meta/classes/package.bbclass | |
parent | 8e5d8ed5501d48e820c3024264400475f31dca4f (diff) | |
download | poky-fed8dfff1fa697bccf1f9199c9b08bd0b7c16cb6.tar.gz |
package: Rename splitfile functions to something more descriptive
The splitfile and splitfile2 function names are confusing and the comments
are also misleading, hard to understand or plain incorrect. This tries to
improve things.
(From OE-Core rev: 46f3050a1f46f814e2d031e7e71600b2932d631c)
(From OE-Core rev: bc6f7085b42d8137957795e800e8b46d2f1eddac)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | # |