Files
lifting-bits-sleigh/README.md
T
2021-10-15 16:39:43 +11:00

1.5 KiB

SLEIGH

SLEIGH was designed for the GHIDRA reverse engineering platform and is used to describe microprocessors with enough detail to facilitate two major components of GHIDRA, the disassembly and decompilation engines.

This repository provides a CMake build of SLEIGH so that it can be built and packaged as a standalone library.

Dependencies

Name Version
Git Latest
CMake 3.21+
Binutils Latest
Zlib Latest
Iberty Latest
Doxygen Latest
GraphViz Latest

Installation

# Clone SLEIGH repository
git clone https://github.com/lifting-bits/sleigh.git

# Update the Ghidra submodule
git submodule update --init --recursive

# Create build directory
mkdir build
cd build

# Configure CMake
cmake \
    -DSLEIGH_ENABLE_INSTALL=ON \
    -DCMAKE_INSTALL_PREFIX="<path where SLEIGH will install>" \
    -G Ninja \
    ..

# Build SLEIGH
cmake --build .

# Install SLEIGH
cmake --build . --target install

Packaging

The CMake configuration also supports building RPM or DEB packages for SLEIGH. If the SLEIGH_ENABLE_PACKAGING option is set, the build will create an RPM package if it finds rpm in the PATH or a DEB package if it finds dpkg in the PATH.

cmake \
    -DSLEIGH_ENABLE_PACKAGING=ON \
    -DCMAKE_INSTALL_PREFIX="<path where SLEIGH will install>"
    -G Ninja \
    ..