summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-07-24 17:24:02 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-07-24 17:24:02 (GMT)
commitb990202ced6f3f64b9daf91fa5cec638714cfff6 (patch)
tree52ed97216f2cc555cde88dd652f61125ff70d4a9 /scripts/build/cc/gcc.sh
parent58337ba708384bdd5d642fb01c3455ce73031119 (diff)
cc/gcc: fix core backend's API doc
Make it more in line with the final backend's doc, and make it simpler as well. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh27
1 files changed, 14 insertions, 13 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index a47bdb2..b9f6c8e 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -142,16 +142,18 @@ do_cc_core_pass_2() {
#------------------------------------------------------------------------------
# Build core gcc
-# This function is used to build both the static and the shared core C compiler,
-# with or without the target libgcc. We need to know wether:
-# - we're building static, shared or bare metal: mode=[static|shared|baremetal]
-# - we need to build libgcc or not : build_libgcc=[yes|no] (default: no)
-# - we need to build libstdc++ or not : build_libstdcxx=[yes|no] (default: no)
-# - we need to build statically linked or not : build_staticlinked=[yes|no] (default: no)
-# - where to find the companion libs (prefix) : complibs=<prefix_dir> (no default value)
-# - the prefix to install into (directory) : prefix=<directory> (no default value)
-# - the machine we will run on (tuple) : host=<tuple> (no default tuple)
-# - the CFLAGS to use : cflags=<CFLAGS> (empty)
+# This function is used to build the core C compiler.
+# Usage: do_cc_core_backend param=value [...]
+# Parameter : Definition : Type : Default
+# mode : build a 'static', 'shared' or 'baremetal' : string : (none)
+# host : the machine the core will run on : tuple : (none)
+# prefix : dir prefix to install into : dir : (none)
+# complibs : dir where complibs are isntalled : dir : (none)
+# build_libgcc : build libgcc or not : bool : no
+# build_libstdcxx : build libstdc++ or not : bool : no
+# build_staticlinked : build statically linked or not : bool : no
+# build_manuals : whether to build manuals or not : bool : no
+# cflags : host CFLAGS to use : string : (empty)
# Usage: do_cc_core_backend mode=[static|shared|baremetal] build_libgcc=[yes|no] build_staticlinked=[yes|no]
do_cc_core_backend() {
local mode
@@ -499,9 +501,8 @@ do_cc() {
}
#------------------------------------------------------------------------------
-# Build final gcc
-# Usage: do_cc_backend param=value ...
-# and so on for other parameters:
+# Build the final gcc
+# Usage: do_cc_backend param=value [...]
# Parameter : Definition : Type : Default
# host : the host we run onto : tuple : (none)
# prefix : the runtime prefix : dir : (none)