From: Peter Seebach Date: Wed, 11 Jul 2012 20:31:55 +0000 (-0500) Subject: package.bbclass: Allow overriding of debugedit starting path X-Git-Tag: rev_ivi_2015_02_04~16518 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f54b63f70541a4f3aac20c8e0bd97d4cfa63b9e;p=scm%2Fbb%2Ftizen-distro.git 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index ec7de2c..dfd4211 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -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.