From 409ed818ff366b5b6b4dd26d7a034c7856701ea0 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 28 Mar 2021 17:03:15 +1100 Subject: configure: Add block group This is the last group needed to easily disable the Linux glue. * linux/configfrag.ac (block): New group. (floppy): Set group to block. (ide): Set group to block. Message-Id: <20210328060320.36194-2-damien@zamaudio.com> --- linux/configfrag.ac | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'linux') diff --git a/linux/configfrag.ac b/linux/configfrag.ac index 78b59d7f..cddbc1bb 100644 --- a/linux/configfrag.ac +++ b/linux/configfrag.ac @@ -33,6 +33,8 @@ dnl USE OF THIS SOFTWARE. '') # No group. :;; + block) + device_driver_group_block=selected;; net) device_driver_group_net=selected;; pcmcia) @@ -141,13 +143,17 @@ AC_DEFUN([AC_Linux_DRIVER_nodef], [ # Configuration options. # +dnl Block drivers. +AC_OPTION_Linux_group([block], [Block drivers]) + AC_Linux_DRIVER_qemu([floppy], [PC floppy], - [CONFIG_BLK_DEV_FD]) - + [CONFIG_BLK_DEV_FD], + [block]) AC_Linux_DRIVER_qemu([ide], [IDE disk controllers], - [CONFIG_BLK_DEV_IDE]) + [CONFIG_BLK_DEV_IDE], + [block]) AC_ARG_ENABLE([ide-forcedma], AS_HELP_STRING([--enable-ide-forcedma], [enable forced use of DMA on IDE]), @@ -582,7 +588,13 @@ AC_Linux_DRIVER([orinoco_cs], # that get brought in, need special symbols defined, etc. # -[if [ x"$device_driver_group_net" = xselected ]; then] +[if [ x"$device_driver_group_block" = xselected ]; then] + AC_DEFINE([CONFIG_BLOCK], [1], [CONFIG_BLOCK]) + AM_CONDITIONAL([device_driver_group_block], [true]) +[else] AM_CONDITIONAL([device_driver_group_block], [false]) +[fi + +if [ x"$device_driver_group_net" = xselected ]; then] AC_DEFINE([CONFIG_INET], [1], [CONFIG_INET]) AM_CONDITIONAL([device_driver_group_net], [true]) [else] AM_CONDITIONAL([device_driver_group_net], [false]) -- cgit v1.2.3