diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-18 20:01:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-26 11:19:54 +0000 |
commit | ded63d68334044e79b15b814216fab02c70ad94f (patch) | |
tree | 986249d1c3eb6be6a0f47bddf8300329325aeed7 /meta/recipes-core/glibc/glibc.inc | |
parent | 46cb0124916ae4df6ece3398a82d62b656228c27 (diff) | |
download | poky-ded63d68334044e79b15b814216fab02c70ad94f.tar.gz |
glibc: Remove site_config and glibc-initial
The only reason we appear to need glibc-initial at this time is to support
the site_config code. The site_config code compiles and therefore needs
at least some level of working C library to link against.
This isn't a good reason to keep the complexity of glibc-initial around
so remove it, and the site_config support which then breaks.
Performance benchmarks suggest the time spent just rerunning configure
for site_config just about equals any performance benefit for OE-Core
image builds excluding the time spent adding glibc-initial to the
dependency chain.
I'm not opposed to readding some other form of site_config support
but it needs to be rethought.
(From OE-Core rev: c5df105e7583e43da9b682f739bebaf873dcd2f4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc.inc')
-rw-r--r-- | meta/recipes-core/glibc/glibc.inc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index 99c92ce46e..43e71337ee 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc | |||
@@ -15,21 +15,7 @@ python () { | |||
15 | bb.fatal("%s can't be built with %s, try -O1 instead" % (d.getVar('PN'), opt_effective)) | 15 | bb.fatal("%s can't be built with %s, try -O1 instead" % (d.getVar('PN'), opt_effective)) |
16 | } | 16 | } |
17 | 17 | ||
18 | # siteconfig.bbclass runs configure which needs a working compiler | 18 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial libgcc-initial linux-libc-headers" |
19 | # For the compiler to work we need a working libc yet libc isn't | ||
20 | # in the sysroots directory at this point. This means the libc.so | ||
21 | # linker script won't work as the --sysroot setting isn't correct. | ||
22 | # Here we create a hacked up libc linker script and pass in the right | ||
23 | # flags to let configure work. Ugly. | ||
24 | EXTRASITECONFIG = "CFLAGS='${CFLAGS} -Wl,-L${WORKDIR}/site_config_libc -L${WORKDIR}/site_config_libc -L${SYSROOT_DESTDIR}${libdir} -L${SYSROOT_DESTDIR}${base_libdir} -Wl,-L${SYSROOT_DESTDIR}${libdir} -Wl,-L${SYSROOT_DESTDIR}${base_libdir}'" | ||
25 | siteconfig_do_siteconfig_gencache_prepend = " \ | ||
26 | mkdir -p ${WORKDIR}/site_config_libc; \ | ||
27 | cp ${SYSROOT_DESTDIR}${libdir}/libc.so ${WORKDIR}/site_config_libc; \ | ||
28 | sed -i -e 's# ${base_libdir}# ${SYSROOT_DESTDIR}${base_libdir}#g' -e 's# ${libdir}# ${SYSROOT_DESTDIR}${libdir}#g' ${WORKDIR}/site_config_libc/libc.so; \ | ||
29 | " | ||
30 | |||
31 | # nptl needs unwind support in gcc, which can't be built without glibc. | ||
32 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial libgcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial" | ||
33 | 19 | ||
34 | PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" | 20 | PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" |
35 | PROVIDES += "virtual/libintl virtual/libiconv" | 21 | PROVIDES += "virtual/libintl virtual/libiconv" |