SConscript (6994:c6951099a1cb) | SConscript (7756:846fb3ffe0dc) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2006 The Regents of The University of Michigan 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 --- 73 unchanged lines hidden (view full) --- 82 xc_type = CpuModel.dict[cpu].strings['CPU_exec_context'] 83 print >> f, exec_sig_template % { 'type' : xc_type } 84 print >> f, ''' 85#endif // __CPU_STATIC_INST_EXEC_SIGS_HH__ 86''' 87 88# Generate string that gets printed when header is rebuilt 89def gen_sigs_string(target, source, env): | 1# -*- mode:python -*- 2 3# Copyright (c) 2006 The Regents of The University of Michigan 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 --- 73 unchanged lines hidden (view full) --- 82 xc_type = CpuModel.dict[cpu].strings['CPU_exec_context'] 83 print >> f, exec_sig_template % { 'type' : xc_type } 84 print >> f, ''' 85#endif // __CPU_STATIC_INST_EXEC_SIGS_HH__ 86''' 87 88# Generate string that gets printed when header is rebuilt 89def gen_sigs_string(target, source, env): |
90 return "Generating static_inst_exec_sigs.hh: " \ | 90 return " [GENERATE] static_inst_exec_sigs.hh: " \ |
91 + ', '.join(temp_cpu_list) 92 93# Add command to generate header to environment. 94env.Command('static_inst_exec_sigs.hh', (), 95 Action(gen_cpu_exec_signatures, gen_sigs_string, 96 varlist = temp_cpu_list)) 97 98env.Depends('static_inst_exec_sigs.hh', Value(env['USE_CHECKER'])) --- 78 unchanged lines hidden --- | 91 + ', '.join(temp_cpu_list) 92 93# Add command to generate header to environment. 94env.Command('static_inst_exec_sigs.hh', (), 95 Action(gen_cpu_exec_signatures, gen_sigs_string, 96 varlist = temp_cpu_list)) 97 98env.Depends('static_inst_exec_sigs.hh', Value(env['USE_CHECKER'])) --- 78 unchanged lines hidden --- |