Message ID | 20210506142438.1310977-2-sjg@chromium.org |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=fzW0Eprv; dkim-atps=neutral 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FbbT34S7pz9sWY for <incoming@patchwork.ozlabs.org>; Fri, 7 May 2021 00:25:11 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3772782D02; Thu, 6 May 2021 16:25:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="fzW0Eprv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 85ED582D1D; Thu, 6 May 2021 16:25:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) (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 3E0FA82D1A for <u-boot@lists.denx.de>; Thu, 6 May 2021 16:25:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oo1-xc2d.google.com with SMTP id j17-20020a4ad6d10000b02901fef5280522so1293295oot.0 for <u-boot@lists.denx.de>; Thu, 06 May 2021 07:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6SLGjw+lqIATM8yl9KRI3eFu98vH+jKKrHwJ6aOEDdA=; b=fzW0EprvmvXGbRVonXDtWQkBp6d7DFBa6iRK0IeiE98bs9xBFHkRef1Ws3s/mzPk+k NwcMHGfm/KCn2zaSrn+kUBLgc7iaJJ1S5XLwuWYm9SwSVRBSbTTlULayZw/HArOnVDrK tWbEJ8YiI8rUlOmxYofNz6cilqdQc6aKIxpDE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6SLGjw+lqIATM8yl9KRI3eFu98vH+jKKrHwJ6aOEDdA=; b=bdSJED30TWfAioc2d8Pvus/YwwwK7iBlx07p/+LNLd3X+1779tNKy073v4p65uW7Wd 3wf/TIzcCtX4dlf8kWm4EA7ZwnazD7cB7k0z0HBCZqFYruEs/9FWfSwHR1Z/YB7x3XrB PYAyxqshiBlVay5KP5rZbNgpBYFJyjqA9F+Jxmu+odXrp1nELh6eIpYJOs8/wHY2pW5P Y1WaqnV+2JSVJoe4rj8Ao76pfZsqL+MOs88kTjCCircHhXaiQhRX7gz9GakOWQEMhTqC LLUFK2rDafZKCKffZW9+MpAWlQH+cpmoflFvPTfe7M1EfpgzZ9ATcqaE5edNqUvkg9eT 06ag== X-Gm-Message-State: AOAM5322/0qsPPUKmQu66E8w82eiQZzOw1A/8oiVmvODDpLD/Qwi3xSR ZxaCxmSHKqcEQT9E5dzCNPta5q2GHRKR5nHU X-Google-Smtp-Source: ABdhPJzp7vT+jJdLuBef5e9EwvT4v/SiDwxUUMhen1g6rTlkMK9E0W03QOgzmvgHf/LwtusJeOmamA== X-Received: by 2002:a4a:7506:: with SMTP id j6mr3660013ooc.79.1620311098828; Thu, 06 May 2021 07:24:58 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id z204sm445490oia.2.2021.05.06.07.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 07:24:58 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Andre Przywara <andre.przywara@arm.com>, Masahiro Yamada <masahiroy@kernel.org>, Rasmus Villemoes <rasmus.villemoes@prevas.dk>, Robert Marko <robert.marko@sartura.hr>, Bin Meng <bmeng.cn@gmail.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v2 03/50] compiler: Add a comment to host_build() Date: Thu, 6 May 2021 08:23:51 -0600 Message-Id: <20210506142438.1310977-2-sjg@chromium.org> X-Mailer: git-send-email 2.31.1.607.g51e8a6a459-goog In-Reply-To: <20210506142438.1310977-1-sjg@chromium.org> References: <20210506142438.1310977-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
image: Reduce #ifdefs and ad-hoc defines in image code
|
expand
|
diff --git a/include/compiler.h b/include/compiler.h index 27b9843497a..67e52050b12 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -151,6 +151,11 @@ typedef unsigned long int uintptr_t; #define MEM_SUPPORT_64BIT_DATA 0 #endif +/** + * host_build() - check if we are building for the host + * + * @return true if building for the host, false if for a target + */ static inline bool host_build(void) { #ifdef USE_HOSTCC return true;
This function should have a comment explaining what it does. Add one. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v2: - Correct 'hose' typo include/compiler.h | 5 +++++ 1 file changed, 5 insertions(+)