SConscript (13777:e46c6cd6c3ab) | SConscript (13993:a599ee1297a7) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2018 ARM Limited 4# 5# The license below extends only to copyright in the software and shall 6# not be construed as granting a license to any other intellectual 7# property including but not limited to intellectual property relating 8# to a hardware implementation of the functionality of the software --- 1117 unchanged lines hidden (view full) --- 1126env.Command('sim/tags.cc', None, 1127 MakeAction('util/cpt_upgrader.py --get-cc-file > $TARGET', 1128 Transform("VER TAGS"))) 1129env.AlwaysBuild(tags) 1130 1131# Build a small helper that marshals the Python code using the same 1132# version of Python as gem5. This is in an unorthodox location to 1133# avoid building it for every variant. | 1# -*- mode:python -*- 2 3# Copyright (c) 2018 ARM Limited 4# 5# The license below extends only to copyright in the software and shall 6# not be construed as granting a license to any other intellectual 7# property including but not limited to intellectual property relating 8# to a hardware implementation of the functionality of the software --- 1117 unchanged lines hidden (view full) --- 1126env.Command('sim/tags.cc', None, 1127 MakeAction('util/cpt_upgrader.py --get-cc-file > $TARGET', 1128 Transform("VER TAGS"))) 1129env.AlwaysBuild(tags) 1130 1131# Build a small helper that marshals the Python code using the same 1132# version of Python as gem5. This is in an unorthodox location to 1133# avoid building it for every variant. |
1134py_marshal = env.Program('python/marshal.cc')[0] | 1134py_marshal = env.Program('marshal', 'python/marshal.cc')[0] |
1135 1136# Embed python files. All .py files that have been indicated by a 1137# PySource() call in a SConscript need to be embedded into the M5 1138# library. To do that, we compile the file to byte code, marshal the 1139# byte code, compress it, and then generate a c++ file that 1140# inserts the result into an array. 1141def embedPyFile(target, source, env): 1142 def c_str(string): --- 272 unchanged lines hidden --- | 1135 1136# Embed python files. All .py files that have been indicated by a 1137# PySource() call in a SConscript need to be embedded into the M5 1138# library. To do that, we compile the file to byte code, marshal the 1139# byte code, compress it, and then generate a c++ file that 1140# inserts the result into an array. 1141def embedPyFile(target, source, env): 1142 def c_str(string): --- 272 unchanged lines hidden --- |