-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenZFS restructuring - move platform specific headers
Move platform specific Linux headers under include/os/linux/. Update the build system accordingly to detect the platform. This lays some of the initial groundwork to supporting building for other platforms. As part of this change it was necessary to create both a user and kernel space sys/simd.h header which can be included in either context. No functional change, the source has been refactored and the relevant #include's updated. Reviewed-by: Jorgen Lundman <[email protected]> Reviewed-by: Igor Kozhukhov <[email protected]> Signed-off-by: Matthew Macy <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #9198
- Loading branch information
1 parent
d02186e
commit 006e9a4
Showing
116 changed files
with
699 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
dnl # | ||
dnl # Set the target system | ||
dnl # | ||
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_SYSTEM], [ | ||
AC_MSG_CHECKING([for system type ($host_os)]) | ||
case $host_os in | ||
*linux*) | ||
AC_DEFINE([SYSTEM_LINUX], [1], | ||
[True if ZFS is to be compiled for a Linux system]) | ||
ac_system="Linux" | ||
;; | ||
*freebsd*) | ||
AC_DEFINE([SYSTEM_FREEBSD], [1], | ||
[True if ZFS is to be compiled for a FreeBSD system]) | ||
ac_system="FreeBSD" | ||
;; | ||
*) | ||
ac_system="unknown" | ||
;; | ||
esac | ||
AC_MSG_RESULT([$ac_system]) | ||
AC_SUBST([ac_system]) | ||
AM_CONDITIONAL([BUILD_LINUX], [test "x$ac_system" = "xLinux"]) | ||
AM_CONDITIONAL([BUILD_FREEBSD], [test "x$ac_system" = "xFreeBSD"]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/zfs_gitrev.h | ||
/spl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SUBDIRS = linux spl sys | ||
SUBDIRS = sys os | ||
|
||
COMMON_H = \ | ||
$(top_srcdir)/include/zfeature_common.h \ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if BUILD_LINUX | ||
SUBDIRS = linux | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBDIRS = kernel spl zfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBDIRS = linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
COMMON_H = | ||
|
||
KERNEL_H = \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/dcache_compat.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/xattr_compat.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/vfs_compat.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/blkdev_compat.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/utsname_compat.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/kmap_compat.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/simd.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/simd_x86.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/simd_aarch64.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/mod_compat.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/page_compat.h \ | ||
$(top_srcdir)/include/os/linux/kernel/linux/compiler_compat.h | ||
|
||
USER_H = | ||
|
||
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H) | ||
|
||
if CONFIG_USER | ||
libzfsdir = $(includedir)/libzfs/linux | ||
libzfs_HEADERS = $(COMMON_H) $(USER_H) | ||
endif | ||
|
||
if CONFIG_KERNEL | ||
kerneldir = @prefix@/src/zfs-$(VERSION)/include/linux | ||
kernel_HEADERS = $(COMMON_H) $(KERNEL_H) | ||
endif |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.