mirror of
https://github.com/SCST-project/scst.git
synced 2026-07-30 20:12:59 +00:00
-fstack-protector-strong is controlled by the in-tree
CONFIG_STACKPROTECTOR_STRONG config option. If the flag is set without
the config option, scst fails to build:
ERROR: modpost: "__stack_chk_fail" [scst/src/scst.ko] undefined!
-fstack-clash-protection is disabled in the kernel's Makefile due to an
incompatibility with randomize_kstack_offset.
Fixes: 86d3d4bb1d ("kbuild: Enable additional compiler warnings")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
43 lines
1.4 KiB
Makefile
43 lines
1.4 KiB
Makefile
#
|
|
# Makefile for the kernel part of iSER-SCST.
|
|
#
|
|
# Copyright (C) 2007 - 2014 Vladislav Bolkhovitin
|
|
# Copyright (C) 2007 - 2014 Fusion-io, Inc.
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation, version 2
|
|
# of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
LINUXINCLUDE := $(ISER_CFLAGS) $(LINUXINCLUDE)
|
|
KBUILD_EXTRA_SYMBOLS += $(src)/../../../scst/src/Module.symvers
|
|
KBUILD_EXTRA_SYMBOLS += \
|
|
$(src)/../../kernel/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 \
|
|
-I$(src)/../../include \
|
|
-Wall \
|
|
-Wextra \
|
|
-Wno-type-limits \
|
|
-Wno-missing-field-initializers \
|
|
-Wno-unused-parameter \
|
|
-Wformat \
|
|
-O2 \
|
|
-Werror=format-security \
|
|
-Werror=implicit-function-declaration \
|
|
-pipe \
|
|
-g \
|
|
-grecord-gcc-switches \
|
|
-Wstrict-prototypes
|
|
|
|
obj-m += isert-scst.o
|
|
isert-scst-objs := isert.o isert_login.o \
|
|
iser_datamover.o iser_rdma.o iser_buf.o iser_pdu.o iser_global.o
|