mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-26 07:55:01 +00:00
9f0a21e641
Add the FreeBSD platform code to the OpenZFS repository. As of this commit the source can be compiled and tested on FreeBSD 11 and 12. Subsequent commits are now required to compile on FreeBSD and Linux. Additionally, they must pass the ZFS Test Suite on FreeBSD which is being run by the CI. As of this commit 1230 tests pass on FreeBSD and there are no unexpected failures. Reviewed-by: Sean Eric Fagan <sef@ixsystems.com> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Co-authored-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #898 Closes #8987
42 lines
855 B
Plaintext
42 lines
855 B
Plaintext
dnl #
|
|
dnl # Set the target cpu architecture. This allows the
|
|
dnl # following syntax to be used in a Makefile.am.
|
|
dnl #
|
|
dnl # ifeq ($(TARGET_CPU),x86_64)
|
|
dnl # ...
|
|
dnl # endif
|
|
dnl #
|
|
dnl # if TARGET_CPU_POWERPC
|
|
dnl # ...
|
|
dnl # else
|
|
dnl # ...
|
|
dnl # endif
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_ARCH], [
|
|
case $target_cpu in
|
|
i?86)
|
|
TARGET_CPU=i386
|
|
;;
|
|
amd64|x86_64)
|
|
TARGET_CPU=x86_64
|
|
;;
|
|
powerpc*)
|
|
TARGET_CPU=powerpc
|
|
;;
|
|
aarch64*)
|
|
TARGET_CPU=aarch64
|
|
;;
|
|
sparc64)
|
|
TARGET_CPU=sparc64
|
|
;;
|
|
esac
|
|
|
|
AC_SUBST(TARGET_CPU)
|
|
|
|
AM_CONDITIONAL([TARGET_CPU_I386], test $TARGET_CPU = i386)
|
|
AM_CONDITIONAL([TARGET_CPU_X86_64], test $TARGET_CPU = x86_64)
|
|
AM_CONDITIONAL([TARGET_CPU_POWERPC], test $TARGET_CPU = powerpc)
|
|
AM_CONDITIONAL([TARGET_CPU_AARCH64], test $TARGET_CPU = aarch64)
|
|
AM_CONDITIONAL([TARGET_CPU_SPARC64], test $TARGET_CPU = sparc64)
|
|
])
|