mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-02 06:07:30 +00:00
This patch avoids that the build_mode file is read when applying the generate-kernel-patch output to the kernel tree and when building the kernel tree. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8272 d57e44dd-8a1f-0410-8b47-8ef2f437770f
20 lines
678 B
Makefile
20 lines
678 B
Makefile
LINUXINCLUDE := $(PRE_CFLAGS) $(LINUXINCLUDE)
|
|
CPPFLAGS := $(PRE_CFLAGS) $(CPPFLAGS)
|
|
ccflags-y += -I$(KBUILD_EXTMOD)/../../scst/include
|
|
|
|
ifneq ($(and $(KBUILD_EXTMOD),$(if $(findstring $(abspath $(srctree)),$(abspath $(KBUILD_EXTMOD))),,true)),)
|
|
-include $(KBUILD_EXTMOD)/../../build_mode
|
|
|
|
echo := $(shell echo "srpt build mode: $(BUILD_MODE)" >& 2)
|
|
|
|
BUILD_MODE_CFLAGS_ = -DCONFIG_SCST_TRACING -DCONFIG_SCST_DEBUG \
|
|
-DCONFIG_SCST_EXTRACHECKS -fno-inline -fno-inline-functions
|
|
BUILD_MODE_CFLAGS_RELEASE = -DCONFIG_SCST_TRACING
|
|
BUILD_MODE_CFLAGS_PERF =
|
|
ccflags-y += $(BUILD_MODE_CFLAGS_$(BUILD_MODE))
|
|
endif
|
|
|
|
#ccflags-y += -Wextra -Wno-unused-parameter
|
|
|
|
obj-m += ib_srpt.o
|