summaryrefslogtreecommitdiff
path: root/docs/overview.txt
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-14 21:17:59 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-14 21:17:59 (GMT)
commit60b0bb1bab1dca165c5d93c55f02b5da27719274 (patch)
treeee30a46b2e3cf1bc63ad7500b2b1051626e3dc66 /docs/overview.txt
parentc0f4b573f8a334c3e946737920764831d5dc1e1f (diff)
Migrate all supported architectures to use the architecture-specific framework.
Diffstat (limited to 'docs/overview.txt')
-rw-r--r--docs/overview.txt41
1 files changed, 30 insertions, 11 deletions
diff --git a/docs/overview.txt b/docs/overview.txt
index 34cb756..ced069b 100644
--- a/docs/overview.txt
+++ b/docs/overview.txt
@@ -485,23 +485,42 @@ An architecture is defined by:
follow the API defined below. Eg.: arch/arm/functions
The "functions" file API:
- > the function "CT_DoBuildTargetTuple"
+ > the function "CT_DoArchValues"
+ parameters: none
+ environment:
- all variables from the ".config" file,
- the two variables "target_endian_eb" and "target_endian_el" which are
- the endiannes suffixes
+ the endianness suffixes
+ return value: 0 upon success, !0 upon failure
+ provides:
- - the target tuple stored in the variable CT_TARGET_ARCH
-
- > the environment variable CT_ARCH_ENDIAN_OPT
- + contains:
- - the value of the CFLAGS values for selecting the endiannes (eg.: -ml
- for a Super-H little endian, -mbig-endian for an ARM big endian).
- - empty if the architecture can not set the endianness (eg x86 and
- x86_64).
-
+ - the environment variable CT_TARGET_ARCH
+ - mandatory
+ - contains:
+ the architecture part of the target tuple.
+ Eg.: "armeb" for big endian ARM
+ "i386" for an i386
+ + provides:
+ - the environment variable CT_TARGET_ARCH
+ - optional
+ - contain:
+ the sytem part of the target tuple.
+ Eg.: "gnu" for glibc on most architectures
+ "gnueabi" for glibc on an ARM EABI
+ - defaults to:
+ - for glibc-based toolchain: "gnu"
+ - for uClibc-based toolchain: "uclibc"
+ + provides:
+ - the environment variable CT_ARCH_ENDIAN_OPT
+ - optional
+ - contains:
+ the compiler option to set the endianness.
+ Eg.: "-ml" for a Super-H little endian
+ "-mbig-endian" for an ARM big endian
+ /empty/ for x86 and x86_64
+ - defaults to:
+ - for bi-endian big endian architectures: "-mbig-endian"
+ - for bi-endian little endian architectures: "-mlittle-endian"
+ - for single-endian architectures: /empty/
Build scripts |
--------------*