mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
Move KBUILD_EXTRA_SYMBOLS definitions into the kernel Makefiles
$(KBUILD_EXTRA_SYMBOLS) is not only used at compile time but also at link time. Move the $(KBUILD_EXTRA_SYMBOLS) definitions such that it is available both at compile time and at link time. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9000 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+1
-2
@@ -94,8 +94,7 @@ PRE_CFLAGS = $(OFED_CFLAGS) \
|
||||
|
||||
all: check $(CONFTEST_OUTPUTS)
|
||||
$(MAKE) -C $(KDIR) M=$(shell pwd)/src PRE_CFLAGS="$(PRE_CFLAGS)"\
|
||||
$(OFED_CONFIG) modules\
|
||||
KBUILD_EXTRA_SYMBOLS="$(SCST_DIR)/Module.symvers $(OFED_MODULE_SYMVERS)"
|
||||
$(OFED_CONFIG) modules
|
||||
|
||||
install: all
|
||||
@[ -z "$(DESTDIR)$(INSTALL_MOD_PATH)" ] && \
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
LINUXINCLUDE := $(PRE_CFLAGS) $(LINUXINCLUDE)
|
||||
CPPFLAGS := $(PRE_CFLAGS) $(CPPFLAGS)
|
||||
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)/../../scst/include
|
||||
|
||||
#ccflags-y += -Wextra -Wno-unused-parameter
|
||||
|
||||
Reference in New Issue
Block a user