Skip to content
Snippets Groups Projects
Commit 4cc2d1e4 authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Fixing bad error check, and fixing module symvers path

parent a19dae6f
No related branches found
No related tags found
2 merge requests!439RCG 5.0 release fro deb 10,!367Build Reorganization Total
......@@ -71,9 +71,9 @@ IOP_EXTRA_OBJ += src/include/drv/ligoPcieTiming.o
IOP_EXTRA_OBJ += src/include/drv/plx_9056.o
IOP_EXTRA_OBJ += src/include/drv/spectracomGPS.o
ifdef DOLPHIN_TEST
ifdef BUILD_WITH_DOLPHIN
IOP_EXTRA_OBJ += src/fe/dolphin.o
endif #DOLPHIN_TEST
endif #BUILD_WITH_DOLPHIN
#
# Virtual IO (VIO) / Dolphin Timing special DAC ADC functions
......
......@@ -25,7 +25,7 @@ if ($::dolphin_time_xmit > -1) {
}
if ($::virtualiop != 1) {
if ($::pciNet > 0) {
print OUTM "DOLPHIN_TEST:=1\n";
print OUTM "BUILD_WITH_DOLPHIN:=1\n";
}
}
......@@ -165,7 +165,8 @@ if ($::iopModel > -1) { #************ SETUP FOR IOP ***************
if ($::dolphinGen == 2) {
print OUTM "#Enable use of PCIe RFM Network Gen 2\n";
print OUTM "DISDIR = /opt/srcdis\n";
print OUTM "KBUILD_EXTRA_SYMBOLS += \$(DISDIR)/src/SCI_SOCKET/ksocket/LINUX/Module.symvers\n";
print OUTM "KERNEL_RELEASE := \$(shell uname -r)\n";
print OUTM "KBUILD_EXTRA_SYMBOLS += /opt/DIS/lib/modules/\$(KERNEL_RELEASE)/dis_sisci.symvers\n";
print OUTM "EXTRA_CFLAGS += -DOS_IS_LINUX=1 -D_DIS_KERNEL_=1 -I\$(DISDIR)/src/IRM_GX/drv/src -I\$(DISDIR)/src/IRM_GX/drv/src/LINUX -I\$(DISDIR)/src/include -I\$(DISDIR)/src/include/dis -I\$(DISDIR)/src/COMMON/osif/kernel/include -I\$(DISDIR)/src/COMMON/osif/kernel/include/LINUX -DDOLPHIN_TEST=1 -DDIS_BROADCAST=0x80000000\n";
} else {
print OUTM "#Enable use of PCIe RFM Network Gen 1\n";
......
......@@ -41,7 +41,7 @@ session_callback( session_cb_arg_t IN arg,
/// @brief This function contains the required Dolphin callback routine. \n
// printl("Session callback reason=%d status=%d target_node=%d\n", reason,
// status, target_node); if (reason == SR_OK) iop_rfm_valid = 1;
if ( reason == SR_OK || status == SR_OK )
if ( reason == SR_OK || status == SR_NONE ) //TODO: This does not seem like a good check, we could pass if reason has an error and status is SR_NONE
iop_rfm_valid = 1;
else
iop_rfm_valid = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment