PiSCSI allows a Raspberry Pi to function as emulated SCSI devices (hard disk, CD-ROM, and others) for vintage SCSI-based computers and devices. This is a fork of the RaSCSI project by GIMONS.
The C++ code has become modular enough to consider making the devices to support/compile configurable. At least for some devices this is possible by just not compiling the device source file anymore and removing the device instantiation code from the device factory. This has already been tested with the host services device, but this test has not covered also changing the device types reported as available by the remote interface.
Potential approach:
Introduce preprocessor #defines, e.g. WITH_DEVICE or WITHOUT_DEVICE for any device type that is removable.
Grouping devices this way may be useful, e.g. WITH_DISKS builds all disk devices.
Based on these #defines, in the C++ code do not include some header files and do not compile the device factory code instantiating removed devices. Also ensure that the remote interface does not report the removed device types as being supported.
easysetup gives the user a choice which devices to support and runs "make" with the resulting "-D" settings.
Note, though, that one cannot save much compile time with not compiling everything. Mode code is always needed for the disk devices. This is why this ticket may not be worh the effort.
@rdmark Do you remember the recent tickets which moved some code from the device factory to the respective devices? Having done that makes implementing this ticket more straightforward.
The C++ code has become modular enough to consider making the devices to support/compile configurable. At least for some devices this is possible by just not compiling the device source file anymore and removing the device instantiation code from the device factory. This has already been tested with the host services device, but this test has not covered also changing the device types reported as available by the remote interface.
Potential approach:
Note, though, that one cannot save much compile time with not compiling everything. Mode code is always needed for the disk devices. This is why this ticket may not be worh the effort.