summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 10:37:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 12:01:04 +0000
commitd1a1635a458233a29ea8998e74eec11c856ee371 (patch)
tree9759a1fbf9e8fc03745ea6b1b00f79fb7c94b326 /meta/classes
parent388a92bb7c0ea64b18a31c0c82437cc03ab309d8 (diff)
downloadpoky-d1a1635a458233a29ea8998e74eec11c856ee371.tar.gz
package.bbclass: Only set recrdeptask for do_build if packaging is enabled for the recipe
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 0698f64515..fd29aaa031 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -158,6 +158,8 @@ python () {
158 # shlibs requires any DEPENDS to have already packaged for the *.list files 158 # shlibs requires any DEPENDS to have already packaged for the *.list files
159 deps.append("do_package") 159 deps.append("do_package")
160 bb.data.setVarFlag('do_package', 'deptask', " ".join(deps), d) 160 bb.data.setVarFlag('do_package', 'deptask', " ".join(deps), d)
161 else:
162 d.setVar("PACKAGERDEPTASK", "")
161} 163}
162 164
163def runstrip(file, d): 165def runstrip(file, d):
@@ -1129,7 +1131,8 @@ do_package_write () {
1129 : 1131 :
1130} 1132}
1131do_package_write[noexec] = "1" 1133do_package_write[noexec] = "1"
1132do_build[recrdeptask] += "do_package_write" 1134PACKAGERDEPTASK = "do_package_write"
1135do_build[recrdeptask] += "${PACKAGERDEPTASK}"
1133addtask package_write before do_build after do_package 1136addtask package_write before do_build after do_package
1134 1137
1135# 1138#