misc: Documentation Update
authorMatthias Jung <jungma@eit.uni-kl.de>
Mon, 9 Jan 2017 15:33:42 +0000 (09:33 -0600)
committerMatthias Jung <jungma@eit.uni-kl.de>
Mon, 9 Jan 2017 15:33:42 +0000 (09:33 -0600)
Updates for READMEs of /util/cxx_config, /util/systemc, /util/tlm.
Some minor corrections, mostly with respect to MAC/OSX

Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
util/cxx_config/README
util/systemc/README
util/tlm/README

index a80f7ad8f0e9e48010543dbe9b4a796b70c5b15d..50c15bd7b85798c7c2f63fb0abbeb3e6cf308647 100644 (file)
@@ -19,6 +19,15 @@ needed):
 > scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
 > cd util/cxx_config
 
+Note: For MAC / OSX this command should be used:
+> scons --with-cxx-config --without-python build/ARM/libgem5_opt.dylib
+
+Set a proper LD_LIBRARY_PATH e.g. for bash:
+> export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
+
+or for MAC / OSX:
+> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
+
 Then edit Makefile to set the paths for PYTHON and run make
 
 > make
index a886e0220e2d4340ed2670d66463057a4a7b1bad..b05c81058b9227cb2ed74fd2bfff56cf4d38a38a 100644 (file)
@@ -32,9 +32,29 @@ needed):
 > cd ../..
 > scons build/ARM/gem5.opt
 > scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
-> cd util/cxx_config
+> cd util/systemc
 
-Then edit Makefile to set the paths for SystemC and run make
+Note: For MAC / OSX this command should be used:
+> scons --with-cxx-config --without-python build/ARM/libgem5_opt.dylib
+
+Set a proper LD_LIBRARY_PATH e.g. for bash:
+> export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
+
+or for MAC / OSX:
+> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
+
+
+Then edit the Makefile to set the paths for SystemC, e.g:
+
+    Linux:
+    SYSTEMC_INC = /opt/systemc/include
+    SYSTEMC_LIB = /opt/systemc/lib-linux64
+
+    MAC / OSX:
+    SYSTEMC_INC = /opt/systemc/include
+    SYSTEMC_LIB = /opt/systemc/lib-macosx64
+
+Then run make:
 
 > make
 
@@ -57,3 +77,6 @@ This should print:
 The .ini file can also be read by the Python .ini file reader example:
 
 > ../../build/ARM/gem5.opt ../../configs/example/read_ini.py m5out/config.ini
+
+If you are interested in SystemC Transaction Level Modeling (TLM2) please have
+a look into /util/tlm.
index fc620f1458878de31fc2d2473c59ea67ce7e4aa3..cf2a4acfdf2b03f5397bb9a407942e4b9ea01248 100644 (file)
@@ -35,10 +35,26 @@ without python.
 > scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
 > cd util/tlm
 
+Note: For MAC / OSX this command should be used:
+> scons --with-cxx-config --without-python build/ARM/libgem5_opt.dylib
+
 Set a proper LD_LIBRARY_PATH e.g. for bash:
 > export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
 
-Then edit the Makefile to set the paths for SystemC and run make
+or for MAC / OSX:
+> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
+
+Then edit the Makefile to set the paths for SystemC:
+
+    Linux:
+    SYSTEMC_INC = /opt/systemc/include
+    SYSTEMC_LIB = /opt/systemc/lib-linux64
+
+    MAC / OSX:
+    SYSTEMC_INC = /opt/systemc/include
+    SYSTEMC_LIB = /opt/systemc/lib-macosx64
+
+Then run make:
 
 > make