Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] feature-arm-thumb.inc cleanups
@ 2015-12-09  1:09 Andre McCurdy
  2015-12-09  1:09 ` [PATCH 1/3] feature-arm-thumb.inc: drop ARM -vs- thumb comments Andre McCurdy
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andre McCurdy @ 2015-12-09  1:09 UTC (permalink / raw)
  To: openembedded-core

Drop legacy interworking over-rides and cflags.

Andre McCurdy (3):
  feature-arm-thumb.inc: drop ARM -vs- thumb comments
  feature-arm-thumb.inc: drop legacy _thumb and _thumb-interwork over-rides
  feature-arm-thumb.inc: drop 'no-thumb-interwork' tuning feature

 meta/conf/machine/include/arm/feature-arm-thumb.inc | 17 -----------------
 1 file changed, 17 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/3] feature-arm-thumb.inc: drop ARM -vs- thumb comments
  2015-12-09  1:09 [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
@ 2015-12-09  1:09 ` Andre McCurdy
  2015-12-09  1:09 ` [PATCH 2/3] feature-arm-thumb.inc: drop legacy _thumb and _thumb-interwork over-rides Andre McCurdy
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Andre McCurdy @ 2015-12-09  1:09 UTC (permalink / raw)
  To: openembedded-core

Comments are old and specific to thumb1. Since oe-core CPU tuning
files aren't really the right place to fully document ARM -vs- thumb,
drop the comments instead of trying to update them.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/conf/machine/include/arm/feature-arm-thumb.inc | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/meta/conf/machine/include/arm/feature-arm-thumb.inc b/meta/conf/machine/include/arm/feature-arm-thumb.inc
index 5632171..0a9545c 100644
--- a/meta/conf/machine/include/arm/feature-arm-thumb.inc
+++ b/meta/conf/machine/include/arm/feature-arm-thumb.inc
@@ -1,9 +1,3 @@
-# The instruction set the compiler should use when generating application
-# code. The kernel is always compiled with arm code at present. arm code
-# is the original 32 bit ARM instruction set, thumb code is the 16 bit
-# encoded RISC sub-set. Thumb code is smaller (maybe 70% of the ARM size)
-# but requires more instructions (140% for 70% smaller code) so may be
-# slower.
 TUNEVALID[thumb] = "Use thumb instructions instead of ARM"
 ARM_THUMB_OPT = "${@['arm', 'thumb'][d.getVar('ARM_INSTRUCTION_SET', True) == 'thumb']}"
 ARM_THUMB_SUFFIX .= "${@bb.utils.contains('TUNE_FEATURES', 'armv4',  't',  '', d)}"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] feature-arm-thumb.inc: drop legacy _thumb and _thumb-interwork over-rides
  2015-12-09  1:09 [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
  2015-12-09  1:09 ` [PATCH 1/3] feature-arm-thumb.inc: drop ARM -vs- thumb comments Andre McCurdy
@ 2015-12-09  1:09 ` Andre McCurdy
  2015-12-09  1:09 ` [PATCH 3/3] feature-arm-thumb.inc: drop 'no-thumb-interwork' tuning feature Andre McCurdy
  2015-12-17 20:18 ` [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
  3 siblings, 0 replies; 6+ messages in thread
From: Andre McCurdy @ 2015-12-09  1:09 UTC (permalink / raw)
  To: openembedded-core

Bitbake over-rides for _thumb and _thumb-interwork are undocumented
and are not used anywhere in oe-core or meta-oe. The logic setting up
the thumb-interwork over-ride even seems to be reversed and nobody
noticed, so it seems safe to assume that these over-rides are not
used.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/conf/machine/include/arm/feature-arm-thumb.inc | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/meta/conf/machine/include/arm/feature-arm-thumb.inc b/meta/conf/machine/include/arm/feature-arm-thumb.inc
index 0a9545c..fb22977 100644
--- a/meta/conf/machine/include/arm/feature-arm-thumb.inc
+++ b/meta/conf/machine/include/arm/feature-arm-thumb.inc
@@ -24,7 +24,6 @@ python () {
 }
 
 TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ' -m${ARM_M_OPT}', '', d)}"
-OVERRIDES .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ':thumb', '', d)}"
 
 # Add suffix from ARM_THUMB_SUFFIX only if after all this we still set ARM_M_OPT to thumb
 ARMPKGSFX_THUMB .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${ARM_THUMB_SUFFIX}', '', d) if d.getVar('ARM_M_OPT', True) == 'thumb' else ''}"
@@ -35,9 +34,7 @@ ARMPKGSFX_THUMB .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${ARM_THUMB_
 # turn this off - the actual cost is very small.
 TUNEVALID[no-thumb-interwork] = "Disable mixing of thumb and ARM functions"
 THUMB_TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'no-thumb-interwork', ' -mno-thumb-interwork', ' -mthumb-interwork', d)}"
-THUMB_OVERRIDES .= "${@bb.utils.contains('TUNE_FEATURES', 'no-thumb-interwork', ':thumb-interwork', '', d)}"
 TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ' ${THUMB_TUNE_CCARGS}', '', d)}"
-OVERRIDES .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${THUMB_OVERRIDES}', '', d)}"
 
 # what about armv7m devices which don't support -marm (e.g. Cortex-M3)?
 TARGET_CC_KERNEL_ARCH += "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '-mno-thumb-interwork -marm', '', d)}"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] feature-arm-thumb.inc: drop 'no-thumb-interwork' tuning feature
  2015-12-09  1:09 [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
  2015-12-09  1:09 ` [PATCH 1/3] feature-arm-thumb.inc: drop ARM -vs- thumb comments Andre McCurdy
  2015-12-09  1:09 ` [PATCH 2/3] feature-arm-thumb.inc: drop legacy _thumb and _thumb-interwork over-rides Andre McCurdy
@ 2015-12-09  1:09 ` Andre McCurdy
  2015-12-17 20:18 ` [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
  3 siblings, 0 replies; 6+ messages in thread
From: Andre McCurdy @ 2015-12-09  1:09 UTC (permalink / raw)
  To: openembedded-core

Interworking is required for ARM EABI, so attempting to disable it
via a tuning feature no longer makes sense (support for ARM OABI was
deprecated in gcc 4.7). We can drop '-mthumb-interwork' from
TUNE_CCARGS for the same reason.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/conf/machine/include/arm/feature-arm-thumb.inc | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/meta/conf/machine/include/arm/feature-arm-thumb.inc b/meta/conf/machine/include/arm/feature-arm-thumb.inc
index fb22977..0c32210 100644
--- a/meta/conf/machine/include/arm/feature-arm-thumb.inc
+++ b/meta/conf/machine/include/arm/feature-arm-thumb.inc
@@ -28,13 +28,5 @@ TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ' -m${ARM_M_OPT}'
 # Add suffix from ARM_THUMB_SUFFIX only if after all this we still set ARM_M_OPT to thumb
 ARMPKGSFX_THUMB .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '${ARM_THUMB_SUFFIX}', '', d) if d.getVar('ARM_M_OPT', True) == 'thumb' else ''}"
 
-# Whether to compile with code to allow interworking between the two
-# instruction sets. This allows thumb code to be executed on a primarily
-# arm system and vice versa. It is strongly recommended that DISTROs not
-# turn this off - the actual cost is very small.
-TUNEVALID[no-thumb-interwork] = "Disable mixing of thumb and ARM functions"
-THUMB_TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'no-thumb-interwork', ' -mno-thumb-interwork', ' -mthumb-interwork', d)}"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'thumb', ' ${THUMB_TUNE_CCARGS}', '', d)}"
-
 # what about armv7m devices which don't support -marm (e.g. Cortex-M3)?
 TARGET_CC_KERNEL_ARCH += "${@bb.utils.contains('TUNE_FEATURES', 'thumb', '-mno-thumb-interwork -marm', '', d)}"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/3] feature-arm-thumb.inc cleanups
  2015-12-09  1:09 [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
                   ` (2 preceding siblings ...)
  2015-12-09  1:09 ` [PATCH 3/3] feature-arm-thumb.inc: drop 'no-thumb-interwork' tuning feature Andre McCurdy
@ 2015-12-17 20:18 ` Andre McCurdy
  2015-12-17 20:39   ` Burton, Ross
  3 siblings, 1 reply; 6+ messages in thread
From: Andre McCurdy @ 2015-12-17 20:18 UTC (permalink / raw)
  To: OE Core mailing list

On Tue, Dec 8, 2015 at 5:09 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
> Drop legacy interworking over-rides and cflags.

Ping. Does anyone see any issues with these changes?

> Andre McCurdy (3):
>   feature-arm-thumb.inc: drop ARM -vs- thumb comments
>   feature-arm-thumb.inc: drop legacy _thumb and _thumb-interwork over-rides
>   feature-arm-thumb.inc: drop 'no-thumb-interwork' tuning feature
>
>  meta/conf/machine/include/arm/feature-arm-thumb.inc | 17 -----------------
>  1 file changed, 17 deletions(-)
>
> --
> 1.9.1
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/3] feature-arm-thumb.inc cleanups
  2015-12-17 20:18 ` [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
@ 2015-12-17 20:39   ` Burton, Ross
  0 siblings, 0 replies; 6+ messages in thread
From: Burton, Ross @ 2015-12-17 20:39 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE Core mailing list

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

On 17 December 2015 at 20:18, Andre McCurdy <armccurdy@gmail.com> wrote:

> Ping. Does anyone see any issues with these changes?
>

Manage to mix those up with your more recent ARM fixes, both merged to my
staging branch now.

Thanks,
Ross

[-- Attachment #2: Type: text/html, Size: 755 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-17 20:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-09  1:09 [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
2015-12-09  1:09 ` [PATCH 1/3] feature-arm-thumb.inc: drop ARM -vs- thumb comments Andre McCurdy
2015-12-09  1:09 ` [PATCH 2/3] feature-arm-thumb.inc: drop legacy _thumb and _thumb-interwork over-rides Andre McCurdy
2015-12-09  1:09 ` [PATCH 3/3] feature-arm-thumb.inc: drop 'no-thumb-interwork' tuning feature Andre McCurdy
2015-12-17 20:18 ` [PATCH 0/3] feature-arm-thumb.inc cleanups Andre McCurdy
2015-12-17 20:39   ` Burton, Ross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox