summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2012-07-11 15:31:55 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-17 10:53:54 +0100
commit07a9e9ee4851cc1e72eef3bc50308529e93842c4 (patch)
tree31acc090226df47267b5c9ab68addd9bf24ccea9 /meta/classes/package.bbclass
parent521cf2094242a74f5f098426d9b61cabd4adee0f (diff)
downloadpoky-07a9e9ee4851cc1e72eef3bc50308529e93842c4.tar.gz
package.bbclass: Allow overriding of debugedit starting path
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. (From OE-Core rev: 32b1fde106bf423873a4a56e1111f230494e2d4a) Signed-off-by: Peter Seebach <peter.seebach@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index ec7de2c36e..dfd42117c5 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -190,7 +190,7 @@ def splitfile(file, debugfile, debugsrcdir, d):
190 objcopy = d.getVar("OBJCOPY", True) 190 objcopy = d.getVar("OBJCOPY", True)
191 debugedit = d.expand("${STAGING_LIBDIR_NATIVE}/rpm/bin/debugedit") 191 debugedit = d.expand("${STAGING_LIBDIR_NATIVE}/rpm/bin/debugedit")
192 workdir = d.getVar("WORKDIR", True) 192 workdir = d.getVar("WORKDIR", True)
193 workparentdir = os.path.dirname(workdir) 193 workparentdir = d.getVar("DEBUGSRC_OVERRIDE_PATH", True) or os.path.dirname(workdir)
194 sourcefile = d.expand("${WORKDIR}/debugsources.list") 194 sourcefile = d.expand("${WORKDIR}/debugsources.list")
195 195
196 # We ignore kernel modules, we don't generate debug info files. 196 # We ignore kernel modules, we don't generate debug info files.