diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2019-08-23 13:51:36 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-07 07:47:24 +0100 |
commit | 71fbb2077124c18f2ae2d26b07869c5a29a55edb (patch) | |
tree | e4d65a233a7a91f154529e2830b4424c511e17c4 /meta/conf | |
parent | fa3d3c4a1714e7cddcbae8988f465380be545bdf (diff) | |
download | poky-71fbb2077124c18f2ae2d26b07869c5a29a55edb.tar.gz |
feature-arm-thumb.inc: fix ARM_THUMB_SUFFIX
Since TUNE_FEATURES now either contains a CPU or an architecture (but
not both) we can't rely on finding the architecture in TUNE_FEATURES.
Use architecture specific over-rides instead.
(From OE-Core rev: 805dd4807d322dc70cef97edd68fdb3142b60fb1)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/include/arm/feature-arm-thumb.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/conf/machine/include/arm/feature-arm-thumb.inc b/meta/conf/machine/include/arm/feature-arm-thumb.inc index 0b47ccad02..bae169da3a 100644 --- a/meta/conf/machine/include/arm/feature-arm-thumb.inc +++ b/meta/conf/machine/include/arm/feature-arm-thumb.inc | |||
@@ -1,8 +1,6 @@ | |||
1 | 1 | ||
2 | TUNEVALID[thumb] = "Support Thumb instructions" | 2 | TUNEVALID[thumb] = "Support Thumb instructions" |
3 | 3 | ||
4 | ARM_THUMB_SUFFIX = "${@bb.utils.contains_any('TUNE_FEATURES', 'armv4 armv5 armv6', 't', 't2', d)}" | ||
5 | |||
6 | # If the device supports ARM, then respect ARM_THUMB_OPT (which can be "arm" or "thumb") | 4 | # If the device supports ARM, then respect ARM_THUMB_OPT (which can be "arm" or "thumb") |
7 | # If the device doesn't support ARM, then always set "thumb" even when | 5 | # If the device doesn't support ARM, then always set "thumb" even when |
8 | # some recipe explicitly sets ARM_INSTRUCTION_SET to "arm" | 6 | # some recipe explicitly sets ARM_INSTRUCTION_SET to "arm" |
@@ -23,6 +21,11 @@ python () { | |||
23 | 21 | ||
24 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ' -m${ARM_M_OPT}', '', d)}" | 22 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ' -m${ARM_M_OPT}', '', d)}" |
25 | 23 | ||
24 | ARM_THUMB_SUFFIX = "t2" | ||
25 | ARM_THUMB_SUFFIX_armv4 = "t" | ||
26 | ARM_THUMB_SUFFIX_armv5 = "t" | ||
27 | ARM_THUMB_SUFFIX_armv6 = "t" | ||
28 | |||
26 | # Add suffix from ARM_THUMB_SUFFIX only if after all this we still set ARM_M_OPT to thumb | 29 | # Add suffix from ARM_THUMB_SUFFIX only if after all this we still set ARM_M_OPT to thumb |
27 | ARMPKGSFX_THUMB .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${ARM_THUMB_SUFFIX}', '', d) if d.getVar('ARM_M_OPT') == 'thumb' else ''}" | 30 | ARMPKGSFX_THUMB .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${ARM_THUMB_SUFFIX}', '', d) if d.getVar('ARM_M_OPT') == 'thumb' else ''}" |
28 | 31 | ||