Skip to content

Building

Uwe Seimet edited this page May 29, 2024 · 11 revisions

Building from the sources

Using the binary Debian packages is the fastest way to install SCSI2Pi. In order to compile the sources enter the scsi2pi folder and run

>make
To install the binaries and manpages in the default location /opt/scsi2pi run
>sudo make install
To install elsewhere run
>sudo make install TARGET=YOUR_INSTALLATION_LOCATION

Building customized binaries

If you are interested in smaller binaries, which only support the device types you need, or in shorter compilation times, you can customize the build. Just pass the device types to be built to make:

make ENABLE_SCHD=1 ENABLE_SCLP=1
Or exclude some types from being built:
make DISABLE_SAHD=1 DISABLE_SCDP=1
Note that the unit tests require all device types to be available, otherwise they will not compile.