From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys3ad-0000SI-Rj for qemu-devel@nongnu.org; Tue, 12 May 2015 02:22:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys3aX-00032K-JK for qemu-devel@nongnu.org; Tue, 12 May 2015 02:22:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys3aX-00032C-E2 for qemu-devel@nongnu.org; Tue, 12 May 2015 02:22:45 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 190F2B72D1 for ; Tue, 12 May 2015 06:22:44 +0000 (UTC) From: mrezanin@redhat.com Date: Tue, 12 May 2015 08:22:34 +0200 Message-Id: Subject: [Qemu-devel] [PATCHv3 0/2] parallel: Allow to disable CONFIG_PARALLEL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, Miroslav Rezanina , armbru@redhat.com From: Miroslav Rezanina There's few uncoditional calls to functions in hw/char/parallel.c so disabling CONFIG_PARALLEL can cause build failure. This series allow building with CONFIG_PARALLEL disabled. In addition, it changes behavior so the run of "qemu -parallel" will abort in case target expects parallel device to exists. Affected targets are: - i386 (pc.c) - mips (mips_fulong2e.c, mips_malta.c, mips_jazz.c) - sparc64 (sun4u.c) Signed-off-by: Miroslav Rezanina Miroslav Rezanina (2): Move parallel_hds_isa_init to hw/isa/isa-bus.c stubs: Provide parallel_mm_init stub version hw/char/parallel.c | 25 ------------------------- hw/isa/isa-bus.c | 29 +++++++++++++++++++++++++++++ stubs/Makefile.objs | 1 + stubs/parallel.c | 8 ++++++++ 4 files changed, 38 insertions(+), 25 deletions(-) create mode 100644 stubs/parallel.c -- 2.1.0