SConscript (6466:4e66dd2decd7) SConscript (6655:380a32b43336)
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 59 unchanged lines hidden (view full) ---

68 return cmdline
69
70slicc_builder = Builder(generator=slicc_generator)
71
72protocol = env['PROTOCOL']
73sources = [ protocol_dir.File("RubySlicc_interfaces.slicc"),
74 protocol_dir.File("%s.slicc" % protocol) ]
75
1# -*- mode:python -*-
2
3# Copyright (c) 2009 The Hewlett-Packard Development Company
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 59 unchanged lines hidden (view full) ---

68 return cmdline
69
70slicc_builder = Builder(generator=slicc_generator)
71
72protocol = env['PROTOCOL']
73sources = [ protocol_dir.File("RubySlicc_interfaces.slicc"),
74 protocol_dir.File("%s.slicc" % protocol) ]
75
76sys.path[0:0] = [env['ENV']['M5_PLY']]
77execfile(slicc_dir.File('parser/parser.py').srcnode().abspath)
78
79sm_files = read_slicc([s.srcnode().abspath for s in sources])
80sm_files = [ protocol_dir.File(f) for f in sm_files ]
81
82hh, cc = scan([s.srcnode().abspath for s in sm_files])
83hh = [ protocol_dir.File(f) for f in hh ]
84cc = [ protocol_dir.File(f) for f in cc ]
85
86slicc_bin = slicc_dir.File("slicc")
87
88env.Append(BUILDERS={'SLICC' : slicc_builder})
89env.SLICC(hh + cc, [ slicc_bin, Value(protocol) ] + sm_files)
90
91for f in cc:
92 Source(f)
76execfile(slicc_dir.File('parser/parser.py').srcnode().abspath)
77
78sm_files = read_slicc([s.srcnode().abspath for s in sources])
79sm_files = [ protocol_dir.File(f) for f in sm_files ]
80
81hh, cc = scan([s.srcnode().abspath for s in sm_files])
82hh = [ protocol_dir.File(f) for f in hh ]
83cc = [ protocol_dir.File(f) for f in cc ]
84
85slicc_bin = slicc_dir.File("slicc")
86
87env.Append(BUILDERS={'SLICC' : slicc_builder})
88env.SLICC(hh + cc, [ slicc_bin, Value(protocol) ] + sm_files)
89
90for f in cc:
91 Source(f)