forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2378: turbo/issue-1082 - Support parallel build trees (VPATH builds)
Support 'out of tree' builds by adding the 'src' and 'obj' variables and removing the absolute path to the build results to the Makefile.in files below the module directory. Closes: openzfs#1082 For VPATH builds (addition for openzfs#1082): * Add '../../spl' to spl source directory list to search * Do a find in the found spl source for spl_config.h
- Loading branch information
Showing
23 changed files
with
98 additions
and
73 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
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,2 +1,2 @@ | ||
bin_SCRIPTS = arcstat.py | ||
bin_SCRIPTS = $(top_srcdir)/cmd/arcstat/arcstat.py | ||
EXTRA_DIST = $(bin_SCRIPTS) |
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,2 +1,2 @@ | ||
bin_SCRIPTS = dbufstat.py | ||
bin_SCRIPTS = $(top_srcdir)/cmd/dbufstat/dbufstat.py | ||
EXTRA_DIST = $(bin_SCRIPTS) |
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 @@ | ||
dist_sbin_SCRIPTS = fsck.zfs | ||
dist_sbin_SCRIPTS = $(top_srcdir)/cmd/fsck_zfs/fsck.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 |
---|---|---|
@@ -1 +1 @@ | ||
dist_udev_SCRIPTS = vdev_id | ||
dist_udev_SCRIPTS = $(top_srcdir)/cmd/vdev_id/vdev_id |
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,9 +1,8 @@ | ||
pkgdracutdir = $(dracutdir)/modules.d/90zfs | ||
pkgdracut_SCRIPTS = \ | ||
$(top_srcdir)/dracut/90zfs/export-zfs.sh \ | ||
$(top_srcdir)/dracut/90zfs/module-setup.sh \ | ||
$(top_srcdir)/dracut/90zfs/mount-zfs.sh \ | ||
$(top_srcdir)/dracut/90zfs/parse-zfs.sh | ||
module-setup.sh \ | ||
mount-zfs.sh \ | ||
parse-zfs.sh | ||
|
||
EXTRA_DIST = \ | ||
$(top_srcdir)/dracut/90zfs/export-zfs.sh.in \ | ||
|
@@ -17,7 +16,7 @@ $(pkgdracut_SCRIPTS): | |
-e 's,@udevdir\@,$(udevdir),g' \ | ||
-e 's,@udevruledir\@,$(udevruledir),g' \ | ||
-e 's,@sysconfdir\@,$(sysconfdir),g' \ | ||
'[email protected]' >'$@' | ||
"$(abs_top_srcdir)/dracut/90zfs/$@.in' >'$@' | ||
|
||
distclean-local:: | ||
-$(RM) $(pkgdracut_SCRIPTS) |
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,13 +1,13 @@ | ||
modulesload_DATA = \ | ||
$(top_srcdir)/etc/modules-load.d/zfs.conf | ||
zfs.conf | ||
|
||
EXTRA_DIST = \ | ||
$(top_srcdir)/etc/modules-load.d/zfs.conf.in | ||
|
||
$(modulesload_DATA): | ||
-$(SED) \ | ||
-e '' \ | ||
'$@.in' >'$@' | ||
"$(top_srcdir)/etc/modules-load.d/$@.in" >'$@' | ||
|
||
distclean-local:: | ||
-$(RM) $(modulesload_DATA) |
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,9 +1,9 @@ | ||
pkgsysconfdir = $(sysconfdir)/zfs | ||
|
||
pkgsysconf_DATA = \ | ||
vdev_id.conf.alias.example \ | ||
vdev_id.conf.sas_direct.example \ | ||
vdev_id.conf.sas_switch.example \ | ||
vdev_id.conf.multipath.example | ||
$(top_srcdir)/etc/zfs/vdev_id.conf.alias.example \ | ||
$(top_srcdir)/etc/zfs/vdev_id.conf.sas_direct.example \ | ||
$(top_srcdir)/etc/zfs/vdev_id.conf.sas_switch.example \ | ||
$(top_srcdir)/etc/zfs/vdev_id.conf.multipath.example | ||
|
||
EXTRA_DIST = $(pkgsysconf_DATA) |
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 @@ | ||
noinst_HEADERS = $(top_srcdir)/lib/libspl/asm-x86_64/*.S | ||
noinst_HEADERS = \ | ||
$(top_srcdir)/lib/libspl/asm-x86_64/*.S |
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,3 +1,3 @@ | ||
libspldir = $(includedir)/libspl/ia32/sys | ||
libspl_HEADERS = \ | ||
$(top_srcdir)/lib/libspl/include/ia32/sys/asm_linkage.h | ||
$(top_srcdir)/lib/libspl/include/ia32/sys/asm_linkage.h |
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,5 +1,10 @@ | ||
dist_man_MANS = zhack.1 zpios.1 ztest.1 | ||
EXTRA_DIST = cstyle.1 | ||
dist_man_MANS = \ | ||
$(top_srcdir)/man/man1/zhack.1 \ | ||
$(top_srcdir)/man/man1/zpios.1 \ | ||
$(top_srcdir)/man/man1/ztest.1 | ||
|
||
EXTRA_DIST = \ | ||
$(top_srcdir)/man/man1/cstyle.1 | ||
|
||
install-data-local: | ||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(mandir)/man1" |
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,8 @@ | ||
dist_man_MANS = vdev_id.conf.5 zpool-features.5 zfs-module-parameters.5 zfs-events.5 | ||
dist_man_MANS = \ | ||
$(top_srcdir)/man/man5/vdev_id.conf.5 \ | ||
$(top_srcdir)/man/man5/zpool-features.5 \ | ||
$(top_srcdir)/man/man5/zfs-module-parameters.5 \ | ||
$(top_srcdir)/man/man5/zfs-events.5 | ||
|
||
install-data-local: | ||
$(INSTALL) -d -m 0755 "$(DESTDIR)$(mandir)/man5" |
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,7 +1,10 @@ | ||
src = @abs_top_srcdir@/module/avl | ||
obj = @abs_builddir@ | ||
|
||
MODULE := zavl | ||
|
||
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@ | ||
|
||
obj-$(CONFIG_ZFS) := $(MODULE).o | ||
|
||
$(MODULE)-objs += @top_srcdir@/module/avl/avl.o | ||
$(MODULE)-objs += avl.o |
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,10 +1,13 @@ | ||
src = @abs_top_srcdir@/module/nvpair | ||
obj = @abs_builddir@ | ||
|
||
MODULE := znvpair | ||
|
||
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@ | ||
|
||
obj-$(CONFIG_ZFS) := $(MODULE).o | ||
|
||
$(MODULE)-objs += @top_srcdir@/module/nvpair/nvpair.o | ||
$(MODULE)-objs += @top_srcdir@/module/nvpair/fnvpair.o | ||
$(MODULE)-objs += @top_srcdir@/module/nvpair/nvpair_alloc_spl.o | ||
$(MODULE)-objs += @top_srcdir@/module/nvpair/nvpair_alloc_fixed.o | ||
$(MODULE)-objs += nvpair.o | ||
$(MODULE)-objs += fnvpair.o | ||
$(MODULE)-objs += nvpair_alloc_spl.o | ||
$(MODULE)-objs += nvpair_alloc_fixed.o |
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,8 +1,11 @@ | ||
src = @abs_top_srcdir@/module/unicode | ||
obj = @abs_builddir@ | ||
|
||
MODULE := zunicode | ||
|
||
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@ | ||
|
||
obj-$(CONFIG_ZFS) := $(MODULE).o | ||
|
||
$(MODULE)-objs += @top_srcdir@/module/unicode/u8_textprep.o | ||
$(MODULE)-objs += @top_srcdir@/module/unicode/uconv.o | ||
$(MODULE)-objs += u8_textprep.o | ||
$(MODULE)-objs += uconv.o |
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,14 +1,17 @@ | ||
src = @abs_top_srcdir@/module/zcommon | ||
obj = @abs_builddir@ | ||
|
||
MODULE := zcommon | ||
|
||
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@ | ||
|
||
obj-$(CONFIG_ZFS) := $(MODULE).o | ||
|
||
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_deleg.o | ||
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_prop.o | ||
$(MODULE)-objs += @top_srcdir@/module/zcommon/zprop_common.o | ||
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_namecheck.o | ||
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_comutil.o | ||
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_fletcher.o | ||
$(MODULE)-objs += @top_srcdir@/module/zcommon/zfs_uio.o | ||
$(MODULE)-objs += @top_srcdir@/module/zcommon/zpool_prop.o | ||
$(MODULE)-objs += zfs_deleg.o | ||
$(MODULE)-objs += zfs_prop.o | ||
$(MODULE)-objs += zprop_common.o | ||
$(MODULE)-objs += zfs_namecheck.o | ||
$(MODULE)-objs += zfs_comutil.o | ||
$(MODULE)-objs += zfs_fletcher.o | ||
$(MODULE)-objs += zfs_uio.o | ||
$(MODULE)-objs += zpool_prop.o |
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,7 +1,10 @@ | ||
src = @abs_top_srcdir@/module/zpios | ||
obj = @abs_builddir@ | ||
|
||
MODULE := zpios | ||
|
||
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@ | ||
|
||
obj-$(CONFIG_ZFS) := $(MODULE).o | ||
|
||
$(MODULE)-objs += @top_srcdir@/module/zpios/pios.o | ||
$(MODULE)-objs += pios.o |
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