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/recipes-devtools/gcc | |
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/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-initial.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-source.inc | 8 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc-initial.inc | 1 |
3 files changed, 4 insertions, 6 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial.inc b/meta/recipes-devtools/gcc/gcc-cross-initial.inc index ae92f220a5..910f2ef4d5 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-initial.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-initial.inc | |||
@@ -98,3 +98,4 @@ sysroot_stage_all() { | |||
98 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_HOST}/ ${SYSROOT_DESTDIR}/${STAGING_DIR_TARGET}/${target_base_libdir}/" | 98 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_HOST}/ ${SYSROOT_DESTDIR}/${STAGING_DIR_TARGET}/${target_base_libdir}/" |
99 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/ ${STAGING_DIR_TCBOOTSTRAP}/${target_base_libdir}/" | 99 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/ ${STAGING_DIR_TCBOOTSTRAP}/${target_base_libdir}/" |
100 | 100 | ||
101 | inherit nopackages | ||
diff --git a/meta/recipes-devtools/gcc/gcc-source.inc b/meta/recipes-devtools/gcc/gcc-source.inc index 794fd4de2e..49bde92c49 100644 --- a/meta/recipes-devtools/gcc/gcc-source.inc +++ b/meta/recipes-devtools/gcc/gcc-source.inc | |||
@@ -1,16 +1,12 @@ | |||
1 | deltask do_configure | 1 | deltask do_configure |
2 | deltask do_compile | 2 | deltask do_compile |
3 | deltask do_package | ||
4 | deltask do_package_write_rpm | ||
5 | deltask do_package_write_ipk | ||
6 | deltask do_package_write_deb | ||
7 | deltask do_install | 3 | deltask do_install |
8 | deltask do_populate_sysroot | 4 | deltask do_populate_sysroot |
9 | deltask do_populate_lic | 5 | deltask do_populate_lic |
10 | deltask do_package_qa | ||
11 | deltask do_packagedata | ||
12 | deltask do_rm_work | 6 | deltask do_rm_work |
13 | 7 | ||
8 | inherit nopackages | ||
9 | |||
14 | PN = "gcc-source-${PV}" | 10 | PN = "gcc-source-${PV}" |
15 | WORKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}" | 11 | WORKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}" |
16 | SSTATE_SWSPEC = "sstate:gcc::${PV}:${PR}::${SSTATE_VERSION}:" | 12 | SSTATE_SWSPEC = "sstate:gcc::${PV}:${PR}::${SSTATE_VERSION}:" |
diff --git a/meta/recipes-devtools/gcc/libgcc-initial.inc b/meta/recipes-devtools/gcc/libgcc-initial.inc index 4e92f002f0..59e8a62e7f 100644 --- a/meta/recipes-devtools/gcc/libgcc-initial.inc +++ b/meta/recipes-devtools/gcc/libgcc-initial.inc | |||
@@ -16,3 +16,4 @@ LIBGCCBUILDTREENAME = "gcc-build-internal-initial-" | |||
16 | 16 | ||
17 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}/" | 17 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}/" |
18 | 18 | ||
19 | inherit nopackages | ||