]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Allow overriding of debugedit starting path
authorPeter Seebach <peter.seebach@windriver.com>
Wed, 11 Jul 2012 20:31:55 +0000 (15:31 -0500)
committerSaul Wold <sgw@linux.intel.com>
Mon, 16 Jul 2012 15:36:56 +0000 (08:36 -0700)
In the usual case, the computed path used for debugedit to fix
up path references for the target filesystem is correct. However,
prebuilt binary components, such as prebuilt toolchains, can
have debug paths that do not reflect paths within the local
build directory. Providing an override lets us continue to use
the standard debugedit logic in package.bbclass.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/package.bbclass

index ec7de2c36ebd0a4491fc660692e07c0be91e0d01..dfd42117c5bcc4de634c4e427319847dfb4e97ea 100644 (file)
@@ -190,7 +190,7 @@ def splitfile(file, debugfile, debugsrcdir, d):
     objcopy = d.getVar("OBJCOPY", True)
     debugedit = d.expand("${STAGING_LIBDIR_NATIVE}/rpm/bin/debugedit")
     workdir = d.getVar("WORKDIR", True)
-    workparentdir = os.path.dirname(workdir)
+    workparentdir = d.getVar("DEBUGSRC_OVERRIDE_PATH", True) or os.path.dirname(workdir)
     sourcefile = d.expand("${WORKDIR}/debugsources.list")
 
     # We ignore kernel modules, we don't generate debug info files.