diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-12-19 12:01:17 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-12-19 12:01:17 +0000 |
commit | 994be9eaf4ff1c4911451ccdea9346f2a4d345af (patch) | |
tree | 32e99ff59c5887790015d00d2a6caefab1c62478 /meta/conf | |
parent | 2f039d93e367e94e7c1f4d729dcd93abf6a3b9d2 (diff) | |
download | poky-994be9eaf4ff1c4911451ccdea9346f2a4d345af.tar.gz |
tune-thumb: switch ARM/Thumb instruction set (from OE)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3356 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/include/tune-thumb.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/conf/machine/include/tune-thumb.inc b/meta/conf/machine/include/tune-thumb.inc new file mode 100644 index 0000000000..a25cb5320c --- /dev/null +++ b/meta/conf/machine/include/tune-thumb.inc | |||
@@ -0,0 +1,32 @@ | |||
1 | #tune file for thumb instructions | ||
2 | |||
3 | ARM_INSTRUCTION_SET ?= "arm" | ||
4 | # "arm" "thumb" | ||
5 | # The instruction set the compiler should use when generating application | ||
6 | # code. The kernel is always compiled with arm code at present. arm code | ||
7 | # is the original 32 bit ARM instruction set, thumb code is the 16 bit | ||
8 | # encoded RISC sub-set. Thumb code is smaller (maybe 70% of the ARM size) | ||
9 | # but requires more instructions (140% for 70% smaller code) so may be | ||
10 | # slower. | ||
11 | |||
12 | THUMB_INTERWORK ?= "yes" | ||
13 | # "yes" "no" | ||
14 | # Whether to compile with code to allow interworking between the two | ||
15 | # instruction sets. This allows thumb code to be executed on a primarily | ||
16 | # arm system and vice versa. It is strongly recommended that DISTROs not | ||
17 | # turn this off - the actual cost is very small. | ||
18 | |||
19 | OVERRIDE_THUMB = "${@['', ':thumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}" | ||
20 | OVERRIDE_INTERWORK = "${@['', ':thumb-interwork'][bb.data.getVar('THUMB_INTERWORK', d, 1) == 'yes']}" | ||
21 | OVERRIDES .= "${OVERRIDE_THUMB}${OVERRIDE_INTERWORK}" | ||
22 | |||
23 | # Compiler and linker options for application code and kernel code. These | ||
24 | # options ensure that the compiler has the correct settings for the selected | ||
25 | # instruction set and interworking. | ||
26 | ARM_INTERWORK_M_OPT = "${@['-mno-thumb-interwork', '-mthumb-interwork'][bb.data.getVar('THUMB_INTERWORK', d, 1) == 'yes']}" | ||
27 | ARM_THUMB_M_OPT = "${@['-mno-thumb', '-mthumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}" | ||
28 | |||
29 | # | ||
30 | TARGET_CC_ARCH += "${ARM_INTERWORK_M_OPT} ${ARM_THUMB_M_OPT}" | ||
31 | TARGET_CC_KERNEL_ARCH += "-mno-thumb-interwork -mno-thumb" | ||
32 | |||