diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-10 22:50:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-14 22:30:57 +0000 |
commit | 0da1d71809b3248cc91f1d8f191ebf38fabc4439 (patch) | |
tree | ab874d250746aea8a1cc53b4b7cf50c30d7a3974 /meta/classes | |
parent | 5003d147617eed64532f2d7f7d12689622f99723 (diff) | |
download | poky-0da1d71809b3248cc91f1d8f191ebf38fabc4439.tar.gz |
nopackages: Add class for recipes which don't generate packages
It turns out writing the same list of packaging tasks multiple
times in multiple places is error prone. Move this to a new class
'nopackages", migrate existing users and add glibc-initial and
libgcc-initial since we don't want packages for those recipes.
This means the sstate for those recipes won't be installed, saving
small amounts of build time and bandwidth.
A reference to the old package_write task is also dropped.
(From OE-Core rev: cece583d58f82a50c3a4eac876eb326ac3b8f5e5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/cross.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/native.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/nopackages.bbclass | 6 |
3 files changed, 8 insertions, 14 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 3eab5b907b..81d1c9d855 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass | |||
@@ -68,10 +68,4 @@ do_install () { | |||
68 | 68 | ||
69 | USE_NLS = "no" | 69 | USE_NLS = "no" |
70 | 70 | ||
71 | deltask package | 71 | inherit nopackages |
72 | deltask packagedata | ||
73 | deltask package_qa | ||
74 | deltask package_write_ipk | ||
75 | deltask package_write_deb | ||
76 | deltask package_write_rpm | ||
77 | deltask package_write | ||
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index bcbcd61e03..aac2c1e870 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -169,13 +169,7 @@ python native_virtclass_handler () { | |||
169 | addhandler native_virtclass_handler | 169 | addhandler native_virtclass_handler |
170 | native_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise" | 170 | native_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise" |
171 | 171 | ||
172 | deltask package | 172 | inherit nopackages |
173 | deltask packagedata | ||
174 | deltask package_qa | ||
175 | deltask package_write_ipk | ||
176 | deltask package_write_deb | ||
177 | deltask package_write_rpm | ||
178 | deltask package_write | ||
179 | 173 | ||
180 | do_packagedata[stamp-extra-info] = "" | 174 | do_packagedata[stamp-extra-info] = "" |
181 | do_populate_sysroot[stamp-extra-info] = "" | 175 | do_populate_sysroot[stamp-extra-info] = "" |
diff --git a/meta/classes/nopackages.bbclass b/meta/classes/nopackages.bbclass new file mode 100644 index 0000000000..0c2761bef0 --- /dev/null +++ b/meta/classes/nopackages.bbclass | |||
@@ -0,0 +1,6 @@ | |||
1 | deltask do_package | ||
2 | deltask do_package_write_rpm | ||
3 | deltask do_package_write_ipk | ||
4 | deltask do_package_write_deb | ||
5 | deltask do_package_qa | ||
6 | deltask do_packagedata | ||