]> granicus.if.org Git - zfs/blob - zfs-script-config.sh.in
Remove zfs_parse_bootfs() support
[zfs] / zfs-script-config.sh.in
1 #!/bin/bash
2
3 KERNELSRC=@LINUX@
4 KERNELBUILD=@LINUX_OBJ@
5 KERNELSRCVER=@LINUX_VERSION@
6 KERNELMOD=/lib/modules/${KERNELSRCVER}/kernel
7
8 SPLSRC=@SPL@
9 SPLBUILD=@SPL_OBJ@
10 SPLSRCVER=@SPL_VERSION@
11
12 SRCDIR=@abs_top_srcdir@
13 BUILDDIR=@abs_top_builddir@
14 LIBDIR=${BUILDDIR}/lib
15 CMDDIR=${BUILDDIR}/cmd
16 MODDIR=${BUILDDIR}/module
17 SCRIPTDIR=${BUILDDIR}/scripts
18 ZPOOLDIR=${BUILDDIR}/scripts/zpool-config
19 ZPIOSDIR=${BUILDDIR}/scripts/zpios-test
20 ZPIOSPROFILEDIR=${BUILDDIR}/scripts/zpios-profile
21 ETCDIR=${SRCDIR}/etc
22
23 ZDB=${CMDDIR}/zdb/zdb
24 ZFS=${CMDDIR}/zfs/zfs
25 ZINJECT=${CMDDIR}/zinject/zinject
26 ZPOOL=${CMDDIR}/zpool/zpool
27 ZPOOL_ID=${CMDDIR}/zpool_id/zpool_id
28 ZTEST=${CMDDIR}/ztest/ztest
29 ZPIOS=${CMDDIR}/zpios/zpios
30
31 COMMON_SH=${SCRIPTDIR}/common.sh
32 ZFS_SH=${SCRIPTDIR}/zfs.sh
33 ZPOOL_CREATE_SH=${SCRIPTDIR}/zpool-create.sh
34 ZPIOS_SH=${SCRIPTDIR}/zpios.sh
35 ZPIOS_SURVEY_SH=${SCRIPTDIR}/zpios-survey.sh
36
37 INTREE=1
38 LDMOD=/sbin/insmod
39
40 KERNEL_MODULES=(                                      \
41         ${KERNELMOD}/lib/zlib_deflate/zlib_deflate.ko \
42         ${KERNELMOD}/lib/zlib_inflate/zlib_inflate.ko \
43 )
44
45 SPL_MODULES=(                                         \
46         ${SPLBUILD}/module/spl/spl.ko                 \
47         ${SPLBUILD}/module/splat/splat.ko             \
48 )
49
50 ZFS_MODULES=(                                         \
51         ${MODDIR}/avl/zavl.ko                         \
52         ${MODDIR}/nvpair/znvpair.ko                   \
53         ${MODDIR}/unicode/zunicode.ko                 \
54         ${MODDIR}/zcommon/zcommon.ko                  \
55         ${MODDIR}/zfs/zfs.ko                          \
56 )
57
58 ZPIOS_MODULES=(                                       \
59         ${MODDIR}/zpios/zpios.ko                      \
60 )
61
62 MODULES=(                                             \
63         ${SPL_MODULES[*]}                             \
64         ${ZFS_MODULES[*]}                             \
65 )