From patchwork Mon Jul 16 15:47:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [CONSOLIDATED, PULL, 08/30] package.bbclass: Allow overriding of debugedit starting path Date: Mon, 16 Jul 2012 15:47:14 -0000 From: Saul Wold X-Patchwork-Id: 32119 Message-Id: <32b1fde106bf423873a4a56e1111f230494e2d4a.1342453118.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org From: Peter Seebach 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 Signed-off-by: Saul Wold --- meta/classes/package.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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.