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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C723AC7619A for ; Wed, 5 Apr 2023 23:50:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B5B0386002; Thu, 6 Apr 2023 01:49:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="pOZIlmwL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EB30B85FC0; Thu, 6 Apr 2023 01:49:19 +0200 (CEST) Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) (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 CAD4185FE0 for ; Thu, 6 Apr 2023 01:49:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-54c0c86a436so8423797b3.6 for ; Wed, 05 Apr 2023 16:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1680738551; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=CK/ImBYyGo79A8XQNKHrtuEjefGsbsOgOX0sVKuLrhc=; b=pOZIlmwLJYpl62j3peBe1C00dSolrDUPyNrWfzJB8iWM0tVge1F3K3fSjjHXdinfTo f4ZwdjWINK07oAO3I9Qpd6IS5gurMViQfT+uYYlyn8/7oCLo682TdRpV8sOjYjlQZm/I Izok+3SOOuEXY05D098sRUZrEKW1D5t7b+O8k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680738551; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CK/ImBYyGo79A8XQNKHrtuEjefGsbsOgOX0sVKuLrhc=; b=qjl8el/PSYbkrP07rZ1MEIHUpgLwVrXvYrKWwmrDIFR8ASA0eczOW+RuCqerORNMDy POIhARhPoHNqZpN354pee4sG4q5BtHJpsBXTz1s3Z1Z23MTZGZ04BO2Ek7AKCKrcYS81 CifVTe5CIL0CmIBLu0WoGH48f15585z7ufAOTBHl7yY64ldHQ2Ve5gCKvAlD/rXNlhvH QGaJ836knOcf+AEOg7yOioxdC/25H3o0g84p+c59sWQ9LxCfC1hxT9QB27lQ1DRua2xO EB9m0aJ9QnITW1jfCL58DccA60nPHfJdYJy+bk9bkTOLtW2sVtqVlRXHJ6JjwOLbFbDv n9Hw== X-Gm-Message-State: AAQBX9eZtRlq4uyAKDjm3V8HR7wcm2UlYF6Y0Q7+voyLsFtpsvkliCMV CAi4xOaEyukWACF4UpWKyd6SC/22ivIFPCU/IasbkQ== X-Google-Smtp-Source: AKy350b0qJR0nt5XO/UCMW7EbSUF299qJX6yN5tUC/E3A2ZDIcgoG7KjaexB4sXO7DhWHYowZs4d6w== X-Received: by 2002:a0d:da02:0:b0:549:29db:733b with SMTP id c2-20020a0dda02000000b0054929db733bmr7122792ywe.23.1680738551067; Wed, 05 Apr 2023 16:49:11 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-acff-1005-f218-7c24.res6.spectrum.com. [2603:6081:7b00:6400:acff:1005:f218:7c24]) by smtp.gmail.com with ESMTPSA id l33-20020a81ad61000000b00545a08184b1sm4215448ywk.65.2023.04.05.16.49.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 16:49:10 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 9/9] doc: clang: Update and correct support notes Date: Wed, 5 Apr 2023 19:48:59 -0400 Message-Id: <20230405234859.1446811-10-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230405234859.1446811-1-trini@konsulko.com> References: <20230405234859.1446811-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 At this point, clang can be used on both 32bit and 64bit targets without issue. Signed-off-by: Tom Rini --- doc/build/clang.rst | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/doc/build/clang.rst b/doc/build/clang.rst index 1d35616eb5ef..222487032ce0 100644 --- a/doc/build/clang.rst +++ b/doc/build/clang.rst @@ -11,14 +11,6 @@ The ARM backend can be instructed not to use the r9 and x18 registers using supported inline assembly is needed to get and set the r9 or x18 value. This leads to larger code then strictly necessary, but at least works. -**NOTE:** target compilation only work for _some_ ARM boards at the moment. -Also AArch64 is not supported currently due to a lack of private libgcc -support. Boards which reassign gd in c will also fail to compile, but there is -in no strict reason to do so in the ARM world, since crt0.S takes care of this. -These assignments can be avoided by changing the init calls but this is not in -mainline yet. - - Debian based ------------ @@ -28,14 +20,14 @@ Required packages can be installed via apt, e.g. sudo apt-get install clang -Note that we still use binutils for some tools so we must continue to set -CROSS_COMPILE. To compile U-Boot with Clang on Linux without IAS use e.g. +Note that we make use of the CROSS_COMPILE variable to determine what to tell +clang to use as the build target. +To compile U-Boot with Clang on Linux without IAS use e.g. .. code-block:: bash make HOSTCC=clang rpi_2_defconfig - make HOSTCC=clang CROSS_COMPILE=arm-linux-gnueabi- \ - CC="clang -target arm-linux-gnueabi" -j8 + make HOSTCC=clang CROSS_COMPILE=arm-linux-gnueabi- CC=clang -j8 It can also be used to compile sandbox: -- 2.34.1