Skip to content

Commit

Permalink
speakup: only build serialio when ISA is enabled
Browse files Browse the repository at this point in the history
Drivers using serialio were already made available in Kconfig only under
the ISA condition.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20200804160659.7y76sdseow43lfms@function
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Samuel Thibault authored and Greg Kroah-Hartman committed Aug 18, 2020
1 parent 2b86d9b commit dfe650b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions drivers/accessibility/speakup/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ config SPEAKUP
one of the listed synthesizers, you should say n.

if SPEAKUP

config SPEAKUP_SERIALIO
def_bool y
depends on ISA || COMPILE_TEST

config SPEAKUP_SYNTH_ACNTSA
tristate "Accent SA synthesizer support"
help
Expand All @@ -52,7 +57,7 @@ config SPEAKUP_SYNTH_ACNTSA

config SPEAKUP_SYNTH_ACNTPC
tristate "Accent PC synthesizer support"
depends on ISA || COMPILE_TEST
depends on SPEAKUP_SERIALIO
help
This is the Speakup driver for the accent pc
synthesizer. You can say y to build it into the kernel,
Expand Down Expand Up @@ -104,7 +109,7 @@ config SPEAKUP_SYNTH_DECEXT

config SPEAKUP_SYNTH_DECPC
depends on m
depends on ISA || COMPILE_TEST
depends on SPEAKUP_SERIALIO
tristate "DECtalk PC (big ISA card) synthesizer support"
help

Expand All @@ -127,7 +132,7 @@ config SPEAKUP_SYNTH_DECPC

config SPEAKUP_SYNTH_DTLK
tristate "DoubleTalk PC synthesizer support"
depends on ISA || COMPILE_TEST
depends on SPEAKUP_SERIALIO
help

This is the Speakup driver for the internal DoubleTalk
Expand All @@ -138,7 +143,7 @@ config SPEAKUP_SYNTH_DTLK

config SPEAKUP_SYNTH_KEYPC
tristate "Keynote Gold PC synthesizer support"
depends on ISA || COMPILE_TEST
depends on SPEAKUP_SERIALIO
help

This is the Speakup driver for the Keynote Gold
Expand Down
2 changes: 1 addition & 1 deletion drivers/accessibility/speakup/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ speakup-y := \
keyhelp.o \
kobjects.o \
selection.o \
serialio.o \
spk_ttyio.o \
synth.o \
thread.o \
varhandlers.o
speakup-$(CONFIG_SPEAKUP_SERIALIO) += serialio.o

0 comments on commit dfe650b

Please sign in to comment.