diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-01-27 12:40:01 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-01-27 12:40:01 +0000 |
commit | 2974dc7a3771e34542ed5bd1baf88e4ced8cf139 (patch) | |
tree | c60e4620b2ac61d0790c07fabdd802b1107a8976 /src/python/SConscript | |
parent | e3875215270220e5142a93848f74ccde9d61b244 (diff) | |
download | gem5-2974dc7a3771e34542ed5bd1baf88e4ced8cf139.tar.xz |
python: Move native wrappers to the _m5 namespace
Swig wrappers for native objects currently share the _m5.internal name
space with Python code. This is undesirable if we ever want to switch
from Swig to some other framework for native binding (e.g., PyBind11
or Boost::Python). This changeset moves all of such wrappers to the
_m5 namespace, which is now reserved for native code.
Change-Id: I2d2bc12dbc05b57b7c5a75f072e08124413d77f3
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/python/SConscript')
-rw-r--r-- | src/python/SConscript | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/python/SConscript b/src/python/SConscript index 503e9138d..c1868f4b8 100644 --- a/src/python/SConscript +++ b/src/python/SConscript @@ -63,14 +63,15 @@ PySource('m5.util', 'm5/util/smartdict.py') PySource('m5.util', 'm5/util/sorteddict.py') PySource('m5.util', 'm5/util/terminal.py') -SwigSource('m5.internal', 'swig/core.i') -SwigSource('m5.internal', 'swig/debug.i') -SwigSource('m5.internal', 'swig/drain.i') -SwigSource('m5.internal', 'swig/event.i') -SwigSource('m5.internal', 'swig/pyobject.i') -SwigSource('m5.internal', 'swig/range.i') -SwigSource('m5.internal', 'swig/serialize.i') -SwigSource('m5.internal', 'swig/stats.i') -SwigSource('m5.internal', 'swig/trace.i') +PySource('_m5', '_m5/__init__.py') +SwigSource('_m5', 'swig/core.i') +SwigSource('_m5', 'swig/debug.i') +SwigSource('_m5', 'swig/drain.i') +SwigSource('_m5', 'swig/event.i') +SwigSource('_m5', 'swig/pyobject.i') +SwigSource('_m5', 'swig/range.i') +SwigSource('_m5', 'swig/serialize.i') +SwigSource('_m5', 'swig/stats.i') +SwigSource('_m5', 'swig/trace.i') PySource('m5.internal', 'm5/internal/__init__.py') PySource('m5.internal', 'm5/internal/params.py') |