]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/input: Add a CONFIG_PS2 switch for the ps2.c file
authorThomas Huth <thuth@redhat.com>
Thu, 11 Apr 2019 18:22:40 +0000 (20:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 May 2019 09:56:53 +0000 (11:56 +0200)
ps2.c only needs to be compiled if we are building pckbd.c or pl050.c.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190411182240.5957-1-thuth@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/input/Kconfig
hw/input/Makefile.objs

index 889363d8aef1b9679f5fe68be631f969e8870c7a..287f08887b31e15deb1be06c654dc29a30ad8daa 100644 (file)
@@ -8,10 +8,15 @@ config LM832X
 config PCKBD
     bool
     default y
+    select PS2
     depends on ISA_BUS
 
 config PL050
     bool
+    select PS2
+
+config PS2
+    bool
 
 config STELLARIS_INPUT
     bool
index d1de307708541404026d1a6ca8de4c4d4db4727f..a1bc502ed017a060063ddd20cae3691f6a0d8e98 100644 (file)
@@ -3,7 +3,7 @@ common-obj-y += hid.o
 common-obj-$(CONFIG_LM832X) += lm832x.o
 common-obj-$(CONFIG_PCKBD) += pckbd.o
 common-obj-$(CONFIG_PL050) += pl050.o
-common-obj-y += ps2.o
+common-obj-$(CONFIG_PS2) += ps2.o
 common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
 common-obj-$(CONFIG_TSC2005) += tsc2005.o