Verified Commit a1e71679 authored by Marc Vef's avatar Marc Vef
Browse files

Adding capstone to dependency scripts

parent 4ef7860d
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

MOGON2_DEPS=(
    "zstd" "lz4" "snappy" "bmi" "mercury" "argobots" "margo" "rocksdb" 
    "syscall_intercept date"
    "capstone" "syscall_intercept" "date"
)

usage_short() {
@@ -198,7 +198,6 @@ export LIBRARY_PATH="${LIBRARY_PATH}:${INSTALL}/lib:${INSTALL}/lib64"

# Set cluster dependencies first
if [[ ( "${CLUSTER}" == "mogon2" ) ]]; then

    # compile zstd
    if [[ ( "${DEPENDENCY}" == "" ) || ( "${DEPENDENCY}" == "zstd" ) ]]; then
        echo "############################################################ Installing:  zstd"
@@ -229,6 +228,16 @@ if [[ ( "${CLUSTER}" == "mogon2" ) ]]; then
        make -j${CORES}
        make install
    fi

    # build capstone for syscall-intercept
    if [[ ( "${DEPENDENCY}" == "" ) || ( "${DEPENDENCY}" == "capstone" ) ]]; then
      echo "############################################################ Installing:  capstone"
      CURR=${SOURCE}/capstone
      prepare_build_dir ${CURR}
      cd ${CURR}/build
      $CMAKE -DCMAKE_INSTALL_PREFIX=/home/vef/gekkofs_deps/install -DCMAKE_BUILD_TYPE:STRING=Release ..
      make -j${CORES} install
    fi
fi

# build bmi
+7 −2
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ NA_LAYER=""

MOGON2_DEPS=(
    "zstd" "lz4" "snappy" "bmi" "mercury" "argobots" "margo" "rocksdb" 
    "syscall_intercept date"
    "capstone" "syscall_intercept" "date"
)

# Stop all backround jobs on interruption.
@@ -227,6 +227,11 @@ if [[ ( "${CLUSTER}" == "mogon2" ) ]]; then
    if [[ ( "${DEPENDENCY}" == "" ) || ( "${DEPENDENCY}" == "snappy" ) ]]; then
            wgetdeps "snappy" "https://github.com/google/snappy/archive/1.1.7.tar.gz" &
    fi

    # get capstone for syscall-intercept
    if [[ ( "${DEPENDENCY}" == "" ) || ( "${DEPENDENCY}" == "capstone" ) ]]; then
      wgetdeps "capstone" "https://github.com/aquynh/capstone/archive/4.0.1.tar.gz" &
    fi
fi

# get BMI