Merge commit 'refs/top-bases/linux-zfs-branch' into linux-zfs-branch
This commit is contained in:
commit
1fa4bbef05
|
@ -9,10 +9,11 @@ endif
|
||||||
SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
|
SUBDIRS = $(USER_DIR) $(KERNEL_DIR)
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign dist-zip
|
AUTOMAKE_OPTIONS = foreign dist-zip
|
||||||
EXTRA_DIST = autogen.sh zfs.spec.in zfs-modules.spec.in
|
EXTRA_DIST = autogen.sh config/config.awk
|
||||||
|
EXTRA_DIST += zfs.spec.in zfs-modules.spec.in
|
||||||
EXTRA_DIST += META DISCLAIMER GIT
|
EXTRA_DIST += META DISCLAIMER GIT
|
||||||
EXTRA_DIST += OPENSOLARIS.LICENSE ZFS.RELEASE
|
EXTRA_DIST += OPENSOLARIS.LICENSE ZFS.RELEASE
|
||||||
noinst_HEADERS = zfs_config.h zfs_unconfig.h
|
noinst_HEADERS = zfs_config.h
|
||||||
|
|
||||||
distclean-local::
|
distclean-local::
|
||||||
-$(RM) -R autom4te*.cache
|
-$(RM) -R autom4te*.cache
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
DEFAULT_INCLUDES = -I${top_srcdir}
|
DEFAULT_INCLUDES = -include ${top_srcdir}/zfs_config.h
|
||||||
|
|
||||||
# FIXME: Add -Wshadow once everything is working
|
# FIXME: Add -Wshadow once everything is working
|
||||||
AM_CFLAGS = -Wall -Wstrict-prototypes -fno-strict-aliasing -Werror
|
AM_CFLAGS = -Wall -Wstrict-prototypes -fno-strict-aliasing -Werror
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Remove default preprocessor define's from config.h
|
||||||
|
# PACKAGE
|
||||||
|
# PACKAGE_BUGREPORT
|
||||||
|
# PACKAGE_NAME
|
||||||
|
# PACKAGE_STRING
|
||||||
|
# PACKAGE_TARNAME
|
||||||
|
# PACKAGE_VERSION
|
||||||
|
# STDC_HEADERS
|
||||||
|
# VERSION
|
||||||
|
|
||||||
|
BEGIN { RS = "" ; FS = "\n" } \
|
||||||
|
!/.#define PACKAGE./ && \
|
||||||
|
!/.#define VERSION./ && \
|
||||||
|
!/.#define STDC_HEADERS./ \
|
||||||
|
{ print $0"\n" }
|
|
@ -23,15 +23,13 @@ AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [
|
||||||
ZFS_AC_KERNEL_RQ_IS_SYNC
|
ZFS_AC_KERNEL_RQ_IS_SYNC
|
||||||
ZFS_AC_KERNEL_RQ_FOR_EACH_SEGMENT
|
ZFS_AC_KERNEL_RQ_FOR_EACH_SEGMENT
|
||||||
|
|
||||||
dnl # Kernel build make options
|
|
||||||
dnl # KERNELMAKE_PARAMS="V=1" # Enable verbose module build
|
|
||||||
KERNELMAKE_PARAMS=
|
|
||||||
|
|
||||||
dnl # -Wall -fno-strict-aliasing -Wstrict-prototypes and other
|
dnl # -Wall -fno-strict-aliasing -Wstrict-prototypes and other
|
||||||
dnl # compiler options are added by the kernel build system.
|
dnl # compiler options are added by the kernel build system.
|
||||||
KERNELCPPFLAGS="$KERNELCPPFLAGS -Werror -DHAVE_SPL -D_KERNEL"
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -Werror -DHAVE_SPL -D_KERNEL"
|
||||||
KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
|
||||||
KERNELCPPFLAGS="$KERNELCPPFLAGS -I$TOPDIR -I$SPL -I$SPL/include"
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -I$SPL/include"
|
||||||
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -include $SPL/spl_config.h"
|
||||||
|
KERNELCPPFLAGS="$KERNELCPPFLAGS -include $TOPDIR/zfs_config.h"
|
||||||
|
|
||||||
if test "$LINUX_OBJ" != "$LINUX"; then
|
if test "$LINUX_OBJ" != "$LINUX"; then
|
||||||
KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
|
KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
|
||||||
|
|
|
@ -35,10 +35,12 @@ AC_LANG(C)
|
||||||
ZFS_AC_META
|
ZFS_AC_META
|
||||||
AC_CONFIG_AUX_DIR([config])
|
AC_CONFIG_AUX_DIR([config])
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
AM_INIT_AUTOMAKE([$ZFS_META_NAME], [$ZFS_META_VERSION])
|
|
||||||
AC_CONFIG_HEADERS([zfs_config.h])
|
|
||||||
AH_BOTTOM([#include <zfs_unconfig.h>])
|
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
AM_INIT_AUTOMAKE([$ZFS_META_NAME], [$ZFS_META_VERSION])
|
||||||
|
AC_CONFIG_HEADERS([zfs_config.h], [
|
||||||
|
(mv zfs_config.h zfs_config.h.tmp &&
|
||||||
|
awk -f config/config.awk zfs_config.h.tmp >zfs_config.h &&
|
||||||
|
rm zfs_config.h.tmp) || exit 1])
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|
|
@ -1033,7 +1033,6 @@ done:
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||||
#include "zfs_config.h"
|
|
||||||
|
|
||||||
static int avl_init(void) { return 0; }
|
static int avl_init(void) { return 0; }
|
||||||
static int avl_fini(void) { return 0; }
|
static int avl_fini(void) { return 0; }
|
||||||
|
|
|
@ -3246,7 +3246,6 @@ nvs_xdr(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||||
#include "zfs_config.h"
|
|
||||||
|
|
||||||
static int nvpair_init(void) { return 0; }
|
static int nvpair_init(void) { return 0; }
|
||||||
static int nvpair_fini(void) { return 0; }
|
static int nvpair_fini(void) { return 0; }
|
||||||
|
|
|
@ -2133,7 +2133,6 @@ u8_textprep_str(char *inarray, size_t *inlen, char *outarray, size_t *outlen,
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||||
#include "zfs_config.h"
|
|
||||||
|
|
||||||
static int unicode_init(void) { return 0; }
|
static int unicode_init(void) { return 0; }
|
||||||
static int unicode_fini(void) { return 0; }
|
static int unicode_fini(void) { return 0; }
|
||||||
|
|
|
@ -534,7 +534,6 @@ zfs_prop_align_right(zfs_prop_t prop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||||
#include "zfs_config.h"
|
|
||||||
|
|
||||||
static int zcommon_init(void) { return 0; }
|
static int zcommon_init(void) { return 0; }
|
||||||
static int zcommon_fini(void) { return 0; }
|
static int zcommon_fini(void) { return 0; }
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
#include <linux/blkdev.h>
|
#include <linux/blkdev.h>
|
||||||
#include <linux/elevator.h>
|
#include <linux/elevator.h>
|
||||||
#include "zfs_config.h"
|
|
||||||
|
|
||||||
#ifndef HAVE_FMODE_T
|
#ifndef HAVE_FMODE_T
|
||||||
typedef unsigned __bitwise__ fmode_t;
|
typedef unsigned __bitwise__ fmode_t;
|
||||||
|
|
|
@ -10,7 +10,6 @@ extern "C" {
|
||||||
#include <sys/ddi.h>
|
#include <sys/ddi.h>
|
||||||
#include <sys/sunldi.h>
|
#include <sys/sunldi.h>
|
||||||
#include <sys/sunddi.h>
|
#include <sys/sunddi.h>
|
||||||
#include <zfs_config.h>
|
|
||||||
|
|
||||||
typedef struct vdev_disk {
|
typedef struct vdev_disk {
|
||||||
ddi_devid_t vd_devid;
|
ddi_devid_t vd_devid;
|
||||||
|
|
|
@ -69,7 +69,6 @@
|
||||||
#include "zfs_namecheck.h"
|
#include "zfs_namecheck.h"
|
||||||
#include "zfs_prop.h"
|
#include "zfs_prop.h"
|
||||||
#include "zfs_deleg.h"
|
#include "zfs_deleg.h"
|
||||||
#include "zfs_config.h"
|
|
||||||
|
|
||||||
extern void zfs_init(void);
|
extern void zfs_init(void);
|
||||||
extern void zfs_fini(void);
|
extern void zfs_fini(void);
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
/*
|
|
||||||
* Undefine these symbols to allow other autoheader enabled packages
|
|
||||||
* to leverage the ZFS configure checks without a header conflict.
|
|
||||||
*/
|
|
||||||
#undef PACKAGE
|
|
||||||
#undef PACKAGE_BUGREPORT
|
|
||||||
#undef PACKAGE_NAME
|
|
||||||
#undef PACKAGE_STRING
|
|
||||||
#undef PACKAGE_TARNAME
|
|
||||||
#undef PACKAGE_VERSION
|
|
||||||
#undef VERSION
|
|
||||||
#undef STDC_HEADERS
|
|
Loading…
Reference in New Issue