diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-10 10:37:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-10 12:01:04 +0000 |
commit | d1a1635a458233a29ea8998e74eec11c856ee371 (patch) | |
tree | 9759a1fbf9e8fc03745ea6b1b00f79fb7c94b326 /meta/classes/package.bbclass | |
parent | 388a92bb7c0ea64b18a31c0c82437cc03ab309d8 (diff) | |
download | poky-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/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 5 |
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 | ||
163 | def runstrip(file, d): | 165 | def runstrip(file, d): |
@@ -1129,7 +1131,8 @@ do_package_write () { | |||
1129 | : | 1131 | : |
1130 | } | 1132 | } |
1131 | do_package_write[noexec] = "1" | 1133 | do_package_write[noexec] = "1" |
1132 | do_build[recrdeptask] += "do_package_write" | 1134 | PACKAGERDEPTASK = "do_package_write" |
1135 | do_build[recrdeptask] += "${PACKAGERDEPTASK}" | ||
1133 | addtask package_write before do_build after do_package | 1136 | addtask package_write before do_build after do_package |
1134 | 1137 | ||
1135 | # | 1138 | # |