commonservices/sysutil/layers.sysdef.xml
branchRCL_3
changeset 21 ccb4f6b3db21
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
       
     1 <?xml version="1.0"?>
       
     2 <!DOCTYPE SystemDefinition [
       
     3  <!ELEMENT SystemDefinition (systemModel?, build?)>
       
     4  <!ATTLIST SystemDefinition
       
     5   name CDATA #REQUIRED
       
     6   schema CDATA #REQUIRED>
       
     7  <!ELEMENT systemModel (layer+)>
       
     8  <!ELEMENT layer (logicalset* | module*)*>
       
     9  <!ATTLIST layer
       
    10   name CDATA #REQUIRED
       
    11   levels CDATA #IMPLIED
       
    12   span CDATA #IMPLIED>
       
    13  <!ELEMENT logicalset (logicalsubset* | module* | unit* | package* | prebuilt*)*>
       
    14  <!ATTLIST logicalset 
       
    15   name CDATA #REQUIRED
       
    16   levels CDATA #IMPLIED  
       
    17   span CDATA #IMPLIED
       
    18   level CDATA #IMPLIED>
       
    19  <!ELEMENT logicalsubset (module* | unit* | package* | prebuilt*)*>
       
    20  <!ATTLIST logicalsubset name CDATA #REQUIRED>
       
    21  <!ELEMENT module (component* | unit* | package* | prebuilt*)*>
       
    22  <!ATTLIST module
       
    23   name CDATA #REQUIRED
       
    24   level CDATA #IMPLIED>
       
    25  <!ELEMENT component (unit* | package* | prebuilt*)*>
       
    26  <!ATTLIST component name CDATA #REQUIRED>
       
    27  <!ELEMENT unit EMPTY>
       
    28  <!ATTLIST unit
       
    29   unitID ID #REQUIRED
       
    30   name CDATA #REQUIRED
       
    31   mrp CDATA #REQUIRED
       
    32   filter CDATA #IMPLIED
       
    33   bldFile CDATA #REQUIRED
       
    34   priority CDATA #IMPLIED
       
    35   contract CDATA #IMPLIED>
       
    36  <!ELEMENT package EMPTY>
       
    37  <!ATTLIST package
       
    38   name CDATA #REQUIRED
       
    39   mrp CDATA #REQUIRED
       
    40   filter CDATA #IMPLIED
       
    41   contract CDATA #IMPLIED>
       
    42  <!ELEMENT prebuilt EMPTY>
       
    43  <!ATTLIST prebuilt
       
    44   name CDATA #REQUIRED
       
    45   version CDATA #REQUIRED
       
    46   late (Y|N) #IMPLIED
       
    47   filter CDATA #IMPLIED
       
    48   contract CDATA #IMPLIED>
       
    49  <!ELEMENT build (option* | target+ | targetList+ | unitList+ | configuration+)*>
       
    50  <!ELEMENT unitList (unitRef+)>
       
    51  <!ATTLIST unitList
       
    52   name ID #REQUIRED
       
    53   description CDATA #REQUIRED>
       
    54  <!ELEMENT unitRef EMPTY>
       
    55  <!ATTLIST unitRef unit IDREF #REQUIRED>
       
    56  <!ELEMENT targetList EMPTY>
       
    57  <!ATTLIST targetList
       
    58   name ID #REQUIRED
       
    59   description CDATA #REQUIRED
       
    60   target IDREFS #REQUIRED>
       
    61  <!ELEMENT target EMPTY>
       
    62  <!ATTLIST target
       
    63   name ID #REQUIRED
       
    64   abldTarget CDATA #REQUIRED
       
    65   description CDATA #REQUIRED>
       
    66  <!ELEMENT option EMPTY>
       
    67  <!ATTLIST option
       
    68   name ID #REQUIRED
       
    69   abldOption CDATA #REQUIRED
       
    70   description CDATA #REQUIRED
       
    71   enable (Y | N | y | n) #REQUIRED>
       
    72  <!ELEMENT configuration (unitListRef+ | layerRef+ | task+)*>
       
    73  <!ATTLIST configuration
       
    74   name ID #REQUIRED
       
    75   description CDATA #REQUIRED
       
    76   filter CDATA #REQUIRED>
       
    77  <!ELEMENT task ( unitListRef* , (buildLayer | specialInstructions))>
       
    78  <!ELEMENT unitListRef EMPTY>
       
    79  <!ATTLIST unitListRef unitList IDREF #REQUIRED>
       
    80  <!ELEMENT layerRef EMPTY>
       
    81  <!ATTLIST layerRef layerName CDATA #REQUIRED>
       
    82  <!ELEMENT buildLayer EMPTY>
       
    83  <!ATTLIST buildLayer
       
    84   command CDATA #REQUIRED
       
    85   targetList IDREFS #IMPLIED
       
    86   unitParallel (Y | N | y | n) #REQUIRED
       
    87   targetParallel (Y | N | y | n) #IMPLIED>
       
    88  <!ELEMENT specialInstructions EMPTY>
       
    89  <!ATTLIST specialInstructions
       
    90   name CDATA #REQUIRED
       
    91   cwd CDATA #REQUIRED
       
    92   command CDATA #REQUIRED>
       
    93   <!ENTITY layer_real_source_path "sf/os/devicesrv/commonservices/sysutil" >
       
    94 ]>
       
    95 
       
    96 <SystemDefinition name="Dvscode" schema="1.4.0">
       
    97   <systemModel>
       
    98     <layer name="os_layer">
       
    99 		<module name="DeviceSrv_DFS">
       
   100 			<unit name="sysutil" unitID="sos.sysutil" bldFile="&layer_real_source_path;/group" mrp="&layer_real_source_path;/group/sysutil.mrp"/>
       
   101 		</module>
       
   102     </layer>
       
   103 	
       
   104 	<layer name="api_test_layer">
       
   105 		<module name="DeviceSrv_DFS">
       
   106 			<unit name="sysutil" unitID="sos.sysutil_test" bldFile="&layer_real_source_path;/group" mrp="&layer_real_source_path;/group/sysutil.mrp"/>
       
   107 		</module>
       
   108 	</layer>
       
   109 
       
   110   </systemModel>
       
   111 </SystemDefinition>