Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
make: support creation user mode only rpms without linux kernel sources
Browse files Browse the repository at this point in the history
Not able to build user mode only rpms when linux sources are there, due
to configure.ac not using "with_user_mode_only" instead of "with-user-mode-only"
variable.

"./configure --user-mode-only ; make rpms"
builds user space only rpms without the need of linux kernel and Lnet source
files in the system.

Signed-off-by: Madhavrao Vemuri <madhav.vemuri@seagate.com>
  • Loading branch information
madhavemuri committed Dec 13, 2021
1 parent b476756 commit 37ccf16
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -533,15 +533,15 @@ AS_IF([test "$CASS_DRV_V22" = 1],
AC_DEFINE([IDX_CASS_DRV_V22]))

# user-mode {{{3
AC_ARG_WITH([user-mode],
AC_ARG_WITH([user-mode-only],
[AS_HELP_STRING([--with-user-mode-only],
[Build motr with user space only])],
[with-user-mode-only=yes;
[with_user_mode_only=yes;
with_lustre=no;
with-default-transport=LF],
[with-user-mode-only=no]
with_default_transport=LF],
[with_user_mode_only=no]
)
AS_IF([test "x$with-user-mode-only" = xyes],
AS_IF([test "x$with_user_mode_only" = xyes],
[AC_DEFINE([ENABLE_USER_MODE_ONLY])])


Expand All @@ -553,7 +553,7 @@ AC_ARG_WITH([linux],
[LINUX=$with_linux; LINUX_OBJ=$LINUX],
[LINUX=/lib/modules/`uname -r`; LINUX_OBJ=$LINUX/build]
)
AS_IF([test x$with_lustre = xno || test x$with-user-mode-only = xyes],[
AS_IF([test x$with_lustre = xno || test x$with_user_mode_only = xyes],[
LINUX_OBJ=
BUILD_KERNEL=not-relevant
],[
Expand Down Expand Up @@ -582,7 +582,7 @@ package or provide the path to a directory with built Lustre sources, \
using --with-lustre option.])]
)
AS_IF([test x$with_lustre = xno || test x$with-user-mode-only = xyes],[
AS_IF([test x$with_lustre = xno || test x$with_user_mode_only = xyes],[
LUSTRE=none
LUSTRE_INCLUDES=
LUSTRE_VERSION_STR=none
Expand Down Expand Up @@ -873,7 +873,7 @@ AS_IF([test x$CASS_IDX = xyes],
#
# Checking user-mode availability ------------------------------------------- {{{1
#
AS_IF([test x$with-user-mode-only = xyes],
AS_IF([test x$with_user_mode_only = xyes],
[AM_CONDITIONAL([ENABLE_USER_MODE_ONLY], [true])],
[AM_CONDITIONAL([ENABLE_USER_MODE_ONLY], [false])]
)
Expand Down

0 comments on commit 37ccf16

Please sign in to comment.