From patchwork Mon Mar 18 23:51:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 228839 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B3A2C2C00B1 for ; Tue, 19 Mar 2013 10:53:46 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1FBE84A03F; Tue, 19 Mar 2013 00:53:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lgml5LBp-hQA; Tue, 19 Mar 2013 00:53:42 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CFB634A088; Tue, 19 Mar 2013 00:53:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2770B4A03E for ; Tue, 19 Mar 2013 00:53:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id geLhTsEFqJtl for ; Tue, 19 Mar 2013 00:53:21 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qa0-f73.google.com (mail-qa0-f73.google.com [209.85.216.73]) by theia.denx.de (Postfix) with ESMTPS id CB8F94A02A for ; Tue, 19 Mar 2013 00:53:18 +0100 (CET) Received: by mail-qa0-f73.google.com with SMTP id g10so355519qah.2 for ; Mon, 18 Mar 2013 16:53:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=bCsxVJTucGoVGNVBgI60bFYoezkaHM44RdsB5/x0E0g=; b=aKxRI9ahDGzp4ctEjAH3vKtNfqRR8eHtcSflKjwl4W5fVRcI77UzdwxIGTypqIR+Zv fYw0XqVitcS3Az0lADNegIXPv5+V17uI0X3Qk7wRzyjn8mzUUaoxIbplDFt/QNrX3cFy is/zJpyPRhBe2krWepZU2pfcucF/DH+AmMXZj7dWLF1mlPwV2YP116i7lbKuCjJTbEQZ 07x61nfhiO52jJ3oLYcAMzOc8AQ05ktAQUzdnCkwDcRVv/tMig7wESJRsm731E8lgfjB dQ2BulUyUIZ/9MrFIZ+eO+A+oYLskjG12xBadwBNvCKe/1g1Zzj2s/yZeq84OSg0SwR6 sfyg== X-Received: by 10.52.17.102 with SMTP id n6mr13282094vdd.8.1363650797572; Mon, 18 Mar 2013 16:53:17 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id u21si2190216yhj.0.2013.03.18.16.53.17 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Mon, 18 Mar 2013 16:53:17 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id 6752B5A41B0; Mon, 18 Mar 2013 16:53:17 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 2719F160341; Mon, 18 Mar 2013 16:53:17 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Mon, 18 Mar 2013 16:51:22 -0700 Message-Id: <1363650725-30459-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.1.3 In-Reply-To: <1363650725-30459-1-git-send-email-sjg@chromium.org> References: <1363650725-30459-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQnTtdh4cuBkyp3uCe+XiHHuOy1yHh/dMn/kNHAToh8fvMOVJ4FwMTV0nbZrS8GRwG+lbuV81r9Tw4WTcuoh4lpDe11Dv7gZ8OH74xNkW3CLAHx7K/qlNoRik16hFDFIxlJWj9BhVZxrI8EnEq2+q/jP2tXGSNrJlnzseHUbiqzY4M9nrhTt13A2/tBh1G4lidnPTub/ Cc: Joel A Fernandes , Will Drewry , u-boot-review@google.com, Bill Richardson , Randall Spangler , Tom Rini , Vadim Bendebury , =?UTF-8?q?Andreas=20B=C3=A4ck?= , Kees Cook Subject: [U-Boot] [PATCH v2 02/45] bootstage: Don't build for HOSTCC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de We don't measure boot timing on the host, or with SPL, so use both conditions in the bootstage header. This allows us to avoid using conditional compilation around bootstage_...() calls. (#ifdef) Signed-off-by: Simon Glass --- Changes in v2: - Fix line continuation problem include/bootstage.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/bootstage.h b/include/bootstage.h index 3b2216b..4df03ae 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -221,7 +221,7 @@ enum bootstage_id { */ ulong timer_get_boot_us(void); -#ifndef CONFIG_SPL_BUILD +#if !defined(CONFIG_SPL_BUILD) && !defined(USE_HOSTCC) /* * Board code can implement show_boot_progress() if needed. * @@ -233,7 +233,8 @@ void show_boot_progress(int val); #define show_boot_progress(val) do {} while (0) #endif -#if defined(CONFIG_BOOTSTAGE) && !defined(CONFIG_SPL_BUILD) +#if defined(CONFIG_BOOTSTAGE) && !defined(CONFIG_SPL_BUILD) && \ + !defined(USE_HOSTCC) /* This is the full bootstage implementation */ /**