avadhpatel / marss

PTLsim and QEMU based Computer Architecture Research Simulator
http://www.marss86.org
128 stars 63 forks source link

Replace SCons with CMake #74

Open tj90241 opened 2 years ago

tj90241 commented 2 years ago

This is preliminary work: we'll need to document the (at least, temporary) requirements such as jq...

When checking out this branch and forever more, one must run git submodule update --init --recursive to fetch the qemu submodule.

Builds can be then done in a separate directory:

mkdir -p build && cd build
cmake ..
make -j9

Signed-off-by: Tyler J. Stachecki stachecki.tyler@gmail.com

tj90241 commented 2 years ago

Currently have to copy ROM images into the build dir, still need to fix...

git submodule update --init --recursive
mkdir -p build && cd build
cmake ..
make -j9
cp -R ../qemu/pc-bios/* share/qemu/

I also have to double-check that qemu-system-x86_64 gets relinked when libptlsim.a changes - I don't think that's the case right now.

There's also a variety of new tools and packages that might be needed, includiing jq, libfdt-dev, and others.