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-initial.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-initial.inc')
-rw-r--r-- | meta/recipes-core/glibc/glibc-initial.inc | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/meta/recipes-core/glibc/glibc-initial.inc b/meta/recipes-core/glibc/glibc-initial.inc deleted file mode 100644 index acd0d6b1dc..0000000000 --- a/meta/recipes-core/glibc/glibc-initial.inc +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial libgcc-initial make-native bison-native" | ||
2 | PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" | ||
3 | |||
4 | PACKAGES = "" | ||
5 | PACKAGES_DYNAMIC = "" | ||
6 | |||
7 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" | ||
8 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${SDK_SYS}" | ||
9 | |||
10 | do_configure () { | ||
11 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" | ||
12 | find ${S} -name "configure" | xargs touch | ||
13 | cfgscript=`python3 -c "import os; print(os.path.relpath('${S}', '.'))"`/configure | ||
14 | $cfgscript --host=${TARGET_SYS} --build=${BUILD_SYS} \ | ||
15 | --prefix=/usr \ | ||
16 | --disable-sanity-checks \ | ||
17 | --with-headers=${STAGING_DIR_TARGET}${includedir} \ | ||
18 | --enable-hacker-mode | ||
19 | } | ||
20 | |||
21 | do_compile () { | ||
22 | : | ||
23 | } | ||
24 | |||
25 | do_install () { | ||
26 | oe_runmake cross-compiling=yes install_root=${D} \ | ||
27 | includedir='${includedir}' prefix='${prefix}' \ | ||
28 | install-bootstrap-headers=yes install-headers | ||
29 | |||
30 | oe_runmake csu/subdir_lib | ||
31 | mkdir -p ${D}${libdir}/ | ||
32 | install -m 644 csu/crt[1in].o ${D}${libdir} | ||
33 | |||
34 | # Two headers -- stubs.h and features.h -- aren't installed by install-headers, | ||
35 | # so do them by hand. We can tolerate an empty stubs.h for the moment. | ||
36 | # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html | ||
37 | mkdir -p ${D}${includedir}/gnu/ | ||
38 | touch ${D}${includedir}/gnu/stubs.h | ||
39 | cp ${S}/include/features.h ${D}${includedir}/features.h | ||
40 | |||
41 | if [ -e ${B}/bits/stdio_lim.h ]; then | ||
42 | cp ${B}/bits/stdio_lim.h ${D}${includedir}/bits/ | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | do_stash_locale() { | ||
47 | : | ||
48 | } | ||
49 | |||
50 | do_siteconfig () { | ||
51 | : | ||
52 | } | ||
53 | |||
54 | inherit nopackages | ||
55 | |||
56 | # We really only want this built by things that need it, not any recrdeptask | ||
57 | deltask do_build | ||