From patchwork Mon Nov 9 09:45:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 11890807 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7CF0C56201 for ; Mon, 9 Nov 2020 09:45:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C88A207BC for ; Mon, 9 Nov 2020 09:45:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lfFJ0JNb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729008AbgKIJp5 (ORCPT ); Mon, 9 Nov 2020 04:45:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728866AbgKIJp5 (ORCPT ); Mon, 9 Nov 2020 04:45:57 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9C96C0613CF for ; Mon, 9 Nov 2020 01:45:55 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id p1so7918411wrf.12 for ; Mon, 09 Nov 2020 01:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1o8lO3koG16AlBbmrKd/snSNhrR/M4yhMjnc+WbIftA=; b=lfFJ0JNb2rBiiklBvMRWfCR2xuij+pgMCgqsLCy81HP4dnZsGa9ab/tral6KSdVN/S b4DSOQga0Gi+UYhfqO328qbmbgMW+VMAqCGR4HrGkoy2LrW1g6x80sYavGnSv1s98F5v XumyaGK5Or9PB2BeK7vAxuNBbdg1E3V2cPYRJ40N7a7NeO4KY70hCSOoP1Uy4dCvDKWA RqBJfzxMsqqYdwpfdzrM+vVZk8hugomSvGJeExtnJemU135/1Bsnwnhi1ipEEk0qTuVT rRrW9PLQOu7nPQq052VIQSaJT5fJF4/YsBg78TsY0MfddTYxudPiqIVcZgwELwdU5ejr 4nwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1o8lO3koG16AlBbmrKd/snSNhrR/M4yhMjnc+WbIftA=; b=OtyJmlU8Qo1NP+gWAKEucyDgKAgftNUzxBPCYBetpuUlBFgK/bvHFlvGQ3iqkOmwji SeSdokeG6KiNWLhtvINA+0Ju1vddbInR9twdb8cEG90YMF0oWIRwCMK51q7qUgQMDiDi U41JG0hlY3J4TW2C6Uh5/r5yxefTCQp3EAjt1Et1I1vDs39P358kwyrqSIyhkCVZTdIM jsm2yXEyrJER2XRy7KQs1ap4dtHdWdymuWnz+DG0CBl8pOm0S5wGuXl+yQ98PmNICjY0 nE1uytQ1idAEpReNAiEZ3zuTlbcfmMgbg3MycGC2PugWgIzCAy9iXMNMdAIrpj4MNBwt LedQ== X-Gm-Message-State: AOAM530kblgysvjgrKf2vgFmPfNBkZZtDJACvz0labTSEFr8m3J4SDe/ GK81xLp/2DD5/XpjdnzvhRU= X-Google-Smtp-Source: ABdhPJxc4TZdtgyhqebFbBYMGgeJ98UQ+2SDOy/fHp3mL6Ipg+mK+zm9sk7kmSq1DbuRl+juTBkF8g== X-Received: by 2002:adf:e64e:: with SMTP id b14mr16979874wrn.68.1604915154540; Mon, 09 Nov 2020 01:45:54 -0800 (PST) Received: from localhost.localdomain (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id z191sm12223304wme.30.2020.11.09.01.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 01:45:53 -0800 (PST) Sender: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Laurent Vivier , kvm@vger.kernel.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/3] accel: Only include TCG stubs in user-mode only builds Date: Mon, 9 Nov 2020 10:45:45 +0100 Message-Id: <20201109094547.2456385-2-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201109094547.2456385-1-f4bug@amsat.org> References: <20201109094547.2456385-1-f4bug@amsat.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org We only require TCG stubs in user-mode emulation. Do not build stubs restricted to system-mode emulation in a user-mode only build. Signed-off-by: Philippe Mathieu-Daudé --- accel/meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/accel/meson.build b/accel/meson.build index b26cca227a4..609772f129b 100644 --- a/accel/meson.build +++ b/accel/meson.build @@ -1,10 +1,12 @@ softmmu_ss.add(files('accel.c')) -subdir('qtest') -subdir('kvm') subdir('tcg') -subdir('xen') -subdir('stubs') +if have_system + subdir('qtest') + subdir('kvm') + subdir('xen') + subdir('stubs') +endif dummy_ss = ss.source_set() dummy_ss.add(files(