From nobody Tue Apr 23 17:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555007029; cv=none; d=zoho.com; s=zohoarc; b=HuDFLbLF1ogJMNqmjG3XwrXdsJP1twsu+qnX0WElexdF9GvO/y2TgUTe/WDI2ZbdJUvRr/TmpgunQ0IaD4M1YBDE57MdNW/wzBDBRlOFm2M6YeZhwOSgvhugPFkmzIILP3MtUO9zccS9pZO9eBGCHba3XKN+wYZ/opQi3YoA9jY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555007029; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=XQI1o4bjq9XTFgqgktxtJnQ13wsjsSH6MNIZHDs2SVU=; b=IicimzwmGTttbgokD0zcfsHrJRGfP1g6iXR18xkZNBkxruJUnWIQd+s5ekTINSnErrrB72eHVuT63ulujgN4OBb83G1Va+v7wnMXg8W2O7h/bTPq8W27UOOR35oSpzMv1W0LRThw8XbzJfMDnI9IsuXlA/Bktm0CRv7O/UdgApU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1555007029287909.6389304290183; Thu, 11 Apr 2019 11:23:49 -0700 (PDT) Received: from localhost ([127.0.0.1]:53209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEeMU-00069I-29 for importer@patchew.org; Thu, 11 Apr 2019 14:23:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEeLa-0005l8-Mc for qemu-devel@nongnu.org; Thu, 11 Apr 2019 14:22:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEeLZ-0006yF-P9 for qemu-devel@nongnu.org; Thu, 11 Apr 2019 14:22:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37172) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEeLZ-0006xp-HT for qemu-devel@nongnu.org; Thu, 11 Apr 2019 14:22:49 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 666FB300B915; Thu, 11 Apr 2019 18:22:48 +0000 (UTC) Received: from thuth.com (ovpn-116-70.ams2.redhat.com [10.36.116.70]) by smtp.corp.redhat.com (Postfix) with ESMTP id DC03F5C207; Thu, 11 Apr 2019 18:22:44 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org Date: Thu, 11 Apr 2019 20:22:40 +0200 Message-Id: <20190411182240.5957-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 11 Apr 2019 18:22:48 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH for-4.1] hw/input: Add a CONFIG_PS2 switch for the ps2.c file X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , "Michael S . Tsirkin" , Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" ps2.c only needs to be compiled if we are building pckbd.c or pl050.c. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- hw/input/Kconfig | 5 +++++ hw/input/Makefile.objs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/input/Kconfig b/hw/input/Kconfig index e2e66f0858..316573f782 100644 --- a/hw/input/Kconfig +++ b/hw/input/Kconfig @@ -8,10 +8,15 @@ config LM832X config PCKBD bool default y + select PS2 depends on ISA_BUS =20 config PL050 bool + select PS2 + +config PS2 + bool =20 config STELLARIS_INPUT bool diff --git a/hw/input/Makefile.objs b/hw/input/Makefile.objs index c8b00f71ec..6db5ee0e71 100644 --- a/hw/input/Makefile.objs +++ b/hw/input/Makefile.objs @@ -3,7 +3,7 @@ common-obj-y +=3D hid.o common-obj-$(CONFIG_LM832X) +=3D lm832x.o common-obj-$(CONFIG_PCKBD) +=3D pckbd.o common-obj-$(CONFIG_PL050) +=3D pl050.o -common-obj-y +=3D ps2.o +common-obj-$(CONFIG_PS2) +=3D ps2.o common-obj-$(CONFIG_STELLARIS_INPUT) +=3D stellaris_input.o common-obj-$(CONFIG_TSC2005) +=3D tsc2005.o =20 --=20 2.21.0