summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-25 17:34:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-25 17:39:56 +0000
commit48dfd61901ce07491ef913cf04dbd9de9a52759f (patch)
treec06c31f3fec8f1468751f2bca023aa4ff0cb9c21 /meta/classes
parentbdc1b214431c9c93a929b547b9a61e7b87fbd366 (diff)
downloadopenembedded-core-48dfd61901ce07491ef913cf04dbd9de9a52759f.tar.gz
openembedded-core-48dfd61901ce07491ef913cf04dbd9de9a52759f.tar.bz2
openembedded-core-48dfd61901ce07491ef913cf04dbd9de9a52759f.zip
package.bbclass: Ensure debug source file is generated correctly
The command for generating debug sources appends to the file, therefore we need to ensure it does not exist before we run the command else we end up doing more work that we should have to. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 5dca1043d7..447a74bcb7 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -242,6 +242,8 @@ def splitdebuginfo(file, debugfile, debugsrcdir, d):
workparentdir = d.getVar("DEBUGSRC_OVERRIDE_PATH", True) or os.path.dirname(os.path.dirname(workdir))
sourcefile = d.expand("${WORKDIR}/debugsources.list")
+ bb.utils.remove(sourcefile)
+
# We ignore kernel modules, we don't generate debug info files.
if file.find("/lib/modules/") != -1 and file.endswith(".ko"):
return 1