config/target.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 854 f347a40db591
child 1038 33f695f7773a
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 # Target definition: architecture, optimisations, etc...
     2 
     3 menu "Target options"
     4 
     5 config ARCH
     6     string
     7 
     8 # Pre-declare target optimisation variables
     9 config ARCH_SUPPORT_ARCH
    10 config ARCH_SUPPORT_ABI
    11 config ARCH_SUPPORT_CPU
    12 config ARCH_SUPPORT_TUNE
    13 config ARCH_SUPPORT_FPU
    14 config ARCH_SUPPORTS_BOTH_ENDIAN
    15 config ARCH_DEFAULT_BE
    16 config ARCH_DEFAULT_LE
    17 config ARCH_ARCH
    18 config ARCH_ABI
    19 config ARCH_CPU
    20 config ARCH_TUNE
    21 config ARCH_FPU
    22 config ARCH_BE
    23 config ARCH_LE
    24 config ARCH_FLOAT_HW
    25 config ARCH_FLOAT_SW
    26 config TARGET_CFLAGS
    27 config TARGET_LDFLAGS
    28 
    29 comment "General target options"
    30 
    31 source config.gen/arch.in
    32 
    33 config ARCH_SUPPORTS_BOTH_ENDIAN
    34     bool
    35     default n
    36 
    37 config ARCH_DEFAULT_BE
    38     bool
    39     default n
    40 
    41 config ARCH_DEFAULT_LE
    42     bool
    43     default n
    44 
    45 choice
    46     bool
    47     prompt "Endianness:"
    48     depends on ARCH_SUPPORTS_BOTH_ENDIAN
    49     default ARCH_BE if ARCH_DEFAULT_BE
    50     default ARCH_LE if ARCH_DEFAULT_LE
    51 
    52 config ARCH_BE
    53     bool
    54     prompt "Big endian"
    55 
    56 config ARCH_LE
    57     bool
    58     prompt "Little endian"
    59 
    60 endchoice
    61 
    62 comment "Target optimisations"
    63 
    64 config ARCH_SUPPORT_ARCH
    65     bool
    66     default n
    67 
    68 config ARCH_SUPPORT_ABI
    69     bool
    70     default n
    71 
    72 config ARCH_SUPPORT_CPU
    73     bool
    74     default n
    75 
    76 config ARCH_SUPPORT_TUNE
    77     bool
    78     default n
    79 
    80 config ARCH_SUPPORT_FPU
    81     bool
    82     default n
    83 
    84 config ARCH_ARCH
    85     string
    86     prompt "Architecture level"
    87     depends on ARCH_SUPPORT_ARCH
    88     default ""
    89     help
    90       GCC uses this name to determine what kind of instructions it can emit
    91       when generating assembly code. This option can be used in conjunction
    92       with or instead of the ARCH_CPU option (above), or a (command-line)
    93       -mcpu= option.
    94       
    95       This is the configuration flag --with-arch=XXXX, and the runtime flag
    96       -march=XXX.
    97       
    98       Pick a value from the gcc manual for your choosen gcc version and your
    99       target CPU.
   100       
   101       Leave blank if you don't know, or if your target architecture does not
   102       offer this option.
   103 
   104 config ARCH_ABI
   105     string
   106     prompt "Generate code for the specific ABI"
   107     depends on ARCH_SUPPORT_ABI
   108     default ""
   109     help
   110       Generate code for the given ABI.
   111 
   112       This is the configuration flag --with-abi=XXXX, and the runtime flag
   113       -mabi=XXX.
   114 
   115       Pick a value from the gcc manual for your choosen gcc version and your
   116       target CPU.
   117 
   118       Leave blank if you don't know, or if your target architecutre does not
   119       offer this option.
   120 
   121 config ARCH_CPU
   122     string
   123     prompt "Emit assembly for CPU"
   124     depends on ARCH_SUPPORT_CPU
   125     default ""
   126     help
   127       This specifies the name of the target processor. GCC uses this name
   128       to determine what kind of instructions it can emit when generating
   129       assembly code.
   130       
   131       This is the configuration flag --with-cpu=XXXX, and the runtime flag
   132       -mcpu=XXX.
   133 
   134       Pick a value from the gcc manual for your choosen gcc version and your
   135       target CPU.
   136       
   137       Leave blank if you don't know, or if your target architecture does not
   138       offer this option.
   139 
   140 config ARCH_TUNE
   141     string
   142     prompt "Tune for CPU"
   143     depends on ARCH_SUPPORT_TUNE
   144     default ""
   145     help
   146       This option is very similar to the ARCH_CPU option (above), except
   147       that instead of specifying the actual target processor type, and hence
   148       restricting which instructions can be used, it specifies that GCC should
   149       tune the performance of the code as if the target were of the type
   150       specified in this option, but still choosing the instructions that it
   151       will generate based on the cpu specified by the ARCH_CPU option
   152       (above), or a (command-line) -mcpu= option.
   153       
   154       This is the configuration flag --with-tune=XXXX, and the runtime flag
   155       -mtune=XXX.
   156       
   157       Pick a value from the gcc manual for your choosen gcc version and your
   158       target CPU.
   159       
   160       Leave blank if you don't know, or if your target architecture does not
   161       offer this option.
   162 
   163 config ARCH_FPU
   164     string
   165     prompt "Use specific FPU"
   166     depends on ARCH_SUPPORT_FPU
   167     default ""
   168     help
   169       On some targets (eg. ARM), you can specify the kind of FPU to emit
   170       code for.
   171 
   172       This is the configuration flag --with-fpu=XXX, and the runtime flag
   173       -mfpu=XXX.
   174       
   175       See below wether to actually emit FP opcodes, or to emulate them.
   176       
   177       Pick a value from the gcc manual for your choosen gcc version and your
   178       target CPU.
   179       
   180       Leave blank if you don't know, or if your target architecture does not
   181       offer this option.
   182 
   183 choice
   184     bool
   185     prompt "Floating point:"
   186 
   187 config ARCH_FLOAT_HW
   188     bool
   189     prompt "hardware (FPU)"
   190     help
   191       Emit hardware floating point opcodes.
   192       
   193       If you've got a processor with a FPU, then you want that.
   194       If your hardware has no FPU, you still can use HW floating point, but
   195       need to compile support for FPU emulation in your kernel. Needless to
   196       say that emulating the FPU is /slooowwwww/...
   197       
   198       One situation you'd want HW floating point without a FPU is if you get
   199       binary blobs from different vendors that are compiling this way and
   200       can't (don't wan't to) change.
   201 
   202 config ARCH_FLOAT_SW
   203     bool
   204     prompt "software"
   205     help
   206       Do not emit any hardware floating point opcode.
   207       
   208       If your processor has no FPU, then you most probably want this, as it
   209       is faster than emulating the FPU in the kernel.
   210 
   211 endchoice
   212 
   213 config TARGET_CFLAGS
   214     string
   215     prompt "Target CFLAGS"
   216     default ""
   217     help
   218       Used to add specific options when compiling libraries of the toolchain,
   219       that will run on the target (eg. libc.so).
   220       
   221       Note that the options above for ARCH, ABI, CPU, TUNE and FPU will be
   222       automaticaly used. You don't need to specify them here.
   223       
   224       Leave blank if you don't know better.
   225 
   226 config TARGET_LDFLAGS
   227     string
   228     prompt "Target LDFLAGS"
   229     default ""
   230     help
   231       Used to add specific options when linking libraries of the toolchain,
   232       that will run on your target.
   233       
   234       Leave blank if you don't know better.
   235 
   236 endmenu