You can now set the privilege and type for MakeSICSObj in an sct template.
This commit is contained in:
@@ -86,6 +86,7 @@ reserved = {
|
||||
'CODE' : 'CODE',
|
||||
'ADD_ARGS' : 'ADD_ARGS',
|
||||
'MAKE_ARGS' : 'MAKE_ARGS',
|
||||
'SOBJ_PRIV_TYPE' : 'SOBJ_PRIV_TYPE',
|
||||
'PROTOCOL_ARGS' : 'PROTOCOL_ARGS',
|
||||
# Group keywords
|
||||
'GROUP' : 'GROUP',
|
||||
@@ -314,6 +315,7 @@ def p_driver_assignment(p):
|
||||
| SIMULATION_GROUP EQUALS id_or_str
|
||||
| ADD_ARGS EQUALS text_string
|
||||
| MAKE_ARGS EQUALS text_string
|
||||
| SOBJ_PRIV_TYPE EQUALS text_string
|
||||
| PROTOCOL_ARGS EQUALS text_string
|
||||
| DEBUG_THRESHOLD EQUALS value
|
||||
'''
|
||||
@@ -1313,7 +1315,12 @@ def put_mkDriver(MyDriver):
|
||||
else:
|
||||
txt += [' set permlink_device_number [format "%02d" [incr ::scobj::permlink_device_counter]]']
|
||||
txt += ['']
|
||||
txt += [' MakeSICSObj ${name} SCT_OBJECT']
|
||||
if 'sobj_priv_type' in MyDriver:
|
||||
priv_type = MyDriver['sobj_priv_type'].split()
|
||||
ms_line = ' MakeSICSObj ${name} SCT_OBJECT %s %s' % (priv_type[0], priv_type[1])
|
||||
else:
|
||||
ms_line = ' MakeSICSObj ${name} SCT_OBJECT'
|
||||
txt += [ms_line]
|
||||
txt += ['']
|
||||
txt += [' sicslist setatt ${name} klass %s' % MyDriver['class']]
|
||||
txt += [' sicslist setatt ${name} long_name ${name}']
|
||||
|
||||
Reference in New Issue
Block a user