summaryrefslogtreecommitdiffstats
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:42:58 +0000
commitc376f1f49cea182a2887945840ab97a20970a373 (patch)
treedc229e7e51c333e90cb069d2af7e80410c9fc9d2
parent88fa952b7c36c1d3375d0b1cbd9879f61def5b25 (diff)
downloadpoky-c376f1f49cea182a2887945840ab97a20970a373.tar.gz
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. (From OE-Core rev: 48dfd61901ce07491ef913cf04dbd9de9a52759f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
242 workparentdir = d.getVar("DEBUGSRC_OVERRIDE_PATH", True) or os.path.dirname(os.path.dirname(workdir)) 242 workparentdir = d.getVar("DEBUGSRC_OVERRIDE_PATH", True) or os.path.dirname(os.path.dirname(workdir))
243 sourcefile = d.expand("${WORKDIR}/debugsources.list") 243 sourcefile = d.expand("${WORKDIR}/debugsources.list")
244 244
245 bb.utils.remove(sourcefile)
246
245 # We ignore kernel modules, we don't generate debug info files. 247 # We ignore kernel modules, we don't generate debug info files.
246 if file.find("/lib/modules/") != -1 and file.endswith(".ko"): 248 if file.find("/lib/modules/") != -1 and file.endswith(".ko"):
247 return 1 249 return 1