From f58c8248dd8f012c6048df28eaa66352fc8a3319 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 26 Jul 2020 03:34:55 +0000 Subject: [PATCH] iscst-scst: Fix the OFED build git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9083 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/Kbuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/Kbuild b/iscsi-scst/kernel/Kbuild index c6d33400d..08feb06b1 100644 --- a/iscsi-scst/kernel/Kbuild +++ b/iscsi-scst/kernel/Kbuild @@ -14,7 +14,9 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers +KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers \ + $(shell for d in /usr/src/ofa_kernel/default/Module.symvers; do\ + [ -e $$d ] || continue; echo $$d; break; done) ccflags-y += -I$(src)/../include -I$(src)/../../scst/include ccflags-y += $(CONFTEST_CFLAGS)