From ca3628007827031438195f0fa78b88c6f7a34f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 7 Aug 2017 15:51:41 +0200 Subject: [PATCH] zfs/spl: update to 0.6.5.11-1, switch submodules --- .gitmodules | 9 ++++++--- Makefile | 12 +++++++----- submodules/spl-module | 1 + submodules/zfs | 1 - submodules/zfs-module | 1 + 5 files changed, 15 insertions(+), 9 deletions(-) create mode 160000 submodules/spl-module delete mode 160000 submodules/zfs create mode 160000 submodules/zfs-module diff --git a/.gitmodules b/.gitmodules index 618de8d..ce8601f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,9 @@ [submodule "submodules/ubuntu-zesty"] path = submodules/ubuntu-zesty url = ../mirror_ubuntu-zesty-kernel -[submodule "submodules/zfs"] - path = submodules/zfs - url = ../zfsonlinux +[submodule "submodules/zfs-module"] + path = submodules/zfs-module + url = ../mirror_zfs-debian +[submodule "submodules/spl-module"] + path = submodules/spl-module + url = ../mirror_spl-debian diff --git a/Makefile b/Makefile index abc4e79..744aee3 100644 --- a/Makefile +++ b/Makefile @@ -45,9 +45,9 @@ IXGBEDIR=ixgbe-5.0.4 IXGBESRC=${IXGBEDIR}.tar.gz SPLDIR=pkg-spl -SPLSRC=submodules/zfs/pkg-spl.tar.gz +SPLSRC=submodules/spl-module ZFSDIR=pkg-zfs -ZFSSRC=submodules/zfs/pkg-zfs.tar.gz +ZFSSRC=submodules/zfs-module ZFS_KO=zfs.ko ZFS_KO_REST=zavl.ko znvpair.ko zunicode.ko zcommon.ko zpios.ko ZFS_MODULES=$(ZFS_KO) $(ZFS_KO_REST) @@ -282,7 +282,7 @@ ixgbe.ko ixgbe: .compile_mark ${IXGBESRC} $(SPL_KO_REST): $(SPL_KO) $(SPL_KO): .compile_mark ${SPLSRC} rm -rf ${SPLDIR} - tar xf ${SPLSRC} + rsync -ra ${SPLSRC}/ ${SPLDIR} [ ! -e /lib/modules/${KVNAME}/build ] || (echo "please remove /lib/modules/${KVNAME}/build" && false) cd ${SPLDIR}; ./autogen.sh cd ${SPLDIR}; ./configure --with-config=kernel --with-linux=${TOP}/${KERNEL_SRC} --with-linux-obj=${TOP}/${KERNEL_SRC} @@ -293,7 +293,7 @@ $(SPL_KO): .compile_mark ${SPLSRC} $(ZFS_KO_REST): $(ZFS_KO) $(ZFS_KO): .compile_mark ${ZFSSRC} rm -rf ${ZFSDIR} - tar xf ${ZFSSRC} + rsync -ra ${ZFSSRC}/ ${ZFSDIR} [ ! -e /lib/modules/${KVNAME}/build ] || (echo "please remove /lib/modules/${KVNAME}/build" && false) cd ${ZFSDIR}; ./autogen.sh cd ${ZFSDIR}; ./configure --with-spl=${TOP}/${SPLDIR} --with-spl-obj=${TOP}/${SPLDIR} --with-config=kernel --with-linux=${TOP}/${KERNEL_SRC} --with-linux-obj=${TOP}/${KERNEL_SRC} @@ -350,8 +350,10 @@ update_modules: submodules # make sure submodules were initialized .PHONY: submodules -submodules ${SPLSRC} ${ZFSSRC}: +submodules: test -f "${KERNEL_SRC_SUBMODULE}/README" || git submodule update --init + test -f "${ZFSSRC}/debian/changelog" || git submodule update --init + test -f "${SPLSRC}/debian/changelog" || git submodule update --init .PHONY: clean diff --git a/submodules/spl-module b/submodules/spl-module new file mode 160000 index 0000000..b635835 --- /dev/null +++ b/submodules/spl-module @@ -0,0 +1 @@ +Subproject commit b6358351cca47024ffb421bf986f2a949608188e diff --git a/submodules/zfs b/submodules/zfs deleted file mode 160000 index 1e88a70..0000000 --- a/submodules/zfs +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1e88a708021d04beec91c3f2c6c8be9a12ca7677 diff --git a/submodules/zfs-module b/submodules/zfs-module new file mode 160000 index 0000000..a540f8d --- /dev/null +++ b/submodules/zfs-module @@ -0,0 +1 @@ +Subproject commit a540f8d7eff8fa1d79909c4f2e8a3a03535ede74