From patchwork Fri Jan 19 11:35:05 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: 763932 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a08:0:b0:337:62d3:c6d5 with SMTP id m8csp399488wrq; Fri, 19 Jan 2024 03:43:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwkGqtTC6UAtSVdwZECmYJ9KICtRcxWyDfMHmTMjWUt/ncD5IxI5oONwrTV4lvN9J+8SJe X-Received: by 2002:a05:622a:c1:b0:42a:1857:7351 with SMTP id p1-20020a05622a00c100b0042a18577351mr2699696qtw.22.1705664603850; Fri, 19 Jan 2024 03:43:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705664603; cv=none; d=google.com; s=arc-20160816; b=c3mlAU/yiYK07zYK2++/dKvPqSD9oKZoEtzsaMol/f8SWcynTIVDNxrcmWV5/ZSIs5 tvGIjh6es6hpBpk68QtmsuFDi5HG3mrhFg1rflYYmhEplb9HBx4RpF6unFy+R4x4FLMn E+nsNGgob1MPPj58MyDt+cSog3NkmLfPSV2p5MwMYI1zLF8/zNPaxPos46H+fR0w+GIu +dBuXNC0JyLkjgUjQ7LHIQw8lXfJ38JclSdIAdQtPkRM4+PgpHJquQyBeDU+hWPeHxyy M4i0+6j0WENbsIso2P/6aZg9w+kJVNuNzlOMwf92YX62za0z8SYAj1pdFRmc0/d3xIcz lk6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Nr4OUHS+lBPFXd43ccavf7bhITrAw62IpLJRw1qHBNM=; fh=Fvwgvy80ygdP82bysZimOYQryTQSPXLk9G3SuBJkrbU=; b=EFC/EwvLjuPxfR+0Zbq+j+tRwXvs8TVeWy80hvN3+nkW8WlLIsGH0CEuhMTn1CHnqJ wgJbA2mTxBIvYj1aHdQNfCYjtQnkiTKlsvWO/ELvrTpRF8S0i7qkKMGYxitObMiKtynb QhzM497ANXc0z9gxXsLrbtnbFbo7DhZtOYNCSXTLbwzKfjicw8b+5q07HCWY8nGmwjXD f5Wk2rBklYqdFhyrURiZa3iWke8G9ee2P8UhP5W+rBcliT0QRcq85lmpQ1rhdfMb7TGA 31A+cy3QcIsSpcu3YBn2+P4hErPOAv61yebh2gbSCu2+3IHAQEngfguJTGfRPfixz+Vu 55FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rN+smCIS; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t33-20020a05622a182100b00429992c4d68si16316113qtc.526.2024.01.19.03.43.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 03:43:23 -0800 (PST) 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=rN+smCIS; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQnCK-0008ED-1t; Fri, 19 Jan 2024 06:38:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQnC6-0007rK-W5 for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:37:58 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQnC4-0003Bx-9J for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:37:54 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3387ef9fc62so577577f8f.2 for ; Fri, 19 Jan 2024 03:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705664270; x=1706269070; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Nr4OUHS+lBPFXd43ccavf7bhITrAw62IpLJRw1qHBNM=; b=rN+smCISHU8mn4jfzBBQCtnZWDkmz+dy+rKhFkNdItQpLzJQhUAr2bBnqbKVGA5GMP 3HgEoiMFEJ0Cqe5a9BINjCfA2aqnP0ELGMvhUyqpcmhvo9WDDdGxTdk2jv8HhfCh6V1V 7Voe2KLE4cmdItrzWk0QPENVbzdmIDWu/+kg8XigSFSZIK+AVEgSnp2D+k/KAEkD6S5V lGwEUBqdT3850r23JoXY9B4lUjVLxpZ9XBzS2xvkQk+t2+lSwDaE36AYEVcm8bnl3ruz g1X7FG0PIeEGI4M1H/cejHwM4nXFclqMZLdPiBJ4zFpSbh2nsYP54HLS1WSqtf1C+JV7 PEgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705664270; x=1706269070; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nr4OUHS+lBPFXd43ccavf7bhITrAw62IpLJRw1qHBNM=; b=vMD2LKTTfXBFJyRWKbNLoWU/Omm/6FBJTDdemyacBJUvb45k0qm2JrQFEQvng9ArHT HcENTjowSgnDiQFMLBLXJsf/q/jkGhbJWZ1NNLtL442OsSgUTKZhbqp2BA/qhpq314LM X+pW/d5UHWJTgHZJmCtW5dALPRcIvyyDqOGzjvfaJguzdIgUnfQ2kUqNWkZP9vq8MV2z RLIbE/qJ2Hf4j6G2cbzDlapBbHbHe4WReQBKE+Gb+G+tYjuKztbK2bYct97/ae1lAE5O NmVLCwRyubHNsN3wqtSV3osLjTWtYoMiDeGlUzcL2/W5/3B12lGl2+AXEYYl1mmsfisM iNcg== X-Gm-Message-State: AOJu0YyfxgLhoiR2x6Bk70E/NejnUHOSJYCldIZjcFsq9KgwBWxp3c9J yY2eOQZ3PqXFYPfcG6dZ+MIvaqnS7BzDvUHes2rp5+lOm+BhJWatyE68GcPrlLF/gCZ0vc4T+ty t9YH7gQ== X-Received: by 2002:a7b:cc88:0:b0:40e:6207:2ecf with SMTP id p8-20020a7bcc88000000b0040e62072ecfmr1314432wma.10.1705664270639; Fri, 19 Jan 2024 03:37:50 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id hg14-20020a05600c538e00b0040e5cf9a6c7sm29076314wmb.13.2024.01.19.03.37.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 03:37:50 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-block@nongnu.org, qemu-arm@nongnu.org, Bibo Mao , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth Subject: [PULL 36/36] configure: Add linux header compile support for LoongArch Date: Fri, 19 Jan 2024 12:35:05 +0100 Message-ID: <20240119113507.31951-37-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240119113507.31951-1-philmd@linaro.org> References: <20240119113507.31951-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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 From: Bibo Mao When compiling qemu with system KVM mode for LoongArch, header files in directory linux-headers/asm-loongarch should be used firstly. Otherwise it fails to find kvm.h on system with old glibc, since latest kernel header files are not installed. This patch adds linux_arch definition for LoongArch system so that header files in directory linux-headers/asm-loongarch can be included. Fixes: 714b03c125 ("target/loongarch: Add loongarch kvm into meson build") Signed-off-by: Bibo Mao Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240116013952.264474-1-maobibo@loongson.cn> Signed-off-by: Philippe Mathieu-Daudé --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 21ab9a64e9..3d8e24ae01 100755 --- a/configure +++ b/configure @@ -445,6 +445,7 @@ case "$cpu" in loongarch*) cpu=loongarch64 host_arch=loongarch64 + linux_arch=loongarch ;; mips64*)