hw/input: Add a CONFIG_PS2 switch for the ps2.c file
PATCH 1/1 hw/input: Add a CONFIG_PS2 switch for the ps2.c file
ps2.c only needs to be compiled if we are building pckbd.c or pl050.c.
Signed-off-by Thomas Huth <[email protected]>
--- hw/input/Kconfig | 5 +++++ hw/input/Makefile.objs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
hw/input/Kconfig +5 -0
@@ -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
hw/input/Makefile.objs +1 -1
@@ -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
Signature · 1 line
2.21.0
Quoted 1 line · Thomas Huth
ps2.conly needs to be compiled if we are buildingpckbd.corpl050.c.
Hehe I have the same patch staged locally =)
Quoted 1 line
Signed-off-by Thomas Huth <[email protected]>
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 39 lines
--- hw/input/Kconfig | 5 +++++ hw/input/Makefile.objs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)hw/input/Kconfig +5
-0@@ -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 boolhw/input/Makefile.objs +1
-1@@ -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
Paolo Bonzini
AppliedQuoted 34 lines · Thomas Huth
ps2.conly needs to be compiled if we are buildingpckbd.corpl050.c.Signed-off-by Thomas Huth <[email protected]>--- hw/input/Kconfig | 5 +++++ hw/input/Makefile.objs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)hw/input/Kconfig +5
-0@@ -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 boolhw/input/Makefile.objs +0
-0
hw/input/Makefile.objs common-obj-y += hid.o · line 9
Quoted 8 lines
hw/input/Makefile.objs +1
-1@@ -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
Queued, thanks. (Also, nice find :)).
Paolo