From patchwork Sun Mar 6 12:59:47 2022 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: 12770724 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5D7CBC433F5 for ; Sun, 6 Mar 2022 13:27:13 +0000 (UTC) Received: from localhost ([::1]:59902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQqul-0004ez-V8 for qemu-devel@archiver.kernel.org; Sun, 06 Mar 2022 08:27:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQqWF-0001fc-P8 for qemu-devel@nongnu.org; Sun, 06 Mar 2022 08:01:52 -0500 Received: from [2a00:1450:4864:20::429] (port=33486 helo=mail-wr1-x429.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQqWD-00048O-Ls for qemu-devel@nongnu.org; Sun, 06 Mar 2022 08:01:51 -0500 Received: by mail-wr1-x429.google.com with SMTP id j17so19404430wrc.0 for ; Sun, 06 Mar 2022 05:01:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uOLNRTgRZFcXCYq8OA8jxbMqyWWPp6ZZ6CP6NThIhP8=; b=CwsdGpCTwjSY1+w/x27L+t3lxJeu2KOYlxFQME45pTJedJTmiVCE2oUl+Jqvpe0Vq/ 9dxcOW9JhGhxbynAV4bHgKHdd9p2NYlKSYl9UOG+8P42x7kcGakwbW8xwQcUt6nm4DhB u1sc5NbTnRFT79BlxQ9b8G1R6SIf+M15mjzBoNPC0FG06loizSq4nnq8Z3qIyEvYe1sg 8G0kWDgW+MP+nDvdpkuilIfKFY4b42ctgQv9/KpXX807y+GWTgrytYZrqu0GMTceJUkV ToxdGMWVop4laAqHQOYyhxBksFR6VmjMTgFJN5Qw2sbWy4q/NGT7yZkD4GcrZg8HX0ea k47A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uOLNRTgRZFcXCYq8OA8jxbMqyWWPp6ZZ6CP6NThIhP8=; b=t/G6iADguBHvgUqlW8VZiUd1oaJCgpvsgjGF1Xkit6/cCnQdYtlPgZNi0Lfxn6qRFt 6+P2t44xJaZ0iSS/9xjPkk0iBiRXnEdjxtia0pgb4PmdgDi2G3+qgU2BgYio85TOw5hN /oHpSWhpt30VvlRFwKcDuCGMbTafVmP8zrvT9lKYyvEN1AIUya3tk1+B1ysmHiNPG/kx YsI1BPuwVIbtSlsJc0rBVxyibeJmV3vlZFj5zesXbfRFLqhzQtzB2gCkWiQ1vG9vyb6K uay98VXxszbca40fFrtBkzkifpqSRyFV4MxGManqkNhWYOkdnjnl0nU8H06iizXYP9Bu dxng== X-Gm-Message-State: AOAM533DJxQioko+78HbrQi3T0JrJbDVk2zfwnc4JV/Rlw58ln69m13x ZXrcFvpprlhth42c5vRTsbqL21eYrY4= X-Google-Smtp-Source: ABdhPJy6ruXfrsC9XujR7X8xDu3yd3tWCry0ZmQ1YVpf1vSEuTm/M3wzu9wO5OkJ4a6IN36EYnMRSQ== X-Received: by 2002:a05:6000:1449:b0:1f1:f821:5582 with SMTP id v9-20020a056000144900b001f1f8215582mr825693wrx.473.1646571708242; Sun, 06 Mar 2022 05:01:48 -0800 (PST) Received: from nuc.lan ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id f7-20020a5d4dc7000000b001f1d99e9441sm4200687wru.106.2022.03.06.05.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 05:01:47 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 20/33] softmmu: Build target-agnostic objects once Date: Sun, 6 Mar 2022 13:59:47 +0100 Message-Id: <20220306130000.8104-21-philippe.mathieu.daude@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220306130000.8104-1-philippe.mathieu.daude@gmail.com> References: <20220306130000.8104-1-philippe.mathieu.daude@gmail.com> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::429 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , Paolo Bonzini , Thomas Huth , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Various softmmu objects aren't target specific. Move them to the generic softmmu source set. For our 31 softmmu targets, this is in total 330 objects less to build! Reviewed-by: Richard Henderson Reviewed-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20220207075426.81934-22-f4bug@amsat.org> --- softmmu/meson.build | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/softmmu/meson.build b/softmmu/meson.build index 39f766ce7c1..8138248661a 100644 --- a/softmmu/meson.build +++ b/softmmu/meson.build @@ -1,20 +1,9 @@ specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files( 'arch_init.c', - 'balloon.c', - 'cpus.c', - 'cpu-throttle.c', - 'datadir.c', - 'globals.c', - 'physmem.c', 'ioport.c', - 'rtc.c', - 'runstate.c', 'memory.c', - 'memory_mapping.c', + 'physmem.c', 'qtest.c', - 'vl.c', - 'cpu-timers.c', - 'runstate-action.c', )]) specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'], if_true: [files( @@ -22,9 +11,20 @@ )]) softmmu_ss.add(files( + 'balloon.c', 'bootdevice.c', + 'cpus.c', + 'cpu-throttle.c', + 'cpu-timers.c', + 'datadir.c', 'dma-helpers.c', + 'globals.c', + 'memory_mapping.c', 'qdev-monitor.c', + 'rtc.c', + 'runstate-action.c', + 'runstate.c', + 'vl.c', ), sdl, libpmem, libdaxctl) if have_tpm