OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [redboot/] [v2_0/] [cdl/] [redboot.cdl] - Blame information for rev 256

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      redboot.cdl
4
#
5
#      Redboot package configuration data
6
#
7
# ====================================================================
8
#####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12
## Copyright (C) 2002 Gary Thomas
13
##
14
## eCos is free software; you can redistribute it and/or modify it under
15
## the terms of the GNU General Public License as published by the Free
16
## Software Foundation; either version 2 or (at your option) any later version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License along
24
## with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26
##
27
## As a special exception, if other files instantiate templates or use macros
28
## or inline functions from this file, or you compile this file and link it
29
## with other works to produce a work based on this file, this file does not
30
## by itself cause the resulting work to be covered by the GNU General Public
31
## License. However the source code for this file must still be made available
32
## in accordance with section (3) of the GNU General Public License.
33
##
34
## This exception does not invalidate any other reasons why a work based on
35
## this file might be covered by the GNU General Public License.
36
##
37
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
38
## at http://sources.redhat.com/ecos/ecos-license/
39
## -------------------------------------------
40
#####ECOSGPLCOPYRIGHTEND####
41
# ====================================================================
42
######DESCRIPTIONBEGIN####
43
#
44
# Author(s):      gthomas
45
# Original data:  gthomas
46
# Contributors:   Philippe Robin, Andrew Lunn, tkoeller
47
# Date:           2000-05-01
48
#
49
#####DESCRIPTIONEND####
50
#
51
# ====================================================================
52
cdl_package CYGPKG_REDBOOT {
53
    display       "Redboot ROM monitor"
54
    doc           ref/redboot.html
55
    define_header redboot.h
56
    description   "
57
           This package supports the Redboot \[stand-alone debug monitor\]
58
           using eCos as the underlying board support mechanism."
59
 
60
    # Since the CYGDAT_REDBOOT_CONSOLE_DEV setting ends up in the platform
61
    # HAL header, we need to include that here (via hal.h).
62
    define_proc {
63
        puts $::cdl_header "#include "
64
    }
65
 
66
    cdl_option CYGSEM_REDBOOT_ELF {
67
        flavor bool
68
        display       "Include support for ELF file format"
69
        default_value 1
70
    }
71
 
72
 
73
    cdl_interface CYGINT_REDBOOT_LOAD_METHOD {
74
        display "Methods of loading images using redboot"
75
    }
76
 
77
    cdl_component CYGBLD_BUILD_REDBOOT {
78
        display "Build Redboot ROM ELF image"
79
        default_value 0
80
        requires CYGPKG_INFRA
81
        requires CYGPKG_ISOINFRA
82
# Someday the tools will handle this
83
#        requires { CYGINT_HAL_DEBUG_GDB_STUBS implies CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
84
#        requires { CYGINT_HAL_DEBUG_GDB_STUBS implies CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT }
85
#
86
        requires { !CYGINT_HAL_DEBUG_GDB_STUBS || CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
87
        requires { !CYGINT_HAL_DEBUG_GDB_STUBS || CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT }
88
#
89
        requires ! CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
90
        requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
91
        requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
92
        requires CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT
93
 
94
        requires CYGINT_ISO_STRING_MEMFUNCS
95
        requires CYGINT_ISO_STRING_STRFUNCS
96
        requires CYGINT_REDBOOT_LOAD_METHOD
97
 
98
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_THREADS {
99
            display "Threads debugging support"
100
            no_define
101
            description "
102
              Enabling this option will include special code in the GDB stubs to
103
              support debugging of threaded programs.  In the case of eCos programs,
104
              this support allows GDB to have complete access to the eCos threads
105
              in the program."
106
            active_if { CYG_HAL_STARTUP != "RAM" }
107
            requires  CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
108
        }
109
 
110
        cdl_option CYGDAT_REDBOOT_CUSTOM_VERSION {
111
            display        "Customized version string"
112
            flavor         booldata
113
            default_value  0
114
            description    "
115
              Use this option to define a customized version \"string\" for
116
              RedBoot.  Note: this value is only cosmetic, displayed by the
117
              \"version\" command, but is useful for providing site specific
118
              information about the RedBoot configuration."
119
        }
120
 
121
        cdl_option CYGNUM_REDBOOT_CMD_LINE_EDITING {
122
            display          "Enable command line editing"
123
            flavor           data
124
            default_value    16
125
            description      "
126
               If this option is non-zero, RedBoot will remember the last N command
127
               lines.  These lines may be reused.  Enabling this history will also
128
               enable rudimentary editting of the lines themselves."
129
        }
130
 
131
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_ZLIB {
132
            display       "Include support gzip/zlib decompression"
133
            active_if     CYGPKG_COMPRESS_ZLIB
134
            no_define
135
            default_value 1
136
            implements    CYGINT_COMPRESS_ZLIB_LOCAL_ALLOC
137
            compile       decompress.c
138
        }
139
 
140
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_XYZMODEM {
141
            display       "Include support for xyzModem downloads"
142
            doc           ref/download-command.html
143
            no_define
144
            default_value 1
145
            implements    CYGINT_REDBOOT_LOAD_METHOD
146
            compile -library=libextras.a xyzModem.c
147
        }
148
 
149
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_CKSUM {
150
            display       "Include POSIX checksum command"
151
            doc           ref/cksum-command.html
152
            default_value 1
153
            compile -library=libextras.a cksum.c
154
        }
155
 
156
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_MFILL {
157
            display       "Include memory fill command"
158
            doc           ref/mfill-command.html
159
            default_value 1
160
            compile -library=libextras.a mfill.c
161
        }
162
 
163
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_MCMP {
164
            display       "Include memory compare command"
165
            doc           ref/mcmp-command.html
166
            default_value 1
167
            compile -library=libextras.a mcmp.c
168
        }
169
 
170
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_DUMP {
171
            display       "Include memory dump command"
172
            doc           ref/dump-command.html
173
            default_value 1
174
            compile -library=libextras.a dump.c
175
        }
176
 
177
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_CACHES {
178
            display       "Include cache command"
179
            doc           ref/cache-command.html
180
            default_value 1
181
            compile -library=libextras.a caches.c
182
        }
183
 
184
        cdl_option CYGBLD_BUILD_REDBOOT_WITH_EXEC {
185
            display       "Include exec command"
186
            doc           ref/exec-command.html
187
            default_value 1
188
            # Implemented within the platform HAL
189
        }
190
 
191
        no_define
192
        description "This option enables the building of the Redboot ELF image.
193
                     The image may require further relocation or symbol
194
                     stripping before being converted to a binary image.
195
                     This is handled by a rule in the target CDL."
196
 
197
        compile main.c
198
        compile misc_funs.c io.c parse.c ticks.c syscall.c alias.c
199
        compile -library=libextras.a load.c
200
 
201
        make -priority 320 {
202
            /bin/redboot.elf : $(PREFIX)/lib/target.ld $(PREFIX)/lib/vectors.o $(PREFIX)/lib/libtarget.a $(PREFIX)/lib/libextras.a
203
                    @sh -c "mkdir -p $(dir $@)"
204
                    $(CC) -c $(INCLUDE_PATH) $(CFLAGS) -o $(PREFIX)/lib/version.o $(REPOSITORY)/$(PACKAGE)/src/version.c
205
                    $(CC) $(LDFLAGS) -L$(PREFIX)/lib -Ttarget.ld -o $@ $(PREFIX)/lib/version.o
206
        }
207
 
208
        cdl_component CYGPKG_REDBOOT_NETWORKING {
209
            display       "Redboot Networking"
210
            flavor        bool
211
            active_if     CYGPKG_IO_ETH_DRIVERS
212
            default_value 1
213
            implements    CYGINT_REDBOOT_LOAD_METHOD
214
            compile net/bootp.c net/udp.c net/ip.c net/pktbuf.c net/cksum.c
215
            compile net/enet.c net/icmp.c net/tcp.c net/timers.c net/arp.c
216
            compile net/net_io.c net/inet_addr.c
217
            compile -library=libextras.a net/ping.c net/tftp_client.c
218
            description "This option includes networking support in RedBoot."
219
            define_proc {
220
                puts $::cdl_system_header "#define CYGNUM_HAL_VIRTUAL_VECTOR_AUX_CHANNELS 1"
221
            }
222
 
223
            cdl_option CYGDBG_REDBOOT_NET_DEBUG {
224
                display          "Print net debug information"
225
                flavor           bool
226
                default_value    0
227
                description      "
228
                    This option is overriden by the configuration stored in flash."
229
            }
230
 
231
            cdl_option CYGSEM_REDBOOT_NET_HTTP_DOWNLOAD {
232
                display          "Support HTTP for download"
233
                flavor           bool
234
                default_value    1
235
                compile          -library=libextras.a net/http_client.c
236
                description      "
237
                    This option enables the use of the HTTP protocol for download"
238
            }
239
 
240
            cdl_component CYGDAT_REDBOOT_DEFAULT_IP_ADDR {
241
                display          "Default IP address"
242
                flavor           booldata
243
                default_value    CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : \
244
                                    { "0, 0, 0, 0" }
245
                description      "
246
                    This IP address is the default used by RedBoot if a BOOTP/DHCP
247
                    server does not respond. The numbers should be separated by
248
                    *commas*, and not dots. If an IP address is configured into
249
                    the Flash configuration, that will be used in preference."
250
 
251
                cdl_option CYGSEM_REDBOOT_DEFAULT_NO_BOOTP {
252
                     display          "Do not try to use BOOTP"
253
                     flavor           bool
254
                     default_value    0
255
                     description      "
256
                         By default Redboot tries to use BOOTP to get an IP
257
                         address. If there's no BOOTP server on your network
258
                         use this option to avoid to wait until the
259
                         timeout. This option is overriden by the
260
                         configuration stored in flash."
261
                }
262
            }
263
 
264
            cdl_component CYGSEM_REDBOOT_NETWORKING_USE_GATEWAY {
265
                display          "Use a gateway for non-local IP traffic"
266
                flavor           bool
267
                default_value    1
268
                description      "
269
                  Enabling this option will allow the RedBoot networking
270
                stack to use a \[single\] gateway to reach a non-local
271
                IP address.  If disabled, RedBoot will only be able to
272
                reach nodes on the same subnet."
273
 
274
                cdl_component CYGDAT_REDBOOT_DEFAULT_GATEWAY_IP_ADDR {
275
                    display          "Default gateway IP address"
276
                    flavor           booldata
277
                    default_value    CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : \
278
                                        { "0, 0, 0, 0" }
279
                    description      "
280
                        This IP address is the default used by RedBoot if a BOOTP/DHCP
281
                        server does not respond. The numbers should be separated by
282
                        *commas*, and not dots. If an IP address is configured into
283
                        the Flash configuration, that will be used in preference."
284
                }
285
 
286
                cdl_component CYGDAT_REDBOOT_DEFAULT_IP_ADDR_MASK {
287
                    display          "Default IP address mask"
288
                    flavor           booldata
289
                    default_value    CYGSEM_REDBOOT_FLASH_CONFIG ? 0 : \
290
                                        { "255, 255, 255, 0" }
291
                    description      "
292
                        This IP address mask is the default used by RedBoot if a BOOTP/DHCP
293
                        server does not respond. The numbers should be separated by
294
                        *commas*, and not dots. If an IP address is configured into
295
                        the Flash configuration, that will be used in preference."
296
                }
297
            }
298
 
299
            cdl_option CYGNUM_REDBOOT_NETWORKING_TCP_PORT {
300
                display          "TCP port to listen for incoming connections"
301
                flavor           data
302
                default_value    9000
303
                description      "
304
                   RedBoot will 'listen' on this port for incoming TCP connections.
305
                   This allows outside connections to be made to the platform, either
306
                   for GDB or RedBoot commands."
307
            }
308
 
309
            cdl_option CYGNUM_REDBOOT_NETWORKING_MAX_PKTBUF {
310
                display          "Number of \[network\] packet buffers"
311
                flavor           data
312
                default_value    4
313
                legal_values     3 to 8
314
                description      "
315
                   RedBoot may need to buffer network data to support various connections.
316
                   This option allows control over the number of such buffered packets,
317
                   and in turn, controls the amount of memory used by RedBoot (which
318
                   is not available to user applications).  Each packet buffer takes up
319
                   about 1514 bytes.  Note: there is little need to make this larger
320
                   than the default."
321
            }
322
 
323
            cdl_component CYGPKG_REDBOOT_NETWORKING_DNS {
324
                display         "DNS support"
325
                default_value   1
326
                requires        CYGPKG_NS_DNS
327
                requires        !CYGPKG_NS_DNS_BUILD
328
                compile         net/dns.c
329
                description     "
330
                    When this option is enabled, RedBoot will be built with
331
                    support for DNS, allowing use of hostnames on the command
332
                    line."
333
 
334
                cdl_option CYGPKG_REDBOOT_NETWORKING_DNS_IP {
335
                    display         "Default DNS IP"
336
                    flavor          data
337
                    active_if       !CYGSEM_REDBOOT_FLASH_CONFIG
338
                    default_value   { "0.0.0.0" }
339
                    description "
340
                      This option sets the IP of the default DNS. The IP can be
341
                      changed at runtime as well."
342
                }
343
 
344
                cdl_option CYGNUM_REDBOOT_NETWORKING_DNS_TIMEOUT {
345
                    display         "Timeout in DNS lookup"
346
                    flavor          data
347
                    default_value   10
348
                    description "
349
                      This option sets the timeout used when looking up an
350
                      address via the DNS. Default is 10 seconds."
351
                }
352
 
353
            }
354
        }
355
 
356
        cdl_option CYGPKG_REDBOOT_ANY_CONSOLE {
357
            display       "Allow RedBoot to use any I/O channel for its console."
358
            flavor        bool
359
            default_value 1
360
            description   "
361
              If this option is enabled then RedBoot will attempt to use all
362
              defined serial I/O channels for its console device.  Once input
363
              arrives at one of these channels then the console will use only
364
              that port."
365
        }
366
 
367
        cdl_option CYGSEM_REDBOOT_VARIABLE_BAUD_RATE {
368
            display       "Allow RedBoot to adjust the baud rate on the serial console."
369
            flavor        bool
370
            default_value 1
371
            active_if     CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
372
            description   "
373
              If this option is enabled then RedBoot will support commands to set
374
              and query the baud rate on the selected console."
375
        }
376
 
377
        cdl_option CYGPKG_REDBOOT_MAX_CMD_LINE {
378
            display       "Maximum command line length"
379
            flavor        data
380
            default_value 256
381
            description   "
382
              This option allows control over how long the CLI command line
383
              should be.  This space will be allocated statically
384
              rather than from RedBoot's stack."
385
        }
386
 
387
        cdl_option CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT {
388
            display       "Command processing idle timeout (ms)"
389
            flavor        data
390
            default_value 10
391
            description   "
392
              This option controls the timeout period before the
393
              command processing is considered 'idle'.  Making this
394
              number smaller will cause idle processing to take place
395
              more often, etc.  The default value of 10ms is a reasonable
396
              tradeoff between responsiveness and overhead."
397
        }
398
 
399
        cdl_option CYGNUM_REDBOOT_LOAD_ZLIB_BUFFER {
400
            display       "Size of zlib decompression buffer"
401
            active_if     CYGPKG_COMPRESS_ZLIB
402
            flavor        data
403
            default_value 64
404
            legal_values  5 to 256
405
            description   "
406
                This is the size of the buffer filled with incoming data
407
                during load before calls are made to the decompressor
408
                function. For ethernet downloads this can be made bigger
409
                (at the cost of memory), but for serial downloads on slow
410
                processors it may be necessary to reduce the size to
411
                avoid serial overruns. zlib appears to bail out if less than
412
                five bytes are available initially so this is the minimum."
413
        }
414
 
415
        cdl_option CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS {
416
            display       "Validate RAM addresses during load"
417
            flavor        bool
418
            default_value 1
419
            description   "
420
              This option controls whether or not RedBoot will make sure that
421
              memory being used by the \"load\" command is in fact in user RAM.
422
              Leaving the option enabled makes for a safer environment, but this
423
              check may not be valid on all platforms, thus the ability to
424
              disable it.  ** Disable this only with great care **"
425
        }
426
 
427
        cdl_component CYGPKG_REDBOOT_FLASH {
428
            display       "Allow RedBoot to support FLASH programming"
429
            flavor        bool
430
            default_value 1
431
            active_if     CYGHWR_IO_FLASH_DEVICE
432
            description   "
433
              If this option is enabled then RedBoot will provide commands
434
              to manage images in FLASH memory.  These images can be loaded
435
              into memory for execution or executed in place."
436
            compile -library=libextras.a flash.c
437
 
438
            cdl_option CYGBLD_REDBOOT_MIN_IMAGE_SIZE {
439
                display       "Minimum image size"
440
                flavor        data
441
                default_value 0x20000
442
                description "
443
                  This option controls the minimum length of images kept by
444
                  the FIS.  In particular, it should be large enough to hold
445
                  the RedBoot primary image itself, as well as be a natural
446
                  multiple of the FLASH erase block size."
447
            }
448
 
449
            cdl_option CYGBLD_REDBOOT_FLASH_BOOT_OFFSET {
450
                display       "Offset from start of FLASH to RedBoot boot image"
451
                flavor        data
452
                default_value CYGNUM_REDBOOT_FLASH_RESERVED_BASE
453
                requires      { CYGNUM_REDBOOT_FLASH_RESERVED_BASE <= \
454
                                CYGBLD_REDBOOT_FLASH_BOOT_OFFSET }
455
                description "
456
                  This option controls where the RedBoot boot image is located
457
                  relative to the start of FLASH."
458
            }
459
 
460
            cdl_option CYGNUM_REDBOOT_FLASH_RESERVED_BASE {
461
                display       "Size of reserved area at start of FLASH"
462
                flavor        data
463
                default_value 0
464
                description "
465
                  This option reserves an area at the start of FLASH where RedBoot
466
                  will never interfere; it is expected that this area contains
467
                  (non-RedBoot-based) POST code or some other boot monitor that
468
                  executes before RedBoot."
469
            }
470
 
471
            cdl_option CYGOPT_REDBOOT_FIS {
472
                display         "RedBoot Flash Image System support"
473
                default_value   1
474
                doc             ref/flash-image-system.html
475
                description "
476
                    This option enables the Flash Image System commands
477
                    and support within RedBoot.  If disabled, simple Flash
478
                    access commands such as \"fis write\" will still exist.
479
                    This option would be disabled for targets that need simple
480
                    FLASH manipulation, but do not have the need or space for
481
                    complete image management."
482
            }
483
 
484
            cdl_component CYGPKG_REDBOOT_FIS_CONTENTS {
485
                display       "Flash Image System default directory contents"
486
                active_if     CYGOPT_REDBOOT_FIS
487
                calculated    1
488
 
489
                cdl_option CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK {
490
                    display         "Flash block containing the Directory"
491
                    flavor          data
492
                    default_value   (-1)
493
                    description "
494
                      Which block of flash should hold the directory
495
                      information. Positive numbers are absolute block numbers.
496
                      Negative block numbers count backwards from the last block.
497
                      eg 2 means block 2, -2 means the last but one block."
498
                }
499
 
500
                cdl_option CYGOPT_REDBOOT_FIS_RESERVED_BASE {
501
                    display         "Pseudo-file to describe reserved area"
502
                    active_if       { 0 != CYGNUM_REDBOOT_FLASH_RESERVED_BASE }
503
                    default_value   1
504
                    description "
505
                        If an area of FLASH is reserved, it is informative to
506
                        have a fis entry describing it.  This option controls
507
                        creation of such an entry by default in the fis init
508
                        command."
509
                }
510
 
511
                cdl_option CYGOPT_REDBOOT_FIS_REDBOOT {
512
                    display         "File to describe RedBoot boot image"
513
                    default_value   1
514
                    description "
515
                        Normally a ROM-startup RedBoot image is first in the
516
                        FLASH, and the system boots using that image.  This
517
                        option controls creation of an entry describing it in
518
                        the fis init command.  It might be disabled if a
519
                        platform has an immutable boot image of its own, where
520
                        we use a POST-startup RedBoot instead, which performs
521
                        less board initialization."
522
                }
523
 
524
                cdl_component CYGOPT_REDBOOT_FIS_REDBOOT_POST {
525
                    display         "File to describe RedBoot POST-compatible image"
526
                    default_value   !CYGOPT_REDBOOT_FIS_REDBOOT
527
                    description "
528
                        This option controls creation of an entry describing a
529
                        POST-startup RedBoot image in the fis init command.
530
                        Not all platforms support POST-startup.  A platform
531
                        might have both for testing purposes, where the
532
                        eventual user would substitute their own POST code for
533
                        the initial ROM-startup RedBoot, and then jump to the
534
                        POST-compatible RedBoot immediately following."
535
                    cdl_option CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET {
536
                        display    "Offset of POST image from FLASH start"
537
                        flavor     booldata
538
                        default_value 0
539
                        requires   { CYGNUM_REDBOOT_FIS_REDBOOT_POST_OFFSET >= \
540
                                     CYGBLD_REDBOOT_FLASH_BOOT_OFFSET }
541
                        description "
542
                        This option specifies the offset for a POST image from
543
                        the start of FLASH.  If unset, then the fis entry
544
                        describing the POST image will be placed where
545
                        convenient."
546
                    }
547
                }
548
 
549
                cdl_option CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP {
550
                    display         "File to describe RedBoot backup image"
551
                    default_value   0
552
                    description "
553
                        This option controls creation of an entry describing a
554
                        backup RedBoot image in the fis init command.
555
                        Conventionally a RAM-startup RedBoot image is kept
556
                        under this name for use in updating the ROM-based
557
                        RedBoot that boots the board."
558
                }
559
 
560
                cdl_option CYGOPT_REDBOOT_FIS_DIRECTORY_ARM_SIB_ID {
561
                    display         "Include ARM SIB ID in FIS"
562
                    default_value   0
563
                    description "
564
                      If set, this option will cause the last 5 words of
565
                      the FIS to include the special ID needed for the
566
                      flash to be recognized as a reserved area for RedBoot
567
                      by an ARM BootRom monitor."
568
                }
569
 
570
                cdl_option CYGNUM_REDBOOT_FIS_DIRECTORY_ENTRY_SIZE {
571
                    display         "Size of FIS directory entry"
572
                    flavor              data
573
                    default_value   256
574
                    description "
575
                      The FIS directory is limited to one single flash
576
                      sector. If your flash has tiny sectors, you may wish
577
                      to reduce this value in order to get more slots in
578
                      the FIS directory."
579
                }
580
            }
581
 
582
            cdl_component CYGSEM_REDBOOT_FLASH_CONFIG {
583
                display       "Keep RedBoot configuration data in FLASH"
584
                flavor        bool
585
                default_value 1
586
                description "
587
                  When this option is enabled, RedBoot will keep configuration
588
                  data in a separate block of FLASH memory.  This data will
589
                  include such items as the node IP address or startup scripts."
590
 
591
                cdl_option CYGNUM_REDBOOT_FLASH_CONFIG_SIZE {
592
                    display       "Length of configuration data in FLASH"
593
                    flavor        data
594
                    default_value 4096
595
                    description "
596
                      This option is used to control the amount of memory and FLASH
597
                      to be used for configuration options (persistent storage)."
598
                }
599
 
600
                cdl_option CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG {
601
                    display       "Merged config data and FIS directory"
602
                    flavor        bool
603
                    active_if     CYGOPT_REDBOOT_FIS
604
                    default_value 0
605
                    description "
606
                      If this option is set, then the FIS directory and FLASH
607
                      configuration database will be stored in the same physical
608
                      FLASH block."
609
                }
610
 
611
                cdl_option CYGNUM_REDBOOT_FLASH_CONFIG_BLOCK {
612
                    display       "Which block of flash to use"
613
                    flavor         data
614
                    default_value  (-2)
615
                    description "
616
                      Which block of flash should hold the configuration
617
                      information. Positive numbers are absolute block numbers.
618
                      Negative block numbers count backwards from the last block.
619
                      eg 2 means block 2, -2 means the last but one block."
620
                }
621
 
622
                cdl_option CYGSEM_REDBOOT_FLASH_ALIASES {
623
                    display       "Support simple macros/aliases in FLASH"
624
                    flavor        bool
625
                    default_value 1
626
                    description "
627
                      This option is used to allow support for simple text-based
628
                      macros (aliases).  These aliases are kept in the FLASH
629
                      configuration data (persistent storage)."
630
                }
631
 
632
                cdl_option CYGNUM_REDBOOT_FLASH_STRING_SIZE {
633
                    display       "Length of strings in FLASH configuration data"
634
                    flavor        data
635
                    default_value 128
636
                    description "
637
                      This option is used to control the amount of memory and FLASH
638
                      to be used for string configuration options (persistent storage)."
639
                }
640
 
641
                cdl_option CYGNUM_REDBOOT_FLASH_SCRIPT_SIZE {
642
                    display       "Length of configuration script(s) in FLASH"
643
                    flavor        data
644
                    default_value 512
645
                    description "
646
                      This option is used to control the amount of memory and FLASH
647
                      to be used for configuration options (persistent storage)."
648
                }
649
 
650
                cdl_option CYGSEM_REDBOOT_FLASH_CONFIG_READONLY_FALLBACK {
651
                    display       "Fallback to read-only FLASH configuration"
652
                    flavor        bool
653
                    default_value 1
654
                    description "
655
                      This option will cause the configuration information to
656
                      revert to the readonly information stored in the FLASH.
657
                      The option only takes effect after
658
                        1) the config_ok flag has been set to be true,
659
                           indicating that at one time the copy in RAM was valid;
660
                      and
661
                        2) the information in RAM has been verified to be invalid"
662
 
663
                }
664
            }
665
 
666
            cdl_option CYGSEM_REDBOOT_FLASH_LOCK_SPECIAL {
667
                display       "Keep all RedBoot FLASH data blocks locked."
668
                flavor        bool
669
                default_value 1
670
                active_if     { CYGHWR_IO_FLASH_BLOCK_LOCKING != 0 }
671
                description "
672
                  When this option is enabled, RedBoot will keep configuration
673
                  data and the FIS directory blocks implicitly locked.  While
674
                  this is somewhat safer, it does add overhead during updates."
675
            }
676
 
677
            cdl_option CYGSEM_REDBOOT_FIS_CRC_CHECK {
678
                display       "Use CRC checksums on FIS images."
679
                flavor        bool
680
                default_value 1
681
                description "
682
                  When this option is enabled, RedBoot will use CRC checksums
683
                  when reading and writing flash images."
684
            }
685
 
686
            cdl_interface CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED {
687
                display       "ARM FLASH drivers support SIB flash block structure"
688
                active_if     CYGPKG_HAL_ARM
689
                description   "This interface is implemented by a flash driver
690
                               to indicate that it supports the ARM SIB flash
691
                               block structure"
692
            }
693
 
694
            cdl_option CYGHWR_REDBOOT_ARM_FLASH_SIB {
695
                display       "Use ARM SIB flash block structure"
696
                flavor        bool
697
                active_if     CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED
698
                default_value 1
699
                description "
700
                  This option is used to interpret ARM Flash System information
701
                  blocks."
702
            }
703
        }
704
 
705
        cdl_component CYGPKG_REDBOOT_DISK {
706
            display       "Allow RedBoot to support disks"
707
            flavor        bool
708
            default_value 1
709
            active_if     { CYGINT_HAL_PLF_IF_IDE != 0 }
710
            description   "
711
              If this option is enabled then RedBoot will provide commands
712
              to load disk files."
713
            compile -library=libextras.a fs/disk.c
714
 
715
            cdl_option CYGNUM_REDBOOT_MAX_DISKS {
716
                display       "Maximum number of supported disks"
717
                flavor        data
718
                default_value 4
719
                description "
720
                  This option controls the number of disks supported by RedBoot."
721
            }
722
 
723
            cdl_option CYGNUM_REDBOOT_MAX_PARTITIONS {
724
                display       "Maximum number of partitions per disk"
725
                flavor        data
726
                default_value 8
727
                description "
728
                  This option controls the maximum number of supported partitions per disk."
729
            }
730
 
731
            cdl_component CYGSEM_REDBOOT_DISK_IDE {
732
                display       "Support IDE disks."
733
                flavor        bool
734
                default_value 1
735
                description "
736
                  When this option is enabled, RedBoot will support IDE disks."
737
                compile -library=libextras.a fs/ide.c
738
            }
739
 
740
            cdl_component CYGSEM_REDBOOT_DISK_EXT2FS {
741
                display       "Support Linux second extended filesystems."
742
                flavor        bool
743
                default_value 1
744
                description "
745
                  When this option is enabled, RedBoot will support IDE disks."
746
                compile -library=libextras.a fs/e2fs.c
747
            }
748
 
749
            cdl_component CYGSEM_REDBOOT_DISK_ISO9660 {
750
                display       "Support ISO9660 filesystems."
751
                flavor        bool
752
                calculated    0
753
                description "
754
                  When this option is enabled, RedBoot will support ISO9660 filesystems."
755
                compile -library=libextras.a fs/iso9660fs.c
756
            }
757
        }
758
 
759
        cdl_component CYGPKG_REDBOOT_BOOT_SCRIPT {
760
            display         "Boot scripting"
761
            doc             ref/persistent-state-flash.html
762
            flavor          none
763
            no_define
764
            description     "
765
                    This contains options related to RedBoot's boot script
766
                    functionality."
767
 
768
            cdl_option CYGFUN_REDBOOT_BOOT_SCRIPT {
769
                    display         "Boot scripting enabled"
770
                    flavor          bool
771
                    active_if       { CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT || \
772
                                      CYGSEM_REDBOOT_FLASH_CONFIG }
773
                    calculated      1
774
                    description "
775
                      This option controls whether RedBoot boot script
776
                      functionality is enabled."
777
            }
778
 
779
            cdl_option CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT {
780
                    display         "Use default RedBoot boot script"
781
                    flavor          booldata
782
                    default_value   0
783
                    description "
784
                      If enabled, this option will tell RedBoot to use the value of
785
                      this option as a default boot script."
786
            }
787
 
788
            cdl_option CYGNUM_REDBOOT_BOOT_SCRIPT_TIMEOUT_RESOLUTION {
789
                display       "Resolution (in ms) for script timeout value."
790
                flavor        data
791
                default_value 1000
792
                description "
793
                  This option controls the resolution of the script timeout.
794
                  The value is specified in milliseconds (ms), thus to have the
795
                  script timeout be defined in terms of tenths of seconds, use 100."
796
            }
797
 
798
            cdl_option CYGNUM_REDBOOT_BOOT_SCRIPT_DEFAULT_TIMEOUT {
799
                display       "Script default timeout value"
800
                flavor        data
801
                default_value 10
802
                description "
803
                  This option is used to set the default timeout for startup
804
                  scripts, when they are enabled."
805
            }
806
        }
807
 
808
        cdl_option CYGPRI_REDBOOT_ROM_MONITOR {
809
            display      "Behave like a ROM monitor"
810
            active_if    { CYG_HAL_STARTUP == "ROM" || CYG_HAL_STARTUP == "ROMRAM" }
811
            requires     CYGSEM_HAL_ROM_MONITOR
812
            calculated   1
813
            no_define
814
            description  "
815
              Enabling this option will allow RedBoot to provide ROM monitor-style
816
              services to programs which it executes."
817
        }
818
 
819
        cdl_component CYGSEM_REDBOOT_BSP_SYSCALLS {
820
            display       "Allow RedBoot to handle GNUPro application 'syscalls'."
821
            flavor        bool
822
            default_value 0
823
            description   "
824
              If this option is enabled then RedBoot will install a syscall handler
825
              to support debugging of applications based on GNUPro newlib/bsp."
826
 
827
            cdl_option CYGSEM_REDBOOT_BSP_SYSCALLS_GPROF {
828
                display "Support additional syscalls for 'gprof' profiling"
829
                flavor  bool
830
                default_value 1
831
                active_if       { 0 < CYGINT_REDBOOT_BSP_SYSCALLS_GPROF_SUPPORT }
832
                description "
833
                    Support additional syscalls to support a periodic callback
834
                    function for histogram-style profiling, and an enquire/set
835
                    of the tick rate.
836
                    The application must use the GNUPro newlib facilities
837
                    to set this up."
838
            }
839
 
840
            cdl_interface CYGINT_REDBOOT_BSP_SYSCALLS_GPROF_SUPPORT {
841
                display "Does the HAL support 'gprof' profiling?"
842
                no_define
843
            }
844
        }
845
 
846
        cdl_component CYGOPT_REDBOOT_FIS_ZLIB_COMMON_BUFFER {
847
            display             "Use a common buffer for Zlib and FIS"
848
            flavor              bool
849
            active_if           { CYGBLD_BUILD_REDBOOT_WITH_ZLIB && \
850
                              CYGOPT_REDBOOT_FIS }
851
            default_value       0
852
            description         "
853
                Use a common memory buffer for both the zlib workspace
854
                and FIS directory operations. This can save a substantial
855
                amount of RAM, especially when flash sectors are large."
856
 
857
            cdl_option CYGNUM_REDBOOT_FIS_ZLIB_COMMON_BUFFER_SIZE {
858
                display             "Size of Zlib/FIS common buffer"
859
                flavor              data
860
                default_value   0xc000
861
                legal_values    0x4000 to 0x80000000
862
                description     "
863
                    Size of common buffer to allocate. Must be at least the
864
                    size of one flash sector."
865
            }
866
        }
867
    }
868
}
869
 
870
# EOF redboot.cdl

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.