summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2015-02-18 15:40:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-21 22:05:36 +0000
commitfe66853cded794a7585ed28c519b32930979c2bc (patch)
treea42368cdc5d8b42eae087963e302ca91af250a93 /meta
parent4b69d0013dc40b1c8573ff4b03c99abf57538eaa (diff)
downloadpoky-fe66853cded794a7585ed28c519b32930979c2bc.tar.gz
feature-arm-thumb.inc: respect ARM_INSTRUCTION_SET when adding thumb suffix
* this means that recipes with ARM_INSTRUCTION_SET explicitly changed to arm will be built in feed without thumb suffix, the same does apply for workdir, e.g. after "bitbake glib-2.0" you can see: tmp-glibc/work/armv5e-oe-linux-gnueabi: glib-2.0 glibc glibc-initial tmp-glibc/work/armv5te-oe-linux-gnueabi: acl db gdk-pixbuf kmod .... and tmp-glibc/deploy/ipk: all armv5e armv5te qemuarm * feed config should be ok, because all default DEFAULTTUNEs always include "arm" variants of all supported PACKAGE_ARCHs * for more details see http://lists.openembedded.org/pipermail/openembedded-core/2014-April/091960.html the toolchain path issues were resolved in 1.8 * add ARM_INSTRUCTION_SET = "arm" to glibc-collateral.inc and comment in glibc.inc to fix glibc-locale and glibc-scripts build (From OE-Core rev: 3e760031f91fb87c3e2f62b77a117eb41164f259) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/conf/machine/include/arm/feature-arm-thumb.inc3
-rw-r--r--meta/recipes-core/glibc/glibc-collateral.inc5
-rw-r--r--meta/recipes-core/glibc/glibc.inc3
3 files changed, 10 insertions, 1 deletions
diff --git a/meta/conf/machine/include/arm/feature-arm-thumb.inc b/meta/conf/machine/include/arm/feature-arm-thumb.inc
index 0db5ec136a..9746c7bce7 100644
--- a/meta/conf/machine/include/arm/feature-arm-thumb.inc
+++ b/meta/conf/machine/include/arm/feature-arm-thumb.inc
@@ -32,7 +32,8 @@ python () {
32TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ' -m${ARM_M_OPT}', '', d)}" 32TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ' -m${ARM_M_OPT}', '', d)}"
33OVERRIDES .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ':thumb', '', d)}" 33OVERRIDES .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ':thumb', '', d)}"
34 34
35ARMPKGSFX_THUMB .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${ARM_THUMB_SUFFIX}', '', d)}" 35# Add suffix from ARM_THUMB_SUFFIX only if after all this we still set ARM_M_OPT to thumb
36ARMPKGSFX_THUMB .= "${@ d.getVar('ARM_THUMB_SUFFIX', True) if d.getVar('ARM_M_OPT', True) == 'thumb' else ''}"
36 37
37# Whether to compile with code to allow interworking between the two 38# Whether to compile with code to allow interworking between the two
38# instruction sets. This allows thumb code to be executed on a primarily 39# instruction sets. This allows thumb code to be executed on a primarily
diff --git a/meta/recipes-core/glibc/glibc-collateral.inc b/meta/recipes-core/glibc/glibc-collateral.inc
index 85e06da816..dfcebae388 100644
--- a/meta/recipes-core/glibc/glibc-collateral.inc
+++ b/meta/recipes-core/glibc/glibc-collateral.inc
@@ -2,6 +2,11 @@ INHIBIT_DEFAULT_DEPS = "1"
2LICENSE = "GPLv2 & LGPLv2.1" 2LICENSE = "GPLv2 & LGPLv2.1"
3HOMEPAGE = "http://www.gnu.org/software/libc/index.html" 3HOMEPAGE = "http://www.gnu.org/software/libc/index.html"
4 4
5# This needs to match with glibc.inc, otherwise glibc-scripts and glibc-locale
6# will fail to find main glibc, for details see
7# http://lists.openembedded.org/pipermail/openembedded-core/2015-January/100679.html
8ARM_INSTRUCTION_SET = "arm"
9
5do_fetch[noexec] = "1" 10do_fetch[noexec] = "1"
6do_unpack[noexec] = "1" 11do_unpack[noexec] = "1"
7do_patch[noexec] = "1" 12do_patch[noexec] = "1"
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc
index 767d4b8b5b..99a4753044 100644
--- a/meta/recipes-core/glibc/glibc.inc
+++ b/meta/recipes-core/glibc/glibc.inc
@@ -61,6 +61,9 @@ GLIBC_EXTRA_OECONF ?= ""
61GLIBC_EXTRA_OECONF_class-nativesdk = "" 61GLIBC_EXTRA_OECONF_class-nativesdk = ""
62INHIBIT_DEFAULT_DEPS = "1" 62INHIBIT_DEFAULT_DEPS = "1"
63 63
64# This needs to match with glibc-collateral.inc, otherwise glibc-scripts and glibc-locale
65# will fail to find main glibc, for details see
66# http://lists.openembedded.org/pipermail/openembedded-core/2015-January/100679.html
64ARM_INSTRUCTION_SET = "arm" 67ARM_INSTRUCTION_SET = "arm"
65 68
66# glibc uses PARALLELMFLAGS variable to pass parallel build info so transfer 69# glibc uses PARALLELMFLAGS variable to pass parallel build info so transfer