From patchwork Wed Nov 6 12:42:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Goodbody X-Patchwork-Id: 2007506 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=OrJLQKwx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xk4c46LPWz1xyM for ; Wed, 6 Nov 2024 23:42:44 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E77B6891F1; Wed, 6 Nov 2024 13:42:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="OrJLQKwx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4E85E891E1; Wed, 6 Nov 2024 13:42:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6A64C891D1 for ; Wed, 6 Nov 2024 13:42:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andrew.goodbody@linaro.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-43161c0068bso56071515e9.1 for ; Wed, 06 Nov 2024 04:42:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730896955; x=1731501755; darn=lists.denx.de; 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=zDSmmQ7JpxYpExm7Nxqkz3oKn41m/E9kwpBlObVeFu0=; b=OrJLQKwx7fM0PiKxojaZNbwfLvruqJR6lXpooUH2SM9yEgD9oyp+l6yoZSAzNMhgXY 8hJOMNmWPk5NYGOb96UWIOHgwfqSZRxMLgCh3j4AptHFpZdhNpR1J6PQZoOmraOIiZ8A XtRJTgt7qqNHqg16QgkjlHD3wCtH66cprREsGLFfUZD5ZyG94dx4OPas+I9Va0cURNHj HeUhRGfH01ENicIY5pCg3jYg2StXxgmi6piSueX1SW4MRbE74NxeOitoFRyNmbLRcqpJ PCVae/xIZ6YBqKuMrJBbhwyxVP78yT8gmWMfIwqzvOK18PeFX2Uz/XSn76KWLPOVXyxS 9oaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730896955; x=1731501755; 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=zDSmmQ7JpxYpExm7Nxqkz3oKn41m/E9kwpBlObVeFu0=; b=RcLAI83BgnhArdkVvOdGKaFQyRabKy3hvAgKFdWcVNYbcAn5ZdGgn0YNcD41vMwMap NdCsq+A/mROVAB4Yebl5aylA4gyyzJqeCYMAQV5wWc1acBryfS5jUVBxPVtKNkIOEcq9 kRpPdEnpAXGph6R4q6MWZ50UdTso2ole4QAv8FfKgxb7D71vsN2/3iWysFkePUHYCFBw xc+ATU8nyKYj/Gvnsuvq4DEyU1cY+hdNOK7wH2Lz1q5Y/i/eYtT4Fd2Mr7xN9C3XzJ9f lqZZExTy4qmqFdBS2PJvEY+R1DZ+CqHV52OoOOPt+WMSBVbE5erpHzpOhPHd8ygpHWSk icOw== X-Gm-Message-State: AOJu0YwX4hlHGwNcgIYcBYzIcEtIAWdklR5K9IDoTyoEjw7TI9NyHA6x lm2TJ0ZjIW540xMr1gDbHGbqgPiv+eSMCfrvmJ8R9QuRmEbhWYdJCaFUzc8r3q6UDFNncAH18cA kk48Vs7Bo X-Google-Smtp-Source: AGHT+IF2h8pToEQclwYZw/uWGnLI9yHJu24UEnlvpyh3y85KRtyGA3KTbD+j+UxNtioxseIORCpxLg== X-Received: by 2002:a05:600c:4ed1:b0:42f:7ed4:4c25 with SMTP id 5b1f17b1804b1-43283249aa9mr170415065e9.14.1730896954665; Wed, 06 Nov 2024 04:42:34 -0800 (PST) Received: from artemis2.elfringham.co.uk ([89.101.241.141]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c116c13asm18884765f8f.109.2024.11.06.04.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 04:42:34 -0800 (PST) From: Andrew Goodbody To: u-boot@lists.denx.de Cc: Andrew Goodbody , Dan Carpenter , Heinrich Schuchardt , Simon Glass , Tom Rini Subject: [PATCH v2 1/2] sandbox: select CONFIG_64BIT for SANDBOX64 Date: Wed, 6 Nov 2024 12:42:14 +0000 Message-Id: <20241106124215.677519-2-andrew.goodbody@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241106124215.677519-1-andrew.goodbody@linaro.org> References: <20241106124215.677519-1-andrew.goodbody@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Select CONFIG_64BIT so that we pass the -m64 option (instead of -m32) to static analysis tools. Signed-off-by: Dan Carpenter Signed-off-by: Andrew Goodbody --- Changes in v2: Resubmitted by Andrew Goodbody with changes requested by reviewer Moved select of CONFIG_64BIT from SANDBOX64 to HOST_64BIT as suggested by reviewer. arch/sandbox/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig index 1c8353d615..db29ca14bd 100644 --- a/arch/sandbox/Kconfig +++ b/arch/sandbox/Kconfig @@ -46,6 +46,7 @@ config HOST_32BIT config HOST_64BIT def_bool $(cc-define,_LP64) + select 64BIT config HOST_HAS_SDL def_bool $(success,sdl2-config --version) From patchwork Wed Nov 6 12:42:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Goodbody X-Patchwork-Id: 2007507 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lK+Eu8Fo; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xk4cF1PV8z1xyX for ; Wed, 6 Nov 2024 23:42:53 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 38BD5891D1; Wed, 6 Nov 2024 13:42:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="lK+Eu8Fo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 589F5891D1; Wed, 6 Nov 2024 13:42:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 58F8A8902D for ; Wed, 6 Nov 2024 13:42:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andrew.goodbody@linaro.org Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4316e9f4a40so54060965e9.2 for ; Wed, 06 Nov 2024 04:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730896959; x=1731501759; darn=lists.denx.de; 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=rjQfUSJoYyLqj045F3eAXylgLf/QJALJlWx8BKfNqAs=; b=lK+Eu8FotHlluZTNN1X+tVZQTkqZdB8WCPW6vGTOZ6OZGKhCaO6Ecqoz5hZPIoyKIV 5AiKiBkpoqQxf+GNyW776HjhSW8+i5ibHN2DIsSxGI2RKZr7KuUtPvQkLWZiWpLA7RqK 0N8eL9P+bsOKG5ZvjqeQBGC4pXEERZ9NGfAEWWfHBOE1Eye0bmAtFSNb8dfbj6vJQsjP npdBlJDEg44AiPfVSjxxR8IeHnHMZW//UrGgOetjKXDy9bU/NlAcglUMvI16xvfZWTD1 nlti934UvfYz8Ttx517tNEQy0vr6tD+tWcYYhTCcMCJTBpvfnA5M4KClSKvklDlHSNP/ wVuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730896959; x=1731501759; 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=rjQfUSJoYyLqj045F3eAXylgLf/QJALJlWx8BKfNqAs=; b=MAYJALGuE0AVjr+S57n6F8taq66lf5OxKK5vtyG0/d22LCvcnpiOjzqJsExQWW20aA 23ke7ZK/trQ9sXafmUNT0+1IVKkbN/XgmVHOXFr6gfpjczkXikJbD0HW/7w19ZqL0x65 RgDD3B6e9iXYDn5DcyPoX9FG/TwGHzij83OpX55XsVis1uCklS17XmkQWdYawFnkDpmT CDExU8AyXR74RXV3/8yMhRJwutsTPc2wh3olJXPyauvYbWidysmhcsM5YMH2Puf8Fpbf 5j4Uqg5dtjuewL/2Qr9zpd0759VpbIJb8H0VX1rLe+s7fEKw+6pUgtiApjRThEJJOxhr 2j+A== X-Gm-Message-State: AOJu0YwW5g7gwTLt0LaV0ukRP8JdLy8SvP6XRJK81fmhQdntgQ1xOf9p uFywx0aZFES+pCqW7IK/+zyYtM8kNwpKwkAdg0GbaOlAMofBm+U5XtmCfOZWhPdMxUu/pG6XSK0 lTn/+6an+ X-Google-Smtp-Source: AGHT+IFBgnJLb5vEm6OgrWGqd1/kg7kaCXa3F0X7X87hHiBbQ611tNzNfcx0y+vAiATccBRKlJXO4Q== X-Received: by 2002:a05:600c:3c8c:b0:431:4fa0:2e0b with SMTP id 5b1f17b1804b1-4319ad146b1mr325834715e9.28.1730896958627; Wed, 06 Nov 2024 04:42:38 -0800 (PST) Received: from artemis2.elfringham.co.uk ([89.101.241.141]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c116c13asm18884765f8f.109.2024.11.06.04.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 04:42:38 -0800 (PST) From: Andrew Goodbody To: u-boot@lists.denx.de Cc: Andrew Goodbody , Dan Carpenter , Bin Meng , Simon Glass , Tom Rini Subject: [PATCH v2 2/2] x86: select CONFIG_64BIT for X86_64 Date: Wed, 6 Nov 2024 12:42:15 +0000 Message-Id: <20241106124215.677519-3-andrew.goodbody@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241106124215.677519-1-andrew.goodbody@linaro.org> References: <20241106124215.677519-1-andrew.goodbody@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Select CONFIG_64BIT so that we pass the -m64 option (instead of -m32) to static analysis tools. Signed-off-by: Dan Carpenter Signed-off-by: Andrew Goodbody --- Changes in v2: Corrected commit title to be x86 not sandbox arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 23a1e21b29..006a59d6fa 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -44,6 +44,7 @@ endchoice config X86_64 bool + select 64BIT config SPL_X86_64 bool