summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-03-03 12:24:39 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-06 06:19:18 -0800
commit00ab4a3a54fcaa714ae4968389c6bddb75e7166e (patch)
treed8f1491ba561b7b8271dabc1247c38a5ea073526 /meta/recipes-core/glibc/glibc.inc
parent41f638fad993343216691bd1f563522e19ef4c37 (diff)
downloadpoky-00ab4a3a54fcaa714ae4968389c6bddb75e7166e.tar.gz
glibc: Compile using thumb2 for arch > armv5 if user chooses
For arm we enforce ARM mode regardless of ARM_INSTRUCTION_SET choice from config metadata, glibc works fine with thumb2 for armv7+ so limit the restriction to armv5 and lower, tested on rpi3 works equally well as arm mode glibc and sheds about 0.5MB in size for main package alone. Other glibc build packages also gets smaller ARM: 2696 KiB libc6 Thumb2: 2132 KiB libc6 (From OE-Core rev: a22b97aff811566399765d755daffddb28f82857) Signed-off-by: Khem Raj <raj.khem@gmail.com> 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.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc
index 21bbdc2ad0..361a6fde10 100644
--- a/meta/recipes-core/glibc/glibc.inc
+++ b/meta/recipes-core/glibc/glibc.inc
@@ -57,7 +57,8 @@ INHIBIT_DEFAULT_DEPS = "1"
57# This needs to match with glibc-collateral.inc, otherwise glibc-scripts and glibc-locale 57# This needs to match with glibc-collateral.inc, otherwise glibc-scripts and glibc-locale
58# will fail to find main glibc, for details see 58# will fail to find main glibc, for details see
59# http://lists.openembedded.org/pipermail/openembedded-core/2015-January/100679.html 59# http://lists.openembedded.org/pipermail/openembedded-core/2015-January/100679.html
60ARM_INSTRUCTION_SET = "arm" 60ARM_INSTRUCTION_SET_armv4 = "arm"
61ARM_INSTRUCTION_SET_armv5 = "arm"
61 62
62# glibc uses PARALLELMFLAGS variable to pass parallel build info so transfer 63# glibc uses PARALLELMFLAGS variable to pass parallel build info so transfer
63# PARALLEL_MAKE into PARALLELMFLAGS and empty out PARALLEL_MAKE 64# PARALLEL_MAKE into PARALLELMFLAGS and empty out PARALLEL_MAKE