]> code.ossystems Code Review - openembedded-core.git/commit
glibc: Compile using thumb2 for arch > armv5 if user chooses
authorKhem Raj <raj.khem@gmail.com>
Sat, 3 Mar 2018 20:24:39 +0000 (12:24 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Mar 2018 14:14:00 +0000 (06:14 -0800)
commita22b97aff811566399765d755daffddb28f82857
tree810885b0ae66d9357e9094e82509b1afba27dec8
parenta5a7b255b15290257cc032e0155338ab85595e4c
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glibc/glibc-collateral.inc
meta/recipes-core/glibc/glibc.inc