Merge pull request #21 from schumilo/qemu-nyx-4.2.0

various build script fixes
This commit is contained in:
Sergej Schumilo 2022-05-11 19:55:34 +02:00 committed by GitHub
commit 5c8cf793ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 14 deletions

View File

@ -39,19 +39,14 @@ error()
compile_libraries()
{
echo "[!] Compiling capstone4..."
make -C $CAPSTONE_ROOT -j $(nproc)
echo "[!] Compiling libxdc..."
LDFLAGS="-L$CAPSTONE_ROOT -L$LIBXDC_ROOT" CFLAGS="-I$CAPSTONE_ROOT/include/" make -C $LIBXDC_ROOT -j $(nproc)
case $1 in
"dynamic"|"debug")
echo "[!] Installing capstone4..."
sudo make -C $CAPSTONE_ROOT install
echo "[!] Installing libxdc..."
sudo make -C $LIBXDC_ROOT install
;;
"debug_static"|"static"|"lto")
echo "[!] Compiling capstone4..."
make -C $CAPSTONE_ROOT -j $(nproc)
echo "[!] Compiling libxdc..."
LDFLAGS="-L$CAPSTONE_ROOT -L$LIBXDC_ROOT" CFLAGS="-I$CAPSTONE_ROOT/include/" make -C $LIBXDC_ROOT -j $(nproc)
;;
esac
}
@ -65,7 +60,6 @@ configure_qemu()
export QEMU_CFLAGS="-I$CAPSTONE_ROOT/include/ -I$LIBXDC_ROOT/ $QEMU_CFLAGS"
;;
*)
error
;;
esac
@ -102,6 +96,14 @@ if [ "$#" -ne 1 ] ; then
error
fi
case $1 in
"dynamic"|"debug"|"debug_static"|"static"|"lto")
;;
*)
error
;;
esac
if [ -z "$LIBXDC_ROOT" -o -z "$CAPSTONE_ROOT" ]; then
git submodule init
git submodule update libxdc

2
libxdc

@ -1 +1 @@
Subproject commit df32642c985864c187ad3db13be1dc8c3155d888
Subproject commit 78f0fb6394ab297c78aa76bf671ebb0eae05ddc9