config/toolchain.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 14 21:30:27 2008 +0000 (2008-10-14)
changeset 935 e175e3538310
parent 803 1787813fc62a
child 1041 2573519c00d6
permissions -rw-r--r--
Introduce the notion of a 'sample comment'.

- presence of the sample's reported.by file is now mandatory.
- when saving a sample, reporter name & URL are queried, to avoid operator forget about creating the reported.by file.
- when saving a sample, one can store a few-liner comment.
- when recalling a sample, the reporter name, URL and comment (if present) are printed.
- update the powerpc-e500v2-linux-gnuspe sample to include Nate's comment (from his original mail).
- update all samples that were missing the reported.by file.

/trunk/scripts/saveSample.sh | 46 35 11 0 ++++++++++++++++++------
/trunk/scripts/showSamples.sh | 12 6 6 0 +++---
/trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 15 0 0 ++++++++
/trunk/samples/samples.mk | 22 17 5 0 +++++++++--
4 files changed, 73 insertions(+), 22 deletions(-)
     1 menu "Toolchain options"
     2 
     3 comment "General toolchain options"
     4 
     5 config USE_SYSROOT
     6     bool
     7     prompt "Use sysroot'ed toolchain"
     8     default y
     9     help
    10       Use the 'shinny new' sysroot feature of gcc: libraries split between
    11       prefix/target/sys-root/lib and prefix/target/sys-root/usr/lib
    12       
    13       You definitely want to say 'Y' here. Yes you do. I know you do. Say 'Y'.
    14 
    15 config SHARED_LIBS
    16     bool
    17     prompt "Build shared libraries"
    18     depends on ! BARE_METAL
    19     default y
    20     help
    21       Say 'y' here, unless you don't want shared libraries.
    22       
    23       You might not want shared libraries if you're building for a target that
    24       don't support it (maybe some nommu targets, for example, or bare metal).
    25 
    26 config TARGET_VENDOR
    27     string
    28     prompt "Vendor string"
    29     default "unknown"
    30     help
    31       Vendor part of the target tuple.
    32       
    33       A tuple is of the form arch-vendor-kernel-system.
    34       You can set the second part, vendor, to whatever you see fit.
    35       Use a single word, or use underscores "_" to separate words.
    36       
    37       Keep the default (unkown) if you don't know better.
    38 
    39 config TARGET_ALIAS_SED_EXPR
    40     string
    41     prompt "Target sed transform"
    42     default ""
    43     help
    44       Normaly, you'd call your toolchain components (especially gcc) by
    45       prefixing the target tuple followed by a dash and the component name
    46       (eg. armeb-unknown-linux-uclibc-gcc).
    47       
    48       You can enter here a sed expression to be applied to ${CT_TARGET} to
    49       create an alias for your toolchain.
    50       
    51       For example, "s/${CT_TARGET_VENDOR}/foobar/" (without the double quotes)
    52       will create the armeb-foobar-linux-uclibc alias to the above-mentioned
    53       toolchain.
    54       
    55       You shouldn't need to enter anything here, unless you plan to manually
    56       call the tools (autotools-based ./configure will use the standard name).
    57 
    58 config TARGET_ALIAS
    59     string
    60     prompt "Target alias"
    61     default ""
    62     help
    63       Normaly, you'd call your toolchain components (especially gcc) by
    64       prefixing the target tuple followed by a dash and the component name
    65       (eg. armeb-unknown-linux-uclibc-gcc).
    66       
    67       You can enter a shortcut here. This string will be used to create
    68       symbolic links to the toolchain tools (eg. if you enter "foo-bar" here,
    69       then gcc for your toolchain will also be available as "foo-bar-gcc" along
    70       with the original name).
    71       
    72       You shouldn't need to enter anything here, unless you plan to manually
    73       call the tools (autotools-based ./configure will use the standard name).
    74 
    75 comment "Toolchain type"
    76 
    77 choice
    78     bool
    79     prompt "Type"
    80     default CROSS
    81 
    82 config NATIVE
    83     bool
    84     prompt "Native (EXPERIMENTAL)"
    85     depends on EXPERIMENTAL
    86     help
    87       Build a native toolchain.
    88       See docs/overview.txt
    89 
    90 config CROSS
    91     bool
    92     prompt "Cross"
    93     help
    94       Build a cross-toolchain.
    95       See docs/overview.txt
    96 
    97 config CROSS_NATIVE
    98     bool
    99     prompt "Cross-native (EXPERIMENTAL)"
   100     depends on EXPERIMENTAL
   101     help
   102       Build a cross-native toolchain.
   103       See docs/overview.txt
   104 
   105 config CANADIAN
   106     bool
   107     prompt "Canadian (EXPERIMENTAL)"
   108     depends on EXPERIMENTAL
   109     help
   110       Build a canadian-toolchain.
   111       See docs/overview.txt
   112 
   113 endchoice
   114 
   115 config TOOLCHAIN_TYPE
   116     string
   117     default "native"        if NATIVE
   118     default "cross"         if CROSS
   119     default "cross-native"  if CROSS_NATIVE
   120     default "canadian"      if CANADIAN
   121 
   122 config BUILD 
   123     string
   124     prompt "Build system tuple"
   125     default ""
   126     help
   127       Canonical name of the machine building the toolchain.
   128       You should leave empty, unless you really now what you're doing.
   129 
   130 config CC_NATIVE
   131     string
   132     prompt "Native gcc"
   133     default "gcc"
   134     help
   135       The native C compiler.
   136       
   137       You can set this to an alternative compiler if you have more than one
   138       installed (eg. gcc is gcc-4.1.1 and you want to use gcc-3.4.6).
   139       
   140       You can leave this empty as well, in which case gcc will be used.
   141 
   142 config HOST
   143     string
   144     prompt "Host system tuple"
   145     default ""
   146     depends on NATIVE || CANADIAN
   147     help
   148       Canonical name of the machine running the toolchain.
   149 
   150 config HOST_CC
   151     string
   152     prompt "Cross-compiler prefix for host system"
   153     default "${CT_HOST}-"
   154     depends on NATIVE || CANADIAN
   155     help
   156       C compiler targeting the host system.
   157 
   158 config TARGET_CC
   159     string
   160     prompt "Cross-compiler prefix for target system"
   161     default "${CT_TARGET}-"
   162     depends on CANADIAN
   163     help
   164       C compiler targeting the target system.
   165 
   166 endmenu