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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [sgml/] [user-guide/] [config-tool.sgml] - Blame information for rev 773

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

Line No. Rev Author Line
1 28 unneback
2
 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
30
31
 
32
33
The eCos Configuration Tool
34
 
35
36
 
37
38
Getting Started
39
 
40
41
 
42
43
Introduction
44
 
45
 The eCos Configuration Tool is used
46
          to tailor eCos at source level, prior to compilation or
47
          assembly, and provides a configuration file and a set of
48
          files used to build user applications. The sources and other
49
          files used for building a configuration are provided in a
50
          component repository, which is loaded
51
          when the eCos Configuration Tool
52
          is invoked. The component repository includes a set of files
53
          defining the structure of relationships between the
54
          Configuration Tool and other components, and is written in a
55
          Component Definition Language (CDL).
56
          For a description of the concepts underlying component
57
          configuration, see .
58
59
 
60
61
 
62
63
Invoking the <productname>eCos</productname> <application>Configuration Tool</application>
64
 
65
66
On Linux
67
 
68
Add the eCos Configuration Tool install directory to your PATH, for example:
69
 
70
71
export PATH=/opt/ecos/ecos&Version;/bin:$PATH
72
73
 
74
You may run configtool with zero, one or two arguments. You can specify the eCos repository
75
 location, and/or an eCos save file (extension .ecc) on the command line. The ordering of these
76
two arguments is not significant. For example:
77
 
78
79
configtool /opt/ecos/ecos&Version;/packages myfile.ecc
80
81
 
82
The Configuration Tool will be displayed (see ).
83
84
 
85
86
On Windows
87
 
88
There are two ways in which to invoke the eCos Configuration Tool:
89
90
91
              from the desktop explorer or program set up at installation
92
              time (by default
93
              Start
94
              ->
95
              Programs
96
              ->
97
              eCos
98
              ->
99
              Configuration Tool
100
              ).
101
102
103
type (at a command prompt or in the
104
            Start
105
            menu’s
106
            Run
107
            item): <foldername>\ConfigTool.exe where <foldername> is
108
            the full path of the directory in which you installed the eCos
109
            Configuration Tool.
110
116
 
117
118
119
The
120
            Configuration Tool
121
            will be displayed (see ).
122
123
124
 
125
126
You may run configtool with zero, one or two arguments. You can specify the eCos repository
127
location, and/or an eCos save file (extension .ecc) on the command line. The ordering of these
128
two arguments is not significant. For example:
129
 
130
131
configtool "c:\Program Files\eCos\packages" myfile.ecc
132
133
 
134
139
 
140
If you invoke the configuration tool from the command line with
141
--help, you will see this output:
142
 
143
144
Usage: eCos Configuration Tool [-h] [-e] [-v] [-c] [input file 1] [input file 2]
145
  -h  --help            displays help on the command line parameters
146
  -e  --edit-only       edit save file only
147
  -v  --version         print version
148
  -c  --compile-help    compile online help only
149
150
 
151
This summarizes valid parameters and switches. Switches are shown with
152
both short form and long form.
153
 
154
--help shows valid options and parameters, as above.
155
 
156
--edit-only runs the Configuration Tool in a mode that
157
suppresses creation of a build tree, in case you only want to create and edit save files.
158
 
159
--version shows version and build date information, and exits.
160
 
161
--compile-help compiles help contents files from the HTML documentation
162
files that the tool finds in the eCos repository, and exits.
163
 
164
165
<application>Configuration Tool</application>
166
167
168
169
170
 
171
172
 
173
 
174
175
The Component Repository
176
When you invoke the eCos Configuration Tool, it accesses the Component
177
          Repository, a read-only location of configuration
178
          information. For an explanation of “Component
179
          Repository” see .
180
The eCos Configuration Tool will look
181
          for a component repository using (in descending order of preference):
182
183
184
A location specified on the command line
185
186
187
188
The component repository most recently used by the
189
current user
190
191
192
An eCos distribution under /opt/ecos (under
193
Linux) or a default location set by the installation procedure (under
194
Windows)
195
196
197
User input
198
199
200
The final case above will normally only occur if the previous
201
          repository has been moved or (under Windows) installation information stored in
202
          the Windows registry has been modified; it will result in a dialog box
203
being displayed that allows you to specify the repository location:
204
205
Repository relocation dialog box
206
207
208
Note that in order to use the eCos Configuration Tool you are obliged to provide a
209
          valid repository location. 
210
In the rare event that you subsequently wish to change
211
          the component location, select
212
          Build->Repository
213
          and the above dialog box will then be displayed.
214
You can check the location of the current repository, the current save file
215
path, and the current hardware template and default package,
216
by selecting Help->Repository Information....
217
A summary will be displayed.
218
219
 
220
221
 
222
 
223
224
<productname>eCos</productname> <application>Configuration Tool</application> Documents
225
226
Configuration Save File
227
eCos configuration settings and other information
228
            (such as disabled conflicts) that are set using the
229
            eCos Configuration Tool are saved to
230
            a file between sessions. By default, when the
231
            eCos Configuration Tool is first
232
            invoked, it reads and displays information from the
233
            Component Registry and displays the information in an
234
            untitled blank document. You can perform the following
235
            operations on a document:
236
237
Save the currently active document
238
Use the “File->Save” menu
239
            item or click the Save Document icon on the
240
            toolbar; if the current document is unnamed, you will be prompted
241
            to supply a name for the configuration save file.
242
243
Save As dialog box
244
245
246
247
248
Open an existing document
249
Select File->Open,
250
            or click the Open Document icon on the toolbar.
251
            You will be prompted to supply a name for the configuration save
252
            file. 
253
254
Open dialog box
255
256
257
258
259
Open a document you have used recently
260
Click its name at the bottom of the
261
            File menu. 
262
Documents may also be opened by:
263
264
265
double-clicking a Configuration Save File in the desktop
266
explorer (Windows only);
267
268
269
invoking the eCos
270
Configuration Tool
271
with the name of a Configuration File as command-line argument,
272
or by creating a shortcut to the eCos Configuration Tool with such an argument
273
(under Windows or a suitable Linux desktop environment).
274
275
276
277
278
Create a new blank document based on the Component</code></pre></td>
      </tr>
      <tr valign="middle">
         <td>279</td>
         <td></td>
         <td></td>
         <td class="code"><pre><code>              Registry
280
Select File->New,
281
or click the New Document icon on the toolbar.
282
283
284
Save to a different file name
285
Select File->Save
286
                As. You will be prompted to supply a new
287
              name for the configuration save file.
288
289
290
291
Build and Install Trees
292
The location of the build and install trees are
293
            derived from the eCos save file name as illustrated in the
294
            following example:
295
Save file name = “c:\My
296
            eCos\config1.ecc”
297
Install tree folder = “c:\My
298
            eCos\config1_install”
299
Build tree folder = “c:\My
300
            eCos\config1_build”
301
These names are automatically generated from the name
302
            of the save file.
303
See also .
304
305
306
307
 
308
309
310
 
311
312
Getting Help
313
 
314
The eCos Configuration Tool contains
315
several methods for accessing online help.
316
 
317
318
 
319
320
 
321
Context-sensitive Help for Dialogs
322
Most dialogs displayed by the eCos Configuration Tool are supplied
323
with context-sensitive help. You can then get help relating
324
to any control within the current dialog box by
325
 
326
327
328
Right-clicking the control (or pressing
329
              F1
330
              )
331
A “What’s This?” popup menu will
332
          be displayed. Click the menu to display a brief description of the
333
          function of the selected control.
334
335
336
Clicking the question mark icon in the dialog
337
            caption bar (Windows) or the question mark button on the dialog (Linux).
338
A question mark cursor will be displayed. Click on
339
              any control to display a brief description of its
340
              function.
341
342
343
Some dialogs may have a Help
344
          button. You can press this to display a more general
345
          description of the function of the dialog box as a whole.
346
          This help will be in HTML form; for more information, see
347
          below.
348
349
 
350
351
 
352
353
Context-sensitive Help for Other Windows
354
In the Help menu, click
355
          Help On...
356
360
and then click on a window (or click on the arrow/question mark button
361
on the toolbar, then click on a window). A small popup window page describing the
362
window will be displayed. The same thing can be achieved by right-clicking
363
on a window and clicking on What's This?.
364
368
369
370
371
Context-sensitive Help for Configuration Items
372
In the configuration window, right-click on a configuration
373
item (or use Shift+F10). A context
374
menu will be displayed; select Visit Documentation
375
to display the page in the eCos documentation that most closely
376
corresponds to the selected item.
377
378
 
379
380
Methods of Displaying HTML Help
381
 
382
383
 
384
385
386
Using the internal help system. This will show an internal viewer similar to Microsoft HTML Help, with a contents
387
hierarchy on the left and HTML pages on the right; see . The index is regenerated for each repository. If the documentation in
388
the repository has changed but the contents does not reflect this, please use the Tools Regenerate Help Index menu
389
item.
390
391
392
 
393
394
395
Using the default HTML browser. On Unix, you will need a .mailcap entry similar to this:
396
397
 
398
399
400
text/html; netscape -no-about-splash %s
401
402
403
404
 
405
406
407
Using the specified browser.
408
409
410
 
411
412
 
413
 
414
415
HTML Help viewer
416
417
418
If you wish, you may choose to have HTML Help displayed
419
in a browser of your choice. To do this, select View->Settings and
420
use the controls in the View Documentation group to select the replacement browser.
421
Note that the Navigation facilities of the built-in HTML
422
Help system will be unavailable if you choose this method
423
of displaying help.
424
425
426
 
427
428
429
 
430
431
Customization
432
The following visual aspects of the eCos Configuration Tool can be changed to suit
433
        individual preferences. These aspects are saved on a per-user
434
        basis, so that when the eCos Configuration Tool is next invoked by the same
435
        user, the appearance will be as set in the previous
436
        session.
437
438
Window Placement
439
The relative sizes of all windows in the eCos Configuration Tool may be adjusted by dragging
440
          the splitter bars that separate the windows. The chosen
441
          sizes will be used the next time the eCos Configuration Tool is invoked by the current
442
          user. 
443
All windows except the Configuration
444
            Window may be shown or hidden by using the
445
          commands under the View menu (for
446
          example, View->Output) or the
447
          corresponding keyboard accelerators
448
          (Alt+1 to
449
          Alt+4).
450
454
455
Your chosen set of windows (and their relative sizes) will
456
be preserved between invocations of the eCos Configuration
457
Tool.
458
459
468
469
Settings
470
To change other visual aspects, select
471
          View->Settings
472
          and then select the Display and
473
          View tabs depending on the settings
474
          you wish to alter..
475
          The options are as follows:
476
477
 
478
 
479
480
Settings: Display tab
481
 
482
483
Settings dialog, Display tab
484
485
486
 
487
488
Labels
489
 
490
In the configuration window, you can choose to have
491
            either descriptive names (the
492
            default) or macro names displayed as
493
            tree item labels. Descriptive names are generally more
494
            comprehensible, but macro names are used in some contexts
495
            such as conflict resolution and may be directly related to
496
            the source code of the configuration. Note that it is
497
            possible to search for an item in the configuration view
498
            by selecting
499
            Find->Edit
500
            (see ). Both
501
            descriptive names and macro names can be searched.
502
503
 
504
505
Integer Items
506
You can choose to have integer items in the
507
            Configuration Window displayed in decimal or hexadecimal
508
            format.
509
510
 
511
512
Font
513
 
514
515
Change the font for a particular window by selecting the window name using the drop-down list,
516
then clicking on Change Font to select a font for that
517
window. The changes will be applied when the press OK to dismiss the Settings dialog.
518
If you never make font changes, then the windows will take
519
the default setting determined by your current Windows or Unix environment.
520
521
522
 
523
524
Miscellaneous
525
 
526
527
If the Splash Screen checkbox is checked, a splash
528
window will appear as the application is loading. Uncheck this to eliminate the splash screen.
529
530
 
531
532
533
 
534
535
Settings: Viewers tab
536
 
537
538
Settings dialog, Viewers tab
539
540
541
 
542
543
View header files
544
 
545
You can change the viewer used to display header files.
546
547
 
548
549
View documentation
550
 
551
You can change the viewer used to display HTML files.
552
See .
553
554
 
555
 
556
 
557
558
 
559
560
 
561
562
563
 
564
565
566
 
567
568
Screen Layout
569
The following windows are available within the
570
      eCos  Configuration
571
        Tool:
572
    
573
574
575
                Configuration Window
576
577
578
                Properties Window
579
580
581
                Short Description
582
583
584
                Conflicts
585
586
587
                Output
588
589
590
 
591
The layout of the windows may be adjusted to suit your
592
        preferences: see .
593
 
594
595
Configuration Window
596
This is the principal window used to configure eCos. It
597
          takes the form of a tree-based representation of the
598
          configuration items within the currently loaded eCos
599
          packages.
600
In the case of items whose values may be changed,
601
          controls are available to set the item values. These either
602
          take the form of check boxes or radio buttons within the
603
          tree itself or cells to the right of the thin vertical
604
          splitter bar. Controls in the tree may be used in the usual
605
          way; cells, however, must first be activated.
606
To activate a cell, simply click on it: it will assume a sunken
607
appearance and data can then be edited in the cell. To terminate
608
in-cell editing, click elsewhere in the configuration window or
609
press ENTER. To discard the partial results
610
of in-cell editing and revert to the previous value, press ESCAPE.
611
615
616
617
Cells come in three varieties, according to the type of
618
          data they accept:
619
620
Cell types
621
622
623
624
Cell Type
625
Data Accepted
626
627
628
629
630
Integer
631
Decimal or hexadecimal values
632
633
634
Floating Point
635
Floating point values
636
637
638
String
639
Any
640
641
642
643
654
In the case of string cells, you can double-click the cell
655
to display a dialog box containing a larger region in which to edit
656
the string value. This is useful in the case of long strings, or
657
those spanning multiple lines.
658
659
Disabled items
660
Some items will appear disabled. In this case the item
661
            label and any associated controls and cells will be
662
            grayed. It is not be possible to change the values of
663
            disabled items.
664
665
Right-Clicking
666
You can right-click on an item in the configuration
667
              window item to display a pop-up menu which (depending on
668
              the type of the item selected) allows you to:
669
670
671
 Properties
672
                  information relating to the currently selected item
673
                  is displayed. The information is equivalent to that
674
                  displayed in the Properties
675
                  Window.
676
677
678
 Restore Defaults -
679
                  the default value of the currently selected item is
680
                  restored.
681
682
683
Visit Documentation
684
                  - causes the HTML page most closely relating to the
685
                  currently selected item to be displayed. This has
686
                  the same effect as double-clicking the URL property
687
                  in the Properties Window.
688
689
690
 View Header File
691
                  – this causes the file containing the items to
692
                  be displayed. This is equivalent to double-clicking
693
                  on the File property in the Properties Window. The
694
                  viewer used for this purpose may be changed using
695
                  the View->Settings menu item
696
                  (see ).
697
                  Note that this operation is only possible when the
698
                  current configuration is saved, in order to avoid
699
                  the possibility of changing the source
700
                  repository.
701
702
703
Unload Package -
704
                  this is equivalent to using the
705
                  Build->Packages menu item to
706
                  select and unload the package in
707
                  question.
708
709
710
711
712
713
Conflicts Window
714
This window exists to display any configuration item
715
            conflicts. Conflicts are the result of failures to meet
716
            the requirements between configuration items expressed in
717
            the CDL. See  .
719
The window comprises three columns:
720
721
722
                Item
723
This is the macro name of the first item involved
724
                in the conflict.
725
726
727
728
                Conflict
729
This is a description of the conflict type. The currently
730
                supported types are “unresolved”, “illegal
731
                value”, “evaluation exception”, “goal
732
                unsatisfied” and “bad data”.
733
734
735
736
                Property
737
This contains a description of the configuration
738
                item’s property that caused the conflict.
739
Within the conflicts window you can right-click on
740
                any item to display a context menu which allows you to
741
                choose from one of the following options:
742
743
744
 
745
To locate the item involved in the
746
conflict, double-click in the first or third column, or
747
right-click over the item and choose Locate
748
from the popup menu.
749
750
 
751
You can use the Tools->Resolve Conflicts menu
752
item, or right-click over the item and select Resolve from the popup menu,
753
to resolve conflicts — .
754
755
Output Window
756
This window displays any output generated by
757
              execution of external tools and any error messages that
758
              are not suitable for display in other forms (for
759
              example, as message boxes).
760
Within the output window you can right-click to display a
761
context menu which allows you to:
762
763
764
Save the contents of the window to a
765
                  file
766
767
768
Clear the contents of the
769
                  window
770
771
772
773
774
Properties Window
775
This window displays the CDL properties of the item
776
              currently selected in the configuration window. The same
777
              information may be displayed by right-clicking the item
778
              and selecting “properties”.
779
              
780
Two properties may be double-clicked as
781
            follows:
782
783
784
URL
785
                  double-clicking on a URL property causes the
786
                  referenced HTML page to be displayed. This has the
787
                  same effect as right-clicking on the item and
788
                  choosing “Visit
789
                  Documentation”.
790
791
792
File
793
                  double-clicking on a File property in a saved
794
                  configuration causes the File to be displayed. The
795
                  viewer used for this purpose may be changed using
796
                  the View->Settings menu
797
                  item. Note that this operation is only possible when
798
                  the current configuration is saved, in order to
799
                  avoid the possibility of changing the source
800
                  repository.
801
802
803
804
805
Short Description Window
806
This window displays a short description of the item
807
              currently selected in the configuration window. More
808
              extensive documentation may be available by
809
              right-clicking on the item and choosing “Visit
810
              Documentation”.
811
812
813
814
815
 
816
817
818
 
819
820
Updating the Configuration
821
822
Adding and Removing Packages
823
To add or remove packages from the configuration, select
824
          Build->Packages.
825
            The following dialog box will be displayed:
826
827
Packages dialog box
828
829
830
The left-hand list shows those packages that are available to
831
          be loaded. The right-hand list shows those that are
832
          currently loaded. In order to transfer packages from one
833
          list to another (that is, to load or unload packages)
834
          double-click the selection or click the
835
          Add or Remove
836
          buttons.
837
 
838
The version drop-down list displays the versions of the
839
          selected packages. When loading packages, this control may
840
          be used to load versions other than the most recent
841
          (current). Note that if more than one package is selected,
842
          the version drop-down list will display only the versions
843
          common to all the selected packages.
844
 
845
The window under the version displays a brief
846
          description of the selected package. If more than one
847
          package is selected, this window will be blank.
848
 
849
850
        Under the description window there is a Keywords
851
control into which you can type a string to be matched against
852
package names, macro names and descriptions. The lists are updated
853
a second or so after typing has stopped.
854
If you type several separate words,
855
all of these words must be associated with a given package
856
for that package to be displayed. If you select
857
the Match exactly checkbox, then the string
858
is taken to be a complete fragment and matched against the beginning
859
of a name, macro name or descriptions. All matches are done
860
case-insensitively.
861
 
862
863
If you check Omit hardware packages, only
864
non-hardware packages will be shown.
865
866
 
867
868
869
Platform Selection
870
To add, modify or remove entries in the list of
871
          platforms used for running tests, select
872
          Tools->Platforms. The following
873
          dialog will be displayed:
874
875
Platforms dialog box
876
877
878
You may add, modify or remove platform entries as you
879
          wish, but in order to run tests, a platform must be defined
880
          to correspond to the currently loaded hardware template. The
881
          information associated with each platform name is used to
882
          run tests.
883
To modify a platform, click the
884
          Modify button with the appropriate
885
          platform selected, or double-click on an entry in the list.
886
          A dialog will be displayed that allows you to change the
887
          command prefix, platform type and arguments for
888
          GDB. 
889
890
Platform Modify dialog box
891
892
893
To add a new platform, click the
894
          Add button. A similar dialog will be
895
          displayed that allows you to define a new platform. To
896
          remove a platform, click the Delete
897
          button or press the DEL key with the
898
          appropriate platform selected.
899
 
900
The command prefix is used when running tests in order
901
          to determine the names of the executables (such as gdb) to
902
          be used. For example, if the gdb executable name is
903
          “arm-elf-gdb.exe” the prefix should be set to
904
          “arm-elf”.
905
The platform type indicates the capabilities of the platform
906
- whether it is hardware or a simulator, and whether breakpoints
907
are supported.
908
The arguments for the GDB field allow
909
additional arguments to be passed to gdb when it is used to run
910
a test.  This is typically used in the case of simulators linked
911
to gdb in order to define memory layout.
912
913
914
Using Templates
915
To load a configuration based on a template, select
916
          Build->Templates.
917
The following dialog box will be displayed:
918
919
Templates dialog box
920
921
922
Change the hardware template, the packages template, or
923
          both. To select a hardware template, choose from the first
924
          drop-list. To choose a packages template, choose from the
925
          second. Brief descriptions of each kind of template are
926
          provided in the corresponding edit boxes.
927
928
Resolving conflicts
929
During the process of configuring eCos it is possible
930
            that conflicts will be created. For more details of the
931
            meaning of conflicts, see .
932
The Conflicts Window displays all conflicts in the
933
            current configuration. Additionally, a window in the
934
            status bar displays a count of the conflicts. Because the
935
            resolution of conflicts can be time-consuming, a mechanism
936
            exists whereby conflicts can be resolved
937
            automatically.
938
You can choose to have a conflicts resolution dialog
939
            box displayed by means of the View->Settings...
940
              menu item, on the Conflict Resolution
941
tab of the dialog.
942
943
Options
944
945
946
You can choose to have conflicts checked under the
947
            following circumstances:
948
949
950
After any item is changed (in other words,
951
                as soon as the conflict is created)
952
953
954
Before saving the configuration (including
955
                building)
956
957
958
Never
959
960
961
The method you chose depends on how much you need
962
                your configuration to be free of conflicts. You may
963
                want to avoid having to clean up all the conflicts at
964
                once, or you may want to keep the configuration
965
                consistent at all times. If you have major changes to
966
                implement, which may resolve the conflicts, then you
967
                might want to wait until after you have completed
968
                these changes before you check for conflicts.
969
970
971
If you choose to check conflicts after any item
972
              is changed, only newly arising conflicts are displayed.
973
              If you choose to check for conflicts before saving the
974
              configuration, the complete set is
975
              displayed.
976
977
978
979
Automatic resolution
980
If you check the “Automatically suggest
981
            fixes” check box, a conflicts resolution dialog box
982
            will be displayed whenever new conflicts are created. The
983
            same dialog box may be displayed at any stage by means of
984
            the Tools->Resolve Conflicts
985
            menu item.
986
            
987
The conflicts resolution dialog box contains two major windows. 
988
989
Resolve conflicts window
990
991
992
The upper contains the set of conflicts to be addressed; the
993
format of the data being as that of the Conflicts Window. The lower
994
window contains a set of proposed resolutions – each entry
995
is a suggested configuration item value change that as a whole may
996
be expected to lead to the currently selected conflict being resolved. 
997
Note that there is no guarantee:
998
999
1000
that automatic resolutions will be determinable for every
1001
conflict.
1002
1003
1004
        that the resolutions for separate conflicts will be independent.
1005
In other words, the resolution of one conflict may serve to prevent
1006
the resolution of another.
1007
1008
1009
        that the resolution conflicts will not create further
1010
conflicts.
1011
1012
1013
The above warnings are, however, conservative. In practice
1014
(so long as the number and extent of conflicts are limited) automatic
1015
conflict resolution may be used to good effect to correct problems
1016
without undue amounts of programmer intervention.
1017
In order to select the conflicts to be applied, select or
1018
clear the check boxes against the resolutions for each proposed
1019
resolution. By default all resolutions are selected; you can return
1020
to the default state (in other words, cause all check boxes for
1021
each conflict to again become checked) by pressing the “Reset” button.
1022
Note that multiple selection may be used in the resolutions control
1023
to allow ranges of check boxes to be toggled in one gesture.
1024
When you are happy to apply the selected resolutions for each
1025
conflict displayed, click Apply; this will
1026
apply the resolutions. Alternatively you may cancel from the dialog
1027
box without any resolutions being applied.
1028
1029
1030
1031
 
1032
1033
1034
 
1035
1036
Searching
1037
Select Edit --> Find.
1038
You will be presented with a Find dialog box:
1039
1040
Find dialog box
1041
1042
1043
Using this dialog box you can search for an exact text string
1044
in any one of three ways, as specified by your selection in the “Search
1045
in” drop-list:
1046
1047
1048
Macro names - the search is for a text match within
1049
configuration item macro names
1050
1051
1052
                        Item names - the search is for a text match within
1053
configuration item descriptive names
1054
1055
1056
                        Short descriptions - the search is for a text match
1057
within configuration item short descriptions
1058
1059
1060
Note that to invoke Find you can also
1061
click the Find icon on the toolbar. 
1062
1063
 
1064
1065
1066
 
1067
1068
Building
1069
When you have configured eCos, you may build the configuration.
1070
On the Build menu, click:
1071
1072
1073
1074
Library
1075
 (or click the Build Library icon on the toolbar) – this
1076
causes the eCos configuration to be built. The result of a successful
1077
build will be (among other things) a library against which user
1078
code can be linked
1079
1080
1081
1082
Tests
1083
 – this causes the eCos configuration to be built, and
1084
additionally builds the relevant test cases linked against the eCos library
1085
1086
1087
1088
Clean
1089
 – this removes all intermediate files, thus causing a
1090
subsequent build/library or build/tests operation
1091
to cause recompilation of all relevant files.
1092
1093
1094
1095
Stop
1096
 – this causes a currently executing build (any of the
1097
above steps) to be interrupted
1098
1099
1100
Build options may be displayed by using the Build->Options menu
1101
item. This displays a dialog box containing a drop-list control
1102
and two windows. The drop-list control allows you to select the
1103
type of build option to be displayed (for example “LDFLAGS” are
1104
the options applied at link-time. The left-hand window is a tree
1105
view of the packages loaded in the current configuration. The right-hand
1106
window is a list of the build options that will be used for the
1107
currently selected package.
1108
Note that this dialog box currently affords only read-only
1109
access to the build options. In order to change build options you
1110
must edit the relevant string configuration item.
1111
A single level of inheritance is supported: each package’s
1112
build options are combined with the global options (these are to
1113
be found in the “Global build options” folder
1114
in the configuration view).
1115
1116
1117
Selecting Build Tools
1118
Normally the installation process will supply the information
1119
required for the eCosConfiguration Tool to
1120
locate the build tools (compiler, linker, etc.) necessary
1121
to perform a build. However if this information is not registered,
1122
or it is necessary to specify the location manually (for example,
1123
when a new toolchain installation has been made), select Tools->Paths->Build
1124
Tools. The following dialog box will be displayed:
1125
1126
Build tools
1127
1128
1129
This dialog box allows you to locate the folder containing
1130
the build tools. 
1131
1132
1133
Selecting User Tools
1134
Normally the installation process will supply the information
1135
required for the eCosConfiguration Tool to
1136
locate the user tools (cat, ls, etc.) necessary to perform
1137
a build. However if this information is not registered, or it is
1138
necessary to specify the location manually (for example, when a
1139
new toolchain installation has been made), select Tools->Paths->User
1140
Tools. The following dialog box will be displayed:
1141
1142
User tools
1143
1144
1145
1146
1147
 
1148
1149
1150
 
1151
1152
Execution
1153
Test executables that have been linked using the Build/Tests
1154
operation against the current configuration can be executed by selecting Tools->Run
1155
Tests.
1156
When tests are run, the Configuration Tool looks
1157
for a platform name corresponding to the currently loaded hardware template.
1158
If no such platform is found, a dialog will be displayed for you
1159
to define one; this dialog is similar to that displayed by the Add function
1160
in the Tools->Platforms dialog, but
1161
in this case the platform name cannot be changed.
1162
When a test run is invoked, a property sheet is displayed,
1163
comprising three tabs: Executables, Output and Summary.
1164
Note that the property sheet is resizable.
1165
Three buttons appear on the property sheet itself: Run/Stop, Close and Properties.
1166
The Run button is used to initiate a
1167
test run. Those tests selected on the Executables tab
1168
are run, and the output recorded on the Output and Summary tabs.
1169
During the course of a run, the Run button
1170
changes to “Stop”. The button may be used to interrupt
1171
a test run at any point.
1172
1173
Properties
1174
The Properties button is used to change
1175
the connectivity properties for the test run.
1176
1177
Properties dialog box
1178
1179
1180
1181
Download Timeout
1182
            This group of controls serves to set the maximum time that
1183
            is allowed for downloading a test to the target board. If
1184
            the time is exceeded, the test will be deemed to have
1185
            failed for reason of “Download Timeout” and
1186
            the execution of that particular test will be abandoned.
1187
            This option only applies to tests run on hardware, not to
1188
            those executed in a simulator. Times are in units of
1189
            elapsed seconds.
1190
Three options are available using the drop-down
1191
            list:
1192
1193
1194
Calculated from file size - an estimate of the maximum
1195
time required for download is made using the (stripped) executable
1196
size and the currently used baud rate
1197
1198
1199
                        Specified - a user-specified value may be entered in
1200
the adjacent edit box
1201
1202
1203
                        None - no maximum download time is to be applied.
1204
1205
1206
1207
1208
Run time Timeout
1209
This group of controls serves to set the maximum time
1210
            that is allowed for executing a test on the target board
1211
            or in a simulator. If the time is exceeded, the test will
1212
            be deemed to have failed for reason of
1213
            “Timeout” and the execution of that particular
1214
            test will be abandoned. In the case of hardware, the time
1215
            is measured in elapsed seconds: in the case of a simulator
1216
            it is in CPU seconds.
1217
Three options are available using the drop-down
1218
          list:
1219
1220
1221
None - no maximum download time is to be
1222
                applied.
1223
1224
1225
Specified - a user-specified value may be
1226
                entered in the adjacent edit box
1227
1228
1229
Default - a default value of 30 seconds is
1230
                used
1231
1232
1233
1234
1235
Connection
1236
The Connection controls may be used
1237
            to specify how the target board is to be accessed.
1238
 
1239
If the target board is connected using a serial cable, the Serial radio
1240
button should be checked. In this case you can select a port (COM1,
1241
COM2, …) and an appropriate baud rate using drop-list boxes.
1242
If the target board is accessed remotely using GDB remote
1243
protocol, the “TCP/IP” radio button should
1244
be checked. In this case you can select a host name and TCP/IP port
1245
number using edit boxes.
1246
1247
1248
Executables Tab
1249
This is used to adjust the set of tests available for execution.
1250
A check box against each executable name indicates whether that
1251
executable will be included when the Run button
1252
is pressed. The Check All and Uncheck
1253
All buttons may be used to check or uncheck all items.
1254
When the property sheet is first displayed, it will be pre-populated
1255
with those test executables that have been linked using the Build/Tests
1256
operation against the current configuration. 
1257
1258
Run tests 
1259
1260
1261
You can right-click in the window to display a context menu
1262
containing Add and Remove items.
1263
Clicking Remove  will remove those executables
1264
selected. Clicking Add will display a dialog
1265
box that allows you to add to the set of items. Equivalently the Add button
1266
may be used to add executables, and the DEL key
1267
may be used to remove them.
1268
You can use the Add from Folder button
1269
to add a number of executables in a specified folder (optionally
1270
including subfolders, if you click on Yes when
1271
asked).
1272
1273
Add files from folder 
1274
1275
1276
 
1277
1287
1288
1289
Output Tab
1290
This tab is used to display the output from running tests.
1291
The output can be saved to a file or cleared by means of the popup
1292
menu displayed when you right-click in the window.
1293
1294
1295
Summary Tab
1296
This tab is used to display a record, in summary form, of
1297
those tests executed. For each execution, the following information
1298
is displayed:
1299
1300
1301
                        Time - the date and time of execution
1302
1303
1304
                        Host - the host name of the machine
1305
from which the test was downloaded
1306
1307
1308
                        Platform - the platform on which
1309
the test was executed
1310
1311
1312
                        Executable - the executable (file
1313
name) of the test executed
1314
1315
1316
                        Status - the result of executing
1317
the test. This will be one of the following:
1318
1319
1320
                                Not started
1321
1322
1323
No result
1324
1325
1326
Inapplicable
1327
1328
1329
                                Pass
1330
1331
1332
DTimeout
1333
1334
1335
Timeout
1336
1337
1338
Cancelled
1339
1340
1341
                                Fail
1342
1343
1344
Assert fail
1345
1346
1347
                        Size - the size [stripped/unstripped] of
1348
the test executed
1349
1350
1351
                        Download - the download time [mm:ss/mm:ss] used.
1352
The first of the two times displayed represents the actual time
1353
used: the second the limit time.
1354
1355
1356
                        Elapsed - the elapsed time [mm:ss] used.
1357
1358
1359
                        Execution - the execution time
1360
 [mm:ss/mm:ss] used. The first of the
1361
two times displayed represents the actual time used: the second
1362
the limit time.
1363
1364
1365
The output can be saved to a file or cleared by means of the
1366
popup menu displayed when you right-click in the window.
1367
1368
1369
1370
 
1371
1372
1373
 
1374
1375
Creating a Shell
1376
To call up a shell window, select Tools->Shell.
1377
Under Windows, you will get a Cygwin shell similar to the one below. On Linux, you will
1378
get a standard Linux shell window.
1379
1380
1381
Keyboard Accelerators
1382
The following table presents the list of keyboard accelerators
1383
that can be used with the Configuration Tool. 
1384
 
1385
Keyboard accelerators
1386
1387
          
1388
            
1389
              Accelerator
1390
              Action
1391
              Remarks
1392
            
1393
          
1394
1395
 
1396
1397
Alt+1
1398
hide/show properties window
1399
1400
1401
 
1402
1403
Alt+2
1404
hide/show output window
1405
1406
 
1407
1408
Alt+3
1409
hide/show short description window
1410
1411
 
1412
1413
Alt+4
1414
hide/show conflicts window
1415
1416
1417
 
1418
1419
Ctrl+A
1420
select alloutput
1421
window and in-cell editing
1422
1423
Ctrl+C
1424
copyoutput window
1425
and in-cell editing
1426
1427
Ctrl+F
1428
Edit->Find
1429
1430
Ctrl+N
1431
File->New
1432
1433
Ctrl+O
1434
File->Open
1435
1436
Ctrl+S
1437
File->Save
1438
1439
Ctrl+V
1440
Pastein-cell editing
1441
only
1442
1443
Ctrl+X
1444
Cutin-cell-editing
1445
only
1446
1447
Ctrl+Z
1448
Undoin-cell editing
1449
only
1450
1451
F1
1452
Context-sensitive help
1453
1454
F3
1455
Find next
1456
1457
F7
1458
Build->Library
1459
1460
Shift+F7
1461
Build->Tests
1462
1463
Alt+F6
1464
View->Next window
1465
1466
1467
Shift+Alt+0
1468
View->Previous window
1469
1470
1471
Shift+Ins
1472
Pastein-cell editing
1473
only
1474
1475
Shift+F10
1476
Display context menuConfiguration
1477
window
1478
1479
Alt+Enter
1480
Display properties dialog box
1481
Configuration window
1482
1483
>
1484
Increment item valueConfiguration
1485
window
1486
1487
<Decrement
1488
item valueConfiguration window
1489
1490
Space
1491
Toggle item valueConfiguration
1492
window
1493
          
1494
        
1495
      
1496
 
1497
1498
1499
 
1500
1501
 
1502
 
1503
1504

powered by: WebSVN 2.1.0

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