tools: add configure option for libfsimage

The only in-tree user of libfsimage is pygrub. Now that it is possible
to disable the build of pygrub, the same should be possible for
libfsimage.

Add an option for controlling the build of libfsimage. The default is
on if pygrub is being built, and off if it isn't. Without pygrub the
build of libfsimage can be enabled via --enable-libfsimage.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
Juergen Gross authored and Jan Beulich committed 2023-08-09 09:05:40 +02:00
1 parent c9a899f7f4
commit df8852543d
4 files changed
+63 -1

No files matched your search

+40
View File
@@ -700,6 +700,7 @@ EXTRA_QEMUU_CONFIGURE_ARGS
qemu_xen_systemd
qemu_xen_path
qemu_xen
libfsimage
rombios
BCC
LD86
@@ -818,6 +819,7 @@ enable_qemu_traditional
enable_ipxe
with_system_ipxe
enable_rombios
enable_libfsimage
with_system_qemu
with_stubdom_qmp_proxy
with_system_seabios
@@ -1508,6 +1510,8 @@ Optional Features:
--with-system-ipxe)
--enable-rombios Enable ROMBIOS, (DEFAULT is on if qemu-traditional
or ipxe is enabled, otherwise off)
--enable-libfsimage Enable libfsimage, (DEFAULT is on if pygrub is
enabled, otherwise off)
--enable-systemd Enable systemd support (default is DISABLED)
--enable-9pfs Explicitly enable 9pfs support in QEMU build
(default is to defer to QEMU configure default)
@@ -4629,6 +4633,42 @@ $as_echo "#define HAVE_PYGRUB 1" >>confdefs.h
fi
# Check whether --enable-libfsimage was given.
if test "${enable_libfsimage+set}" = set; then :
enableval=$enable_libfsimage;
else
if test "x$pygrub" = "xn"; then :
enable_libfsimage="no"
else
enable_libfsimage="yes"
fi
fi
if test "x$enable_libfsimage" = "xyes"; then :
libfsimage=y
else
if test "x$pygrub" = "xy"; then :
as_fn_error $? "pygrub needs libfsimage" "$LINENO" 5
else
libfsimage=n
fi
fi
# Check whether --with-system-qemu was given.
if test "${with_system_qemu+set}" = set; then :
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.