@@ -62,6 +62,7 @@ MAKELOG
/e2fsprogs-libs/lib/blkid/blkid.h
/e2fsprogs-libs/lib/uuid/uuid.h
/fio/
+/keyutils/
/popt/.deps/
/popt/Doxyfile
/popt/Makefile
@@ -32,6 +32,10 @@ be free to make local changes or update it with "git pull" as desired.
the fio tree have caused test regressions in the past, so it may be
preferable to let things be as far as the fio repo is concerned.)
+The build also supports some optional repositories which are only
+included when their URLs are uncommented in the config file; see the
+config file for a full list.
+
## Installing the necessary packages to build xfstests
In order to build xfstests, a number of prerequisite packages are
@@ -3,6 +3,7 @@
#
REPOS = fio \
+ keyutils \
quota \
stress-ng \
xfsprogs-dev \
@@ -24,6 +24,7 @@ case "$CROSS_COMPILE" in
SKIP_QUOTA=yes
SKIP_FIO=yes
SKIP_DBENCH=yes
+ SKIP_KEYUTILS=yes
;;
esac
@@ -43,13 +44,13 @@ function set_skip_all () {
SKIP_XFSTESTS=yes
SKIP_QUOTA=yes
SKIP_KVM_UTILS=yes
+ SKIP_KEYUTILS=yes
SKIP_STRESS_NG=yes
}
-if test ! -d stress-ng
-then
- SKIP_STRESS_NG=yes
-fi
+# Optional components
+[ -d keyutils ] || SKIP_KEYUTILS=yes
+[ -d stress-ng ] || SKIP_STRESS_NG=yes
while [ "$1" != "" ]; do
@@ -88,6 +89,10 @@ while [ "$1" != "" ]; do
set_skip_all
unset SKIP_FIO
;;
+ --keyutils-only)
+ set_skip_all
+ unset SKIP_KEYUTILS
+ ;;
--quota-only)
set_skip_all
unset SKIP_QUOTA
@@ -182,6 +187,21 @@ if test -z "$SKIP_AIO" ; then
rm $DESTDIR/lib/libaio.so*
fi
+if test -z "$SKIP_KEYUTILS" ; then
+ build_start "keyutils"
+ (cd keyutils ;
+ ver=$(git describe --always --dirty); echo "keyutils $ver ($(git log -1 --pretty=%cD))" > ../keyutils.ver ;
+
+ # For now we only care about keyctl, not libkeyutils. Therefore, specify
+ # NO_SOLIB=1 so that libkeyutils is only built as a static library. Then
+ # keyctl will be statically linked to it, and we won't have to install
+ # libkeyutils.so.
+ make $J NO_SOLIB=1 CFLAGS="$LCF" LDFLAGS="$EXEC_LDFLAGS" keyctl ;
+
+ install -D -m 0755 keyctl $DESTDIR/bin/keyctl ;
+ )
+fi
+
if test -z "$SKIP_STRESS_NG" ; then
build_start "stress-ng"
mkdir -p $DESTDIR/lib
@@ -7,6 +7,11 @@ XFSPROGS_GIT=git://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git
FIO_GIT=git://git.kernel.dk/fio.git
QUOTA_GIT=git://git.kernel.org/pub/scm/utils/quota/quota-tools.git
+# Optional repositories, uncomment only if needed
+#
+# KEYUTILS_GIT=git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git
+# STRESS_NG_GIT=https://github.com/ColinIanKing/stress-ng
+
FIO_COMMIT=fio-2.19
QUOTA_COMMIT=e0b6335
XFSPROGS_COMMIT=v4.11.0-rc1
@@ -107,6 +107,7 @@ setup_repo xfsprogs-dev XFSPROGS_GIT XFSPROGS_COMMIT true
setup_repo xfstests-dev XFSTESTS_GIT XFSTESTS_COMMIT true
# optional repositories
+setup_repo keyutils KEYUTILS_GIT KEYUTILS_COMMIT false
setup_repo stress-ng STRESS_NG_GIT STRESS_NG_COMMIT false
# Make sure acl doesn't try regenerate these files because of the