summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package.bbclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 36b3ae5109..0f2743d106 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -226,7 +226,7 @@ python () {
226 d.setVar("PACKAGERDEPTASK", "") 226 d.setVar("PACKAGERDEPTASK", "")
227} 227}
228 228
229def splitdebuginfo(file, debugfile, debugsrcdir, d): 229def splitdebuginfo(file, debugfile, debugsrcdir, sourcefile, d):
230 # Function to split a single file into two components, one is the stripped 230 # Function to split a single file into two components, one is the stripped
231 # target system binary, the other contains any debugging information. The 231 # target system binary, the other contains any debugging information. The
232 # two files are linked to reference each other. 232 # two files are linked to reference each other.
@@ -240,9 +240,6 @@ def splitdebuginfo(file, debugfile, debugsrcdir, d):
240 debugedit = d.expand("${STAGING_LIBDIR_NATIVE}/rpm/bin/debugedit") 240 debugedit = d.expand("${STAGING_LIBDIR_NATIVE}/rpm/bin/debugedit")
241 workdir = d.getVar("WORKDIR", True) 241 workdir = d.getVar("WORKDIR", True)
242 workparentdir = d.getVar("DEBUGSRC_OVERRIDE_PATH", True) or os.path.dirname(os.path.dirname(workdir)) 242 workparentdir = d.getVar("DEBUGSRC_OVERRIDE_PATH", True) or os.path.dirname(os.path.dirname(workdir))
243 sourcefile = d.expand("${WORKDIR}/debugsources.list")
244
245 bb.utils.remove(sourcefile)
246 243
247 # We ignore kernel modules, we don't generate debug info files. 244 # We ignore kernel modules, we don't generate debug info files.
248 if file.find("/lib/modules/") != -1 and file.endswith(".ko"): 245 if file.find("/lib/modules/") != -1 and file.endswith(".ko"):
@@ -721,6 +718,9 @@ python split_and_strip_files () {
721 debuglibdir = "" 718 debuglibdir = ""
722 debugsrcdir = "/usr/src/debug" 719 debugsrcdir = "/usr/src/debug"
723 720
721 sourcefile = d.expand("${WORKDIR}/debugsources.list")
722 bb.utils.remove(sourcefile)
723
724 os.chdir(dvar) 724 os.chdir(dvar)
725 725
726 # Return type (bits): 726 # Return type (bits):
@@ -833,7 +833,7 @@ python split_and_strip_files () {
833 bb.utils.mkdirhier(os.path.dirname(fpath)) 833 bb.utils.mkdirhier(os.path.dirname(fpath))
834 #bb.note("Split %s -> %s" % (file, fpath)) 834 #bb.note("Split %s -> %s" % (file, fpath))
835 # Only store off the hard link reference if we successfully split! 835 # Only store off the hard link reference if we successfully split!
836 splitdebuginfo(file, fpath, debugsrcdir, d) 836 splitdebuginfo(file, fpath, debugsrcdir, sourcefile, d)
837 837
838 # Hardlink our debug symbols to the other hardlink copies 838 # Hardlink our debug symbols to the other hardlink copies
839 for file in hardlinks: 839 for file in hardlinks: