diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-04 17:28:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-07 14:50:09 +0000 |
commit | 992d17c8e8948e60eddaeba8cc892ae3249e33c3 (patch) | |
tree | 40a85e46aa8b7829049493f15039fd84e5bc6411 /meta/recipes-core | |
parent | 9f122956263cbb6d25e5a57ff38941d890317c5e (diff) | |
download | poky-992d17c8e8948e60eddaeba8cc892ae3249e33c3.tar.gz |
glibc: Separate locale files to their own sstate task
Putting the locale and script files into the sysroot for use by their
specific recipes used to be a simple way to share the files. With RSS,
we don't want to copy these into many different recipes so put these
files in their own sstate task.
(From OE-Core rev: c283f2532851e2a65e08fe7b3fd71c5d9abb70f2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/glibc/glibc-collateral.inc | 2 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc-initial.inc | 7 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc-locale.inc | 2 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc-mtrace.inc | 2 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc-package.inc | 30 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc-scripts.inc | 2 |
6 files changed, 23 insertions, 22 deletions
diff --git a/meta/recipes-core/glibc/glibc-collateral.inc b/meta/recipes-core/glibc/glibc-collateral.inc index 6b32e4a815..37f27ca448 100644 --- a/meta/recipes-core/glibc/glibc-collateral.inc +++ b/meta/recipes-core/glibc/glibc-collateral.inc | |||
@@ -15,7 +15,7 @@ deltask do_patch | |||
15 | do_configure[noexec] = "1" | 15 | do_configure[noexec] = "1" |
16 | do_compile[noexec] = "1" | 16 | do_compile[noexec] = "1" |
17 | 17 | ||
18 | do_install[depends] += "virtual/${MLPREFIX}libc:do_populate_sysroot" | 18 | do_install[depends] += "virtual/${MLPREFIX}libc:do_stash_locale" |
19 | 19 | ||
20 | COMPATIBLE_HOST_libc-musl_class-target = "null" | 20 | COMPATIBLE_HOST_libc-musl_class-target = "null" |
21 | COMPATIBLE_HOST_libc-uclibc_class-target = "null" | 21 | COMPATIBLE_HOST_libc-uclibc_class-target = "null" |
diff --git a/meta/recipes-core/glibc/glibc-initial.inc b/meta/recipes-core/glibc/glibc-initial.inc index 7380bdbcac..f94603c28c 100644 --- a/meta/recipes-core/glibc/glibc-initial.inc +++ b/meta/recipes-core/glibc/glibc-initial.inc | |||
@@ -43,7 +43,7 @@ do_install () { | |||
43 | fi | 43 | fi |
44 | } | 44 | } |
45 | 45 | ||
46 | do_install_locale() { | 46 | do_stash_locale() { |
47 | : | 47 | : |
48 | } | 48 | } |
49 | 49 | ||
@@ -51,9 +51,4 @@ do_siteconfig () { | |||
51 | : | 51 | : |
52 | } | 52 | } |
53 | 53 | ||
54 | # We don't install any scripts so there is nothing to evacuate | ||
55 | do_evacuate_scripts () { | ||
56 | : | ||
57 | } | ||
58 | |||
59 | inherit nopackages | 54 | inherit nopackages |
diff --git a/meta/recipes-core/glibc/glibc-locale.inc b/meta/recipes-core/glibc/glibc-locale.inc index 50b191c7bb..9c99741920 100644 --- a/meta/recipes-core/glibc/glibc-locale.inc +++ b/meta/recipes-core/glibc/glibc-locale.inc | |||
@@ -66,7 +66,7 @@ DESCRIPTION_localedef = "glibc: compile locale definition files" | |||
66 | FILES_${MLPREFIX}glibc-gconv = "${libdir}/gconv/*" | 66 | FILES_${MLPREFIX}glibc-gconv = "${libdir}/gconv/*" |
67 | FILES_localedef = "${bindir}/localedef" | 67 | FILES_localedef = "${bindir}/localedef" |
68 | 68 | ||
69 | LOCALETREESRC = "${STAGING_INCDIR}/glibc-locale-internal-${MULTIMACH_TARGET_SYS}" | 69 | LOCALETREESRC = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale" |
70 | 70 | ||
71 | do_install () { | 71 | do_install () { |
72 | mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir} | 72 | mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir} |
diff --git a/meta/recipes-core/glibc/glibc-mtrace.inc b/meta/recipes-core/glibc/glibc-mtrace.inc index 0e4615d0b2..d3641b39b6 100644 --- a/meta/recipes-core/glibc/glibc-mtrace.inc +++ b/meta/recipes-core/glibc/glibc-mtrace.inc | |||
@@ -5,7 +5,7 @@ DESCRIPTION = "mtrace utility provided by glibc" | |||
5 | RDEPENDS_${PN} = "perl" | 5 | RDEPENDS_${PN} = "perl" |
6 | RPROVIDES_${PN} = "libc-mtrace" | 6 | RPROVIDES_${PN} = "libc-mtrace" |
7 | 7 | ||
8 | SRC = "${STAGING_INCDIR}/glibc-scripts-internal-${MULTIMACH_TARGET_SYS}" | 8 | SRC = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale/scripts" |
9 | 9 | ||
10 | do_install() { | 10 | do_install() { |
11 | install -d -m 0755 ${D}${bindir} | 11 | install -d -m 0755 ${D}${bindir} |
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc index 481a00e125..557b9589bc 100644 --- a/meta/recipes-core/glibc/glibc-package.inc +++ b/meta/recipes-core/glibc/glibc-package.inc | |||
@@ -145,8 +145,11 @@ do_install_append_aarch64 () { | |||
145 | fi | 145 | fi |
146 | } | 146 | } |
147 | 147 | ||
148 | do_install_locale () { | 148 | LOCALESTASH = "${WORKDIR}/stashed-locale" |
149 | dest=${D}/${includedir}/glibc-locale-internal-${MULTIMACH_TARGET_SYS} | 149 | bashscripts = "mtrace sotruss xtrace" |
150 | |||
151 | do_stash_locale () { | ||
152 | dest=${LOCALESTASH} | ||
150 | install -d ${dest}${base_libdir} ${dest}${bindir} ${dest}${libdir} ${dest}${datadir} | 153 | install -d ${dest}${base_libdir} ${dest}${bindir} ${dest}${libdir} ${dest}${datadir} |
151 | if [ "${base_libdir}" != "${libdir}" ]; then | 154 | if [ "${base_libdir}" != "${libdir}" ]; then |
152 | cp -fpPR ${D}${base_libdir}/* ${dest}${base_libdir} | 155 | cp -fpPR ${D}${base_libdir}/* ${dest}${base_libdir} |
@@ -166,14 +169,8 @@ do_install_locale () { | |||
166 | cp -fpPR ${D}${datadir}/* ${dest}${datadir} | 169 | cp -fpPR ${D}${datadir}/* ${dest}${datadir} |
167 | rm -rf ${D}${datadir}/locale/ | 170 | rm -rf ${D}${datadir}/locale/ |
168 | cp -fpPR ${WORKDIR}/SUPPORTED ${dest} | 171 | cp -fpPR ${WORKDIR}/SUPPORTED ${dest} |
169 | } | ||
170 | |||
171 | addtask do_install_locale after do_install before do_populate_sysroot do_package | ||
172 | 172 | ||
173 | bashscripts = "mtrace sotruss xtrace" | 173 | target=${dest}/scripts |
174 | |||
175 | do_evacuate_scripts () { | ||
176 | target=${D}${includedir}/glibc-scripts-internal-${MULTIMACH_TARGET_SYS} | ||
177 | mkdir -p $target | 174 | mkdir -p $target |
178 | for i in ${bashscripts}; do | 175 | for i in ${bashscripts}; do |
179 | if [ -f ${D}${bindir}/$i ]; then | 176 | if [ -f ${D}${bindir}/$i ]; then |
@@ -182,13 +179,22 @@ do_evacuate_scripts () { | |||
182 | done | 179 | done |
183 | } | 180 | } |
184 | 181 | ||
185 | addtask evacuate_scripts after do_install before do_populate_sysroot do_package | 182 | addtask do_stash_locale after do_install before do_populate_sysroot do_package |
183 | do_stash_locale[dirs] = "${B}" | ||
184 | do_stash_locale[cleandirs] = "${LOCALESTASH}" | ||
185 | SSTATETASKS += "do_stash_locale" | ||
186 | do_stash_locale[sstate-inputdirs] = "${LOCALESTASH}" | ||
187 | do_stash_locale[sstate-outputdirs] = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale" | ||
188 | do_stash_locale[sstate-fixmedir] = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale" | ||
189 | |||
190 | python do_stash_locale_setscene () { | ||
191 | sstate_setscene(d) | ||
192 | } | ||
193 | addtask do_stash_locale_setscene | ||
186 | 194 | ||
187 | PACKAGE_PREPROCESS_FUNCS += "glibc_package_preprocess" | 195 | PACKAGE_PREPROCESS_FUNCS += "glibc_package_preprocess" |
188 | 196 | ||
189 | glibc_package_preprocess () { | 197 | glibc_package_preprocess () { |
190 | rm -rf ${PKGD}/${includedir}/glibc-locale-internal-${MULTIMACH_TARGET_SYS} | ||
191 | rm -rf ${PKGD}/${includedir}/glibc-scripts-internal-${MULTIMACH_TARGET_SYS} | ||
192 | for i in ${bashscripts}; do | 198 | for i in ${bashscripts}; do |
193 | rm -f ${PKGD}${bindir}/$i | 199 | rm -f ${PKGD}${bindir}/$i |
194 | done | 200 | done |
diff --git a/meta/recipes-core/glibc/glibc-scripts.inc b/meta/recipes-core/glibc/glibc-scripts.inc index 66fdee4332..42616f0760 100644 --- a/meta/recipes-core/glibc/glibc-scripts.inc +++ b/meta/recipes-core/glibc/glibc-scripts.inc | |||
@@ -4,7 +4,7 @@ SUMMARY = "utility scripts provided by glibc" | |||
4 | DESCRIPTION = "utility scripts provided by glibc" | 4 | DESCRIPTION = "utility scripts provided by glibc" |
5 | RDEPENDS_${PN} = "bash glibc-mtrace" | 5 | RDEPENDS_${PN} = "bash glibc-mtrace" |
6 | 6 | ||
7 | SRC = "${STAGING_INCDIR}/glibc-scripts-internal-${MULTIMACH_TARGET_SYS}" | 7 | SRC = "${STAGING_DIR}-components/${PACKAGE_ARCH}/glibc-stash-locale/scripts" |
8 | 8 | ||
9 | bashscripts = "sotruss xtrace" | 9 | bashscripts = "sotruss xtrace" |
10 | 10 | ||