mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Cleanup linux module kbuild files
The linux module can be built either as an external module, or compiled
into the kernel, using copy-builtin. The source and build directories
are slightly different between the two cases, and currently, compiling
into the kernel still refers to some files from the configured ZFS
source tree, instead of the copies inside the kernel source tree. There
is also duplication between copy-builtin, which creates a Kbuild file to
build ZFS inside the kernel tree, and the top-level module/Makefile.in.
Fix this by moving the list of modules and the CFLAGS settings into a
new module/Kbuild.in, which will be used by the kernel kbuild
infrastructure, and using KBUILD_EXTMOD to distinguish the two cases
within the Makefiles, in order to choose appropriate include
directories etc.
Module CFLAGS setting is simplified by using subdir-ccflags-y (available
since 2.6.30) to set them in the top-level Kbuild instead of each
individual module. The disabling of -Wunused-but-set-variable is removed
from the lua and zfs modules. The variable that the Makefile uses is
actually not defined, so this has no effect; and the warning has long
been disabled by the kernel Makefile itself.
The target_cpu definition in module/{zfs,zcommon} is removed as it was
replaced by use of CONFIG_SPARC64 in
commit 70835c5b75
("Unify target_cpu handling")
os/linux/{spl,zfs} are removed from obj-m, as they are not modules in
themselves, but are included by the Makefile in the spl and zfs module
directories. The vestigial Makefiles in os and os/linux are removed.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10379
Closes #10421
This commit is contained in:
parent
dd4bc569b9
commit
71504277ae
@ -170,13 +170,12 @@ AC_CONFIG_FILES([
|
|||||||
man/man1/Makefile
|
man/man1/Makefile
|
||||||
man/man5/Makefile
|
man/man5/Makefile
|
||||||
man/man8/Makefile
|
man/man8/Makefile
|
||||||
|
module/Kbuild
|
||||||
module/Makefile
|
module/Makefile
|
||||||
module/avl/Makefile
|
module/avl/Makefile
|
||||||
module/icp/Makefile
|
module/icp/Makefile
|
||||||
module/lua/Makefile
|
module/lua/Makefile
|
||||||
module/nvpair/Makefile
|
module/nvpair/Makefile
|
||||||
module/os/Makefile
|
|
||||||
module/os/linux/Makefile
|
|
||||||
module/os/linux/spl/Makefile
|
module/os/linux/spl/Makefile
|
||||||
module/os/linux/zfs/Makefile
|
module/os/linux/zfs/Makefile
|
||||||
module/spl/Makefile
|
module/spl/Makefile
|
||||||
|
42
copy-builtin
42
copy-builtin
@ -11,21 +11,6 @@ usage()
|
|||||||
[ "$#" -eq 1 ] || usage
|
[ "$#" -eq 1 ] || usage
|
||||||
KERNEL_DIR="$(readlink --canonicalize-existing "$1")"
|
KERNEL_DIR="$(readlink --canonicalize-existing "$1")"
|
||||||
|
|
||||||
MODULES=()
|
|
||||||
|
|
||||||
# When integrated in to a monolithic kernel the spl module must appear
|
|
||||||
# first. This ensures its module initialization function is run before
|
|
||||||
# any of the other module initialization functions which depend on it.
|
|
||||||
MODULES+="spl"
|
|
||||||
|
|
||||||
for MODULE_DIR in module/* module/os/linux/*
|
|
||||||
do
|
|
||||||
[ -d "$MODULE_DIR" ] || continue
|
|
||||||
[ "spl" = "${MODULE_DIR##*/}" ] && continue
|
|
||||||
[ "os" = "${MODULE_DIR#*/}" ] && continue
|
|
||||||
MODULES+=("${MODULE_DIR#*/}")
|
|
||||||
done
|
|
||||||
|
|
||||||
if ! [ -e 'zfs_config.h' ]
|
if ! [ -e 'zfs_config.h' ]
|
||||||
then
|
then
|
||||||
echo >&2
|
echo >&2
|
||||||
@ -43,12 +28,6 @@ cp --recursive include "$KERNEL_DIR/include/zfs"
|
|||||||
cp --recursive module "$KERNEL_DIR/fs/zfs"
|
cp --recursive module "$KERNEL_DIR/fs/zfs"
|
||||||
cp zfs_config.h "$KERNEL_DIR/include/zfs/"
|
cp zfs_config.h "$KERNEL_DIR/include/zfs/"
|
||||||
|
|
||||||
for MODULE in "${MODULES[@]}"
|
|
||||||
do
|
|
||||||
sed -i.bak '/obj =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile"
|
|
||||||
sed -i.bak '/src =/d' "$KERNEL_DIR/fs/zfs/$MODULE/Makefile"
|
|
||||||
done
|
|
||||||
|
|
||||||
cat > "$KERNEL_DIR/fs/zfs/Kconfig" <<"EOF"
|
cat > "$KERNEL_DIR/fs/zfs/Kconfig" <<"EOF"
|
||||||
config ZFS
|
config ZFS
|
||||||
tristate "ZFS filesystem support"
|
tristate "ZFS filesystem support"
|
||||||
@ -65,27 +44,6 @@ config ZFS
|
|||||||
If unsure, say N.
|
If unsure, say N.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
{
|
|
||||||
cat <<-"EOF"
|
|
||||||
ZFS_MODULE_CFLAGS = -I$(srctree)/include/zfs
|
|
||||||
ZFS_MODULE_CFLAGS += -I$(srctree)/include/zfs/os/linux/spl
|
|
||||||
ZFS_MODULE_CFLAGS += -I$(srctree)/include/zfs/os/linux/zfs
|
|
||||||
ZFS_MODULE_CFLAGS += -I$(srctree)/include/zfs/os/linux/kernel
|
|
||||||
ZFS_MODULE_CFLAGS += -include $(srctree)/include/zfs/zfs_config.h
|
|
||||||
ZFS_MODULE_CFLAGS += -std=gnu99 -Wno-declaration-after-statement
|
|
||||||
ZFS_MODULE_CPPFLAGS = -D_KERNEL
|
|
||||||
ZFS_MODULE_CPPFLAGS += -UDEBUG -DNDEBUG
|
|
||||||
export ZFS_MODULE_CFLAGS ZFS_MODULE_CPPFLAGS
|
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) :=
|
|
||||||
EOF
|
|
||||||
|
|
||||||
for MODULE in "${MODULES[@]}"
|
|
||||||
do
|
|
||||||
echo 'obj-$(CONFIG_ZFS) += ' "$MODULE/"
|
|
||||||
done
|
|
||||||
} > "$KERNEL_DIR/fs/zfs/Kbuild"
|
|
||||||
|
|
||||||
add_after()
|
add_after()
|
||||||
{
|
{
|
||||||
local FILE="$1"
|
local FILE="$1"
|
||||||
|
1
module/.gitignore
vendored
1
module/.gitignore
vendored
@ -9,6 +9,7 @@
|
|||||||
.*.d
|
.*.d
|
||||||
*.mod
|
*.mod
|
||||||
|
|
||||||
|
/Kbuild
|
||||||
/.cache.mk
|
/.cache.mk
|
||||||
/.tmp_versions
|
/.tmp_versions
|
||||||
/Module.markers
|
/Module.markers
|
||||||
|
44
module/Kbuild.in
Normal file
44
module/Kbuild.in
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# When integrated in to a monolithic kernel the spl module must appear
|
||||||
|
# first. This ensures its module initialization function is run before
|
||||||
|
# any of the other module initialization functions which depend on it.
|
||||||
|
ZFS_MODULES += spl/
|
||||||
|
ZFS_MODULES += avl/
|
||||||
|
ZFS_MODULES += icp/
|
||||||
|
ZFS_MODULES += lua/
|
||||||
|
ZFS_MODULES += nvpair/
|
||||||
|
ZFS_MODULES += unicode/
|
||||||
|
ZFS_MODULES += zcommon/
|
||||||
|
ZFS_MODULES += zfs/
|
||||||
|
|
||||||
|
# The rest is only relevant when run by kbuild
|
||||||
|
ifneq ($(KERNELRELEASE),)
|
||||||
|
|
||||||
|
obj-$(CONFIG_ZFS) := $(ZFS_MODULES)
|
||||||
|
|
||||||
|
ZFS_MODULE_CFLAGS += -std=gnu99 -Wno-declaration-after-statement
|
||||||
|
ZFS_MODULE_CFLAGS += @KERNEL_DEBUG_CFLAGS@ @NO_FORMAT_ZERO_LENGTH@
|
||||||
|
|
||||||
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
zfs_include = @abs_top_srcdir@/include
|
||||||
|
ZFS_MODULE_CFLAGS += -include @abs_top_builddir@/zfs_config.h
|
||||||
|
else
|
||||||
|
zfs_include = $(srctree)/include/zfs
|
||||||
|
ZFS_MODULE_CFLAGS += -include $(zfs_include)/zfs_config.h
|
||||||
|
endif
|
||||||
|
|
||||||
|
ZFS_MODULE_CFLAGS += -I$(zfs_include)/os/linux/kernel
|
||||||
|
ZFS_MODULE_CFLAGS += -I$(zfs_include)/os/linux/spl
|
||||||
|
ZFS_MODULE_CFLAGS += -I$(zfs_include)/os/linux/zfs
|
||||||
|
ZFS_MODULE_CFLAGS += -I$(zfs_include)
|
||||||
|
ZFS_MODULE_CPPFLAGS += -D_KERNEL
|
||||||
|
ZFS_MODULE_CPPFLAGS += @KERNEL_DEBUG_CPPFLAGS@
|
||||||
|
|
||||||
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
@CONFIG_QAT_TRUE@ZFS_MODULE_CFLAGS += -I@QAT_SRC@/include
|
||||||
|
@CONFIG_QAT_TRUE@KBUILD_EXTRA_SYMBOLS += @QAT_SYMBOLS@
|
||||||
|
endif
|
||||||
|
|
||||||
|
subdir-asflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
||||||
|
subdir-ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
||||||
|
|
||||||
|
endif
|
@ -1,31 +1,7 @@
|
|||||||
obj-m += avl/
|
include Kbuild
|
||||||
obj-m += icp/
|
|
||||||
obj-m += lua/
|
|
||||||
obj-m += nvpair/
|
|
||||||
obj-m += spl/
|
|
||||||
obj-m += os/linux/spl/
|
|
||||||
obj-m += unicode/
|
|
||||||
obj-m += zcommon/
|
|
||||||
obj-m += zfs/
|
|
||||||
obj-m += os/linux/zfs/
|
|
||||||
|
|
||||||
INSTALL_MOD_DIR ?= extra
|
INSTALL_MOD_DIR ?= extra
|
||||||
|
|
||||||
ZFS_MODULE_CFLAGS += -std=gnu99 -Wno-declaration-after-statement
|
|
||||||
ZFS_MODULE_CFLAGS += @KERNEL_DEBUG_CFLAGS@ @NO_FORMAT_ZERO_LENGTH@
|
|
||||||
ZFS_MODULE_CFLAGS += -include @abs_top_builddir@/zfs_config.h
|
|
||||||
ZFS_MODULE_CFLAGS += -I@abs_top_srcdir@/include/os/linux/kernel
|
|
||||||
ZFS_MODULE_CFLAGS += -I@abs_top_srcdir@/include/os/linux/spl
|
|
||||||
ZFS_MODULE_CFLAGS += -I@abs_top_srcdir@/include/os/linux/zfs
|
|
||||||
ZFS_MODULE_CFLAGS += -I@abs_top_srcdir@/include
|
|
||||||
ZFS_MODULE_CPPFLAGS += -D_KERNEL
|
|
||||||
ZFS_MODULE_CPPFLAGS += @KERNEL_DEBUG_CPPFLAGS@
|
|
||||||
|
|
||||||
@CONFIG_QAT_TRUE@ZFS_MODULE_CFLAGS += -I@QAT_SRC@/include
|
|
||||||
@CONFIG_QAT_TRUE@KBUILD_EXTRA_SYMBOLS += @QAT_SYMBOLS@
|
|
||||||
|
|
||||||
export ZFS_MODULE_CFLAGS ZFS_MODULE_CPPFLAGS
|
|
||||||
|
|
||||||
SUBDIR_TARGETS = icp lua
|
SUBDIR_TARGETS = icp lua
|
||||||
|
|
||||||
all: modules
|
all: modules
|
||||||
@ -119,7 +95,7 @@ modules_install: modules_install-@ac_system@
|
|||||||
modules_uninstall-Linux:
|
modules_uninstall-Linux:
|
||||||
@# Uninstall the kernel modules
|
@# Uninstall the kernel modules
|
||||||
kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@
|
kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@
|
||||||
list='$(obj-m)'; for objdir in $$list; do \
|
list='$(ZFS_MODULES)'; for objdir in $$list; do \
|
||||||
$(RM) -R $$kmoddir/$(INSTALL_MOD_DIR)/$$objdir; \
|
$(RM) -R $$kmoddir/$(INSTALL_MOD_DIR)/$$objdir; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -129,7 +105,7 @@ modules_uninstall-FreeBSD:
|
|||||||
modules_uninstall: modules_uninstall-@ac_system@
|
modules_uninstall: modules_uninstall-@ac_system@
|
||||||
|
|
||||||
distdir:
|
distdir:
|
||||||
list='$(obj-m)'; for objdir in $$list; do \
|
list='$(ZFS_MODULES)'; for objdir in $$list os/linux/spl os/linux/zfs; do \
|
||||||
(cd @top_srcdir@/module && find $$objdir -name '*.[chS]' | \
|
(cd @top_srcdir@/module && find $$objdir -name '*.[chS]' | \
|
||||||
while read path; do \
|
while read path; do \
|
||||||
mkdir -p @abs_top_builddir@/module/$$distdir/$${path%/*}; \
|
mkdir -p @abs_top_builddir@/module/$$distdir/$${path%/*}; \
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
src = @abs_top_srcdir@/module/avl
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
src = @abs_srcdir@
|
||||||
obj = @abs_builddir@
|
obj = @abs_builddir@
|
||||||
|
endif
|
||||||
|
|
||||||
MODULE := zavl
|
MODULE := zavl
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) := $(MODULE).o
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
||||||
|
|
||||||
ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
|
||||||
|
|
||||||
$(MODULE)-objs += avl.o
|
$(MODULE)-objs += avl.o
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
src = @abs_top_srcdir@/module/icp
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
src = @abs_srcdir@
|
||||||
obj = @abs_builddir@
|
obj = @abs_builddir@
|
||||||
|
icp_include = $(src)/include
|
||||||
|
else
|
||||||
|
icp_include = $(srctree)/$(src)/include
|
||||||
|
endif
|
||||||
|
|
||||||
MODULE := icp
|
MODULE := icp
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) := $(MODULE).o
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
||||||
|
|
||||||
asflags-y := -I@abs_top_srcdir@/module/icp/include
|
asflags-y := -I$(icp_include)
|
||||||
asflags-y += $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
ccflags-y := -I$(icp_include)
|
||||||
ccflags-y := -I@abs_top_srcdir@/module/icp/include
|
|
||||||
ccflags-y += $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
|
||||||
|
|
||||||
$(MODULE)-objs += illumos-crypto.o
|
$(MODULE)-objs += illumos-crypto.o
|
||||||
$(MODULE)-objs += api/kcf_cipher.o
|
$(MODULE)-objs += api/kcf_cipher.o
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
src = @abs_top_srcdir@/module/lua
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
src = @abs_srcdir@
|
||||||
obj = @abs_builddir@
|
obj = @abs_builddir@
|
||||||
|
endif
|
||||||
|
|
||||||
MODULE := zlua
|
MODULE := zlua
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) := $(MODULE).o
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
||||||
|
|
||||||
asflags-y += $(ZFS_MODULE_CFLAGS)
|
ccflags-y := -DLUA_USE_LONGLONG
|
||||||
ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
|
||||||
ccflags-y += -DLUA_USE_LONGLONG
|
|
||||||
|
|
||||||
# Suppress unused but set variable warnings often due to ASSERTs
|
|
||||||
ccflags-y += $(NO_UNUSED_BUT_SET_VARIABLE)
|
|
||||||
|
|
||||||
$(MODULE)-objs += lapi.o
|
$(MODULE)-objs += lapi.o
|
||||||
$(MODULE)-objs += lauxlib.o
|
$(MODULE)-objs += lauxlib.o
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
src = @abs_top_srcdir@/module/nvpair
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
src = @abs_srcdir@
|
||||||
obj = @abs_builddir@
|
obj = @abs_builddir@
|
||||||
|
endif
|
||||||
|
|
||||||
MODULE := znvpair
|
MODULE := znvpair
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) := $(MODULE).o
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
||||||
|
|
||||||
ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
|
||||||
|
|
||||||
$(MODULE)-objs += nvpair.o
|
$(MODULE)-objs += nvpair.o
|
||||||
$(MODULE)-objs += fnvpair.o
|
$(MODULE)-objs += fnvpair.o
|
||||||
$(MODULE)-objs += nvpair_alloc_spl.o
|
$(MODULE)-objs += nvpair_alloc_spl.o
|
||||||
|
@ -1 +0,0 @@
|
|||||||
subdirs-m = linux
|
|
@ -1 +0,0 @@
|
|||||||
subdirs-m = spl zfs
|
|
@ -5,8 +5,6 @@
|
|||||||
# Suppress unused-value warnings in sparc64 architecture headers
|
# Suppress unused-value warnings in sparc64 architecture headers
|
||||||
ccflags-$(CONFIG_SPARC64) += -Wno-unused-value
|
ccflags-$(CONFIG_SPARC64) += -Wno-unused-value
|
||||||
|
|
||||||
ccflags-y += -I@abs_top_srcdir@/module/os/linux/zfs
|
|
||||||
|
|
||||||
$(MODULE)-objs += ../os/linux/zfs/abd_os.o
|
$(MODULE)-objs += ../os/linux/zfs/abd_os.o
|
||||||
$(MODULE)-objs += ../os/linux/zfs/arc_os.o
|
$(MODULE)-objs += ../os/linux/zfs/arc_os.o
|
||||||
$(MODULE)-objs += ../os/linux/zfs/mmp_os.o
|
$(MODULE)-objs += ../os/linux/zfs/mmp_os.o
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
src = @abs_top_srcdir@/module/spl
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
src = @abs_srcdir@
|
||||||
obj = @abs_builddir@
|
obj = @abs_builddir@
|
||||||
|
mfdir = $(obj)
|
||||||
|
else
|
||||||
|
mfdir = $(srctree)/$(src)
|
||||||
|
endif
|
||||||
|
|
||||||
MODULE := spl
|
MODULE := spl
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) := $(MODULE).o
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
||||||
|
|
||||||
ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
include $(mfdir)/../os/linux/spl/Makefile
|
||||||
|
|
||||||
|
|
||||||
-include @abs_top_builddir@/module/os/linux/spl/Makefile
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
src = @abs_top_srcdir@/module/unicode
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
src = @abs_srcdir@
|
||||||
obj = @abs_builddir@
|
obj = @abs_builddir@
|
||||||
|
endif
|
||||||
|
|
||||||
MODULE := zunicode
|
MODULE := zunicode
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) := $(MODULE).o
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
||||||
|
|
||||||
ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
|
||||||
|
|
||||||
$(MODULE)-objs += u8_textprep.o
|
$(MODULE)-objs += u8_textprep.o
|
||||||
$(MODULE)-objs += uconv.o
|
$(MODULE)-objs += uconv.o
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
src = @abs_top_srcdir@/module/zcommon
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
src = @abs_srcdir@
|
||||||
obj = @abs_builddir@
|
obj = @abs_builddir@
|
||||||
target_cpu = @target_cpu@
|
endif
|
||||||
|
|
||||||
MODULE := zcommon
|
MODULE := zcommon
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) := $(MODULE).o
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
||||||
|
|
||||||
ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
|
||||||
|
|
||||||
# Suppress unused-value warnings in sparc64 architecture headers
|
# Suppress unused-value warnings in sparc64 architecture headers
|
||||||
ccflags-$(CONFIG_SPARC64) += -Wno-unused-value
|
ccflags-$(CONFIG_SPARC64) += -Wno-unused-value
|
||||||
|
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
src = @abs_top_srcdir@/module/zfs
|
ifneq ($(KBUILD_EXTMOD),)
|
||||||
|
src = @abs_srcdir@
|
||||||
obj = @abs_builddir@
|
obj = @abs_builddir@
|
||||||
target_cpu = @target_cpu@
|
mfdir = $(obj)
|
||||||
|
else
|
||||||
|
mfdir = $(srctree)/$(src)
|
||||||
|
endif
|
||||||
|
|
||||||
MODULE := zfs
|
MODULE := zfs
|
||||||
|
|
||||||
obj-$(CONFIG_ZFS) := $(MODULE).o
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
||||||
|
|
||||||
ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
|
||||||
|
|
||||||
# Suppress unused but set variable warnings often due to ASSERTs
|
|
||||||
ccflags-y += $(NO_UNUSED_BUT_SET_VARIABLE)
|
|
||||||
|
|
||||||
# Suppress unused-value warnings in sparc64 architecture headers
|
# Suppress unused-value warnings in sparc64 architecture headers
|
||||||
ccflags-$(CONFIG_SPARC64) += -Wno-unused-value
|
ccflags-$(CONFIG_SPARC64) += -Wno-unused-value
|
||||||
|
|
||||||
@ -150,4 +149,4 @@ ifeq ($(CONFIG_ALTIVEC),y)
|
|||||||
$(obj)/vdev_raidz_math_powerpc_altivec.o: c_flags += -maltivec
|
$(obj)/vdev_raidz_math_powerpc_altivec.o: c_flags += -maltivec
|
||||||
endif
|
endif
|
||||||
|
|
||||||
-include @abs_top_builddir@/module/os/linux/zfs/Makefile
|
include $(mfdir)/../os/linux/zfs/Makefile
|
||||||
|
Loading…
Reference in New Issue
Block a user