summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2021-03-28 17:03:15 +1100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-03-28 23:09:09 +0200
commit409ed818ff366b5b6b4dd26d7a034c7856701ea0 (patch)
treea51a72cb0ca99659e48385e750cb4118e13b6a9c
parentfdbf320247e24276232413ee63fa80e586c317f0 (diff)
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>
-rw-r--r--linux/configfrag.ac20
1 files changed, 16 insertions, 4 deletions
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])