From patchwork Mon Sep 30 07:00:15 2024 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: 831521 Delivered-To: patch@linaro.org Received: by 2002:a5d:66c8:0:b0:367:895a:4699 with SMTP id k8csp1829472wrw; Mon, 30 Sep 2024 00:53:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVHyrc91XR97Hg5fqgk4WrUfNxpVDwviN0fjE72v6nV+/WnvL+BDiobr1v9Aeupm0rGiYZEIA==@linaro.org X-Google-Smtp-Source: AGHT+IFMLstNMDn9rdcq0YqL5dHGLyJ55r7AVyUtAWWYpkodVW4VpGHI1QBgYptQ4orihqewsDQF X-Received: by 2002:a05:620a:1a1b:b0:7a9:ba35:1863 with SMTP id af79cd13be357-7ae372f3d9amr1845929085a.13.1727682811699; Mon, 30 Sep 2024 00:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727682811; cv=none; d=google.com; s=arc-20240605; b=WcRw/A5vBxP/mv1cLon7Xb7te7qBeW+92iYgODvZEZikuryojtoFiCfaqKSUGAtraB 8eECOsAMy1bSrhCsGLQ5Qwj8fuPr3+lRv1muVLvbYgCrVBOpGDbHXPJFimqFd0kqxHVW XH9DEad/kDrCCGBnsqMeV5dpDCu73D1H1lfllAKNfkqWFcKKlRxoAix5HZThdOvs3IY/ SeHnvG+DIYRg0ctmvNyKTnh68OoqzkK/KYVwHqtnN1EDaqgNDAM0dCX2DT+gqWtclUNq GG1AbDYCVjluIfjjAPnoLWnZ60Z2BTztn0FVJosG3vbXKMWxL2GaYwz5L0xBaX0FM6mB JitQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=/XjK5WcFDf2fFTQGUJSEkzp7XAmv+Yjy0CIT72sbc8g=; fh=A51G7GpJeaN5nvlj88jQ3oWWIroFbr+u2ZXInw0V8Jw=; b=geeJu9Xx3S949wnooMWWMsS458B+SnBY50SWO0viuk/90qHF6MD0up2ise80EDg4Gw uOQP1v6Mm0f8SntKYcKuUOKsA5M8sMEbC4tKSwQfo2Wl0db940WGqKeOYrn4WLvK/px8 fFOpaNtkvhZVbG9CCJEZ3HsshtdjPt0yr1KNKAomJ6VcCFSQOwizGlm3PKgmSmI8iGcg g92I+BtJf2G1PqwJ8MuhriPQ9jLxSAyxPaZFfFN1INbc3pv+vsjaV83Or1dDr60y02Eh qLUuZgj2fNISGfDbhS3x66YqvB1zIXWQKPrzwqPs+PF/TQs8J+XwI0tdAoYm6L9hetZj 5KiA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iOvHjCUn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7ae37837e94si802873985a.280.2024.09.30.00.53.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Sep 2024 00:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iOvHjCUn; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svAxE-0002i8-HE; Mon, 30 Sep 2024 03:36:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1svAun-0002g3-S0 for qemu-devel@nongnu.org; Mon, 30 Sep 2024 03:34:00 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1svAu6-0008CK-UJ for qemu-devel@nongnu.org; Mon, 30 Sep 2024 03:33:41 -0400 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a8d6ac24a3bso742552866b.1 for ; Mon, 30 Sep 2024 00:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727681528; x=1728286328; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/XjK5WcFDf2fFTQGUJSEkzp7XAmv+Yjy0CIT72sbc8g=; b=iOvHjCUnwKXEl6RKohkl2MywORui379jYC8Zqh+iFTGZdhKVtfXnP39wohwfd9Ljeh NHU5FcnhTXFpjVNRqC1p+mcdQ4XvZyCJGC7xTVYkI3zAl0Qt2YloZMo1wHpzXYo1cFH8 P1OG+Da7RPkqXITvAJfklWpd5ykY6yXgMroMNHlqi/X8PtS1F949TIjKjs1NsdUQc45g 8lvDlfFWztv7MFMeYPvkFeyl9mEdnJmRWE3R4HMtqGny4uSIXl0TDZjEa7kDpA5Z4iba dyungHU/p7t4Lo6pQzgyLF78zkA/Gn1AImESJb83jjnjMJY9yRR8wtHoM/85SA4+uV2K zJ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727681528; x=1728286328; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/XjK5WcFDf2fFTQGUJSEkzp7XAmv+Yjy0CIT72sbc8g=; b=gyXWNzetApvzyoYjAgqV+PFKmaLCeB2PBD9jck0wBl7rbpvgRFOffNvIzgE50cSzOA 1LbFyW2RpFQRB038MseRCVdzv7REN7i7f0uUY8rNdiPWfuonTmMPXamIP5tUB5J8edYC aMe9buG+34l/LXIw1wx67Tl1EEteBPu4ryCUE4gctn/4kdos34DnDKWwetK6AdQh6XR9 vY82Rs/D47sGyO+2ZaLGBrc8lUkx6tgU40WW0QrGHPZvDW/pcIYuuDDKArMfI5JdBILV n58kdN7pP7Eq3Kmqts2Musi/oWqM430XeErXIyMGQq3RggiZewGeTSRJv1WAePy5NGAh 5SbA== X-Gm-Message-State: AOJu0YzdBmYbeQznYbCdhetarLprM4Vi54xRuNi8D9vlCrU7J5xhlLGN rWqrB+NEdGQbjHuU8xXdCBCCBLVZXsjZTFF5Q4BEJUjaYHjjy8lQTLwQYtQV3XBm9f0LZhTcpHD q X-Received: by 2002:a5d:49ce:0:b0:374:adf1:9232 with SMTP id ffacd0b85a97d-37cd5696e86mr6036435f8f.19.1727679620487; Mon, 30 Sep 2024 00:00:20 -0700 (PDT) Received: from localhost.localdomain (115.red-88-29-173.dynamicip.rima-tde.net. [88.29.173.115]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd57429e5sm8234948f8f.98.2024.09.30.00.00.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 30 Sep 2024 00:00:19 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Thomas Huth , =?utf-8?q?Phili?= =?utf-8?q?ppe_Mathieu-Daud=C3=A9?= , Jiaxun Yang Subject: [PATCH] hw/mips: Build fw_cfg.c once Date: Mon, 30 Sep 2024 09:00:15 +0200 Message-ID: <20240930070015.28244-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=philmd@linaro.org; helo=mail-ej1-x636.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, T_SPF_HELO_TEMPERROR=0.01, T_SPF_TEMPERROR=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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Nothing in fw_cfg.c requires target-specific knowledge, build it once for the 4 MIPS variants. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/mips/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mips/meson.build b/hw/mips/meson.build index ca37c42d90..fcbee53bb3 100644 --- a/hw/mips/meson.build +++ b/hw/mips/meson.build @@ -1,6 +1,6 @@ mips_ss = ss.source_set() mips_ss.add(files('bootloader.c', 'mips_int.c')) -mips_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c')) +common_ss.add(when: 'CONFIG_FW_CFG_MIPS', if_true: files('fw_cfg.c')) mips_ss.add(when: 'CONFIG_LOONGSON3V', if_true: files('loongson3_bootp.c', 'loongson3_virt.c')) mips_ss.add(when: 'CONFIG_MALTA', if_true: files('malta.c')) mips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c'))