Simple Bash script that aims to build a turnip driver for Magisk/KernelSU or emulators.
Ensure you have the following commands available in your system:
mesonninjapatchelfunzipcurlflexbison(NOTE: Bison should be version 2.4 or later, check withbison --version. MacOS by default has old Bison 2.3 version, so install newer withbrew install bisonandbrew link --force bison).zipglslangpiporpip3. This script install some Python packages globally by default. If you dont want this behavior, you can execute script from Poetry virtual environment to install packages locally (see below).
If your system does not allow to install system-wide Python packages (e. g. Python installed via Homebrew), or you want to install them locally, the build script should be executed from virtualenv. It can be done using Poetry. Install poetry on your system, then do the following from the project root:
poetry install
eval "$(poetry env activate)"To start build process just type
./build-turnip.sh build
You can also specify custom options for the build script (for example, custom Android NDK). To see all availabe options type the following:
./build-turnip.sh help
@v3kt0r-87 for creating the original Mesa-Turnip-Builder script.
@MrMiy4mo for creating the freedreno_turnip-CI script.
@Mesa3D Team for creating an open source drivers for Adreno.
Adreno Driver Support Group for testing and sharing benchmarks.