Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/49393 )
Change subject: scons,python: Move the marshal.py script into util.
......................................................................
scons,python: Move the marshal.py script into util.
It's really a part of the build system and not part of gem5, and so it
should probably live outside of the main tree. It would be confusing to
have a bunch of python scripts which don't end up inside gem5 alongside
a bunch of ones that do in src/python.
The directory is called util/bld instead of util/build so it doesn't get
confused with an actual build output directory.
Change-Id: Ie12475a15517508dc2044f0ca4db71a601b7ab6d
---
M src/SConscript
R util/bld/marshal.py
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/SConscript b/src/SConscript
index 111617d..b2b19ce 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -76,11 +76,13 @@
class Source(SourceFile):
pass
+util_bld = Dir('#util').Dir('bld')
+
# Build a small helper that marshals the Python code using the same version
# of Python as gem5. This is in an unorthodox location to avoid building it
# for every variant.
gem5py = gem5py_env.Program('gem5py', 'python/gem5py.cc')[0]
-marshal_py = Dir('python').File('marshal.py')
+marshal_py = util_bld.File('marshal.py')
# Embed python files. All .py files that have been indicated by a
# PySource() call in a SConscript need to be embedded into the M5
diff --git a/src/python/marshal.py b/util/bld/marshal.py
similarity index 100%
rename from src/python/marshal.py
rename to util/bld/marshal.py
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/49393
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie12475a15517508dc2044f0ca4db71a601b7ab6d
Gerrit-Change-Number: 49393
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s