Skip to content

Commit

Permalink
linux-4.9.68: Add spl/zfs modules
Browse files Browse the repository at this point in the history
Add kernel modules required for the ZFS filesystem.

http://zfsonlinux.org/

Patch by Thomas Kreitler
  • Loading branch information
donald committed Dec 15, 2017
1 parent 8c223e5 commit 2a2f1ad
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions linux-4.9.68-193.bee
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,49 @@ build_aacraid_driver_update_and_do_depmod() {
popd
}

plaininstall_for_modules() {
local dir=$1
local tar=$2
local url=$3
local xflags=$4
(
test -e $tar || wget $url
test -d $dir || tar xvf $tar
cd $dir
./configure \
--prefix=/usr \
--with-linux=${S} \
--with-linux-obj=${B} \
$xflags
cd module
# depmod call fails when build as user, and would eventually mess up system dirs when run as root
sed -i -e 's/depmod/echo skipping depmod/' Makefile
make ${BEE_MAKEFLAGS}
make modules_install INSTALL_MOD_PATH=${D}
)
}

build_spl_zfs_extra_modules_and_do_depmod() {
pushd .

echo "spl/zfs"

mkdir -pv ${B}/spl_zfs_extra
cd ${B}/spl_zfs_extra

plaininstall_for_modules spl-0.7.3 spl-0.7.3.tar.gz \
https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.3/spl-0.7.3.tar.gz

plaininstall_for_modules zfs-0.7.3 zfs-0.7.3.tar.gz \
https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.3/zfs-0.7.3.tar.gz \
"--with-spl=${B}/spl_zfs_extra/spl-0.7.3"

cd ${D}/lib/modules/${FULLKERNELVERSION}
depmod -a -b ${D} ${FULLKERNELVERSION}

popd
}

mee_patch() {
echo "PATCH $@"
bee_patch $@
Expand Down Expand Up @@ -851,6 +894,7 @@ mee_install() {
# make firmware_install INSTALL_MOD_PATH=${D}

build_aacraid_driver_update_and_do_depmod
build_spl_zfs_extra_modules_and_do_depmod

rm -v ${D}/lib/modules/${FULLKERNELVERSION}/{source,build}

Expand Down

0 comments on commit 2a2f1ad

Please sign in to comment.