From e2409098ddfa80cee13a9492604eb5ef7cc8d45f Mon Sep 17 00:00:00 2001 From: uweseimet <48174652+uweseimet@users.noreply.github.com> Date: Sun, 27 Jun 2021 05:26:04 +0200 Subject: [PATCH] Added EXTRA_FLAGS to Makefile and fixed typo (#118) --- src/raspberrypi/Makefile | 8 ++++++-- src/raspberrypi/controllers/sasidev_ctrl.cpp | 2 +- src/raspberrypi/devices/scsi_daynaport.cpp | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/raspberrypi/Makefile b/src/raspberrypi/Makefile index 434d0d1c..397ef985 100644 --- a/src/raspberrypi/Makefile +++ b/src/raspberrypi/Makefile @@ -30,8 +30,12 @@ else CXXFLAGS += -O3 -Wall -Werror -DNDEBUG BUILD_TYPE = Release endif -CFLAGS += -iquote . -MD -MP -CXXFLAGS += -std=c++14 -iquote . -MD -MP +CFLAGS += -iquote . -MD -MP +CXXFLAGS += -std=c++14 -iquote . -MD -MP + +## EXTRA_FLAGS : Can be used to pass special purpose flags +CFLAGS += $(EXTRA_FLAGS) +CXXFLAGS += $(EXTRA_FLAGS) ## CONNECT_TYPE=FULLSPEC : Specify the type of RaSCSI board type ## that you are using. The typical options are diff --git a/src/raspberrypi/controllers/sasidev_ctrl.cpp b/src/raspberrypi/controllers/sasidev_ctrl.cpp index 896c95b2..dcce207c 100644 --- a/src/raspberrypi/controllers/sasidev_ctrl.cpp +++ b/src/raspberrypi/controllers/sasidev_ctrl.cpp @@ -1742,7 +1742,7 @@ BOOL FASTCALL SASIDEV::XferOut(BOOL cont) // Special case Write function for DaynaPort if (ctrl.unit[lun]->GetID() == MAKEID('S', 'C', 'D', 'P')) { - LOGTRACE("%s Doing special case write for DayanPort", __PRETTY_FUNCTION__); + LOGTRACE("%s Doing special case write for DaynaPort", __PRETTY_FUNCTION__); if (!(SCSIDaynaPort*)ctrl.unit[lun]->Write(ctrl.cmd, ctrl.buffer, ctrl.length)) { // write failed return FALSE; diff --git a/src/raspberrypi/devices/scsi_daynaport.cpp b/src/raspberrypi/devices/scsi_daynaport.cpp index ae334d68..2520664e 100644 --- a/src/raspberrypi/devices/scsi_daynaport.cpp +++ b/src/raspberrypi/devices/scsi_daynaport.cpp @@ -137,7 +137,7 @@ int FASTCALL SCSIDaynaPort::Inquiry( // LOGWARN(":::::::::: Doing runtime pointer conversion: %04X", ((scsi_cdb_6_byte_t*)cdb)->length); // } - LOGTRACE("%s Inquiry with major %ld, minor %ld. Allocaiton length: %d",__PRETTY_FUNCTION__, major, minor, (int)allocation_length); + LOGTRACE("%s Inquiry with major %ld, minor %ld. Allocation length: %d",__PRETTY_FUNCTION__, major, minor, (int)allocation_length); if(cdb[1] & 0x3) { LOGWARN("Tiny SCSI Emulator says this is an invalid request");