From patchwork Sat Jan 5 01:51:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 209598 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 28BBC2C008D for ; Sat, 5 Jan 2013 12:57:28 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C68F14A121; Sat, 5 Jan 2013 02:57: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 AgukqSn5ksa9; Sat, 5 Jan 2013 02:57:22 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6C6054A09E; Sat, 5 Jan 2013 02:56:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4D3524A02F for ; Sat, 5 Jan 2013 02:56:39 +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 5DDmA1PiVWsm for ; Sat, 5 Jan 2013 02:56:38 +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-we0-f201.google.com (mail-we0-f201.google.com [74.125.82.201]) by theia.denx.de (Postfix) with ESMTPS id 2EC334A02D for ; Sat, 5 Jan 2013 02:56:36 +0100 (CET) Received: by mail-we0-f201.google.com with SMTP id t11so1064727wey.2 for ; Fri, 04 Jan 2013 17:56:36 -0800 (PST) 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=vzHTWUqfYNoY3nHSqo/QEIL7jBCBo+k+vvlMkrKg+LQ=; b=YlMoUfgmRkDw7Uplp+UEwhM3h90M10roblvln+E+btC7J+UCvo05MTa08gNe9kIt1C 1VaEOxGLMKQlP3ohJo7c9Yv6sC+2nJsXbOheVaQONhfYQKo3+G3BvAuY6Rt3+V/77ip4 3/wsiZtq336A74PS/UV4ZHd+8Fij3W6m+5841OliDCgDe+j5jn790JnkMPihcQ0R6P4A q592RFnKMnQ1b6I/Fal3RUox13gDmGgZNCHITH+/EEx7TGtY7zpohWjbQM4Hc5fqJC97 MC8PYu3Nvo4LVD6PAgMxeI/V6+H3lbmtLgwue0lbD0CvG4OXtoRvCmI+/atpmhV7tTGi IidQ== X-Received: by 10.14.224.201 with SMTP id x49mr69178050eep.5.1357350996451; Fri, 04 Jan 2013 17:56:36 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id z44si19167163een.0.2013.01.04.17.56.36 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 04 Jan 2013 17:56:36 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id 16BFD20004E; Fri, 4 Jan 2013 17:56:36 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 56CEF160C72; Fri, 4 Jan 2013 17:56:35 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 4 Jan 2013 17:51:31 -0800 Message-Id: <1357350734-13737-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1357350734-13737-1-git-send-email-sjg@chromium.org> References: <1357350734-13737-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQkSRZH9ZfdzPT6M+rO9Zn5VFdAcmXIeGAzfQn2uUu+OsqWe635gqqFQ53V8WcUIOTN82R+BjoFnBQ3JAEsSm6v6layfeUpYuFFOt8b9rTcp3f8gSI3w3otOZsQkvn3RLaa1RxRCW0FcCSWCbBK3B+2MhVN445AgqMsujAGvWLTJdi9hARJ+Zey5SPNo21aG2wl2YGxE Cc: Joel A Fernandes , Tom Rini , Vadim Bendebury , =?UTF-8?q?Andreas=20B=C3=A4ck?= Subject: [U-Boot] [RFC PATCH 02/44] 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 --- include/bootstage.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/bootstage.h b/include/bootstage.h index 3b2216b..08bf2b0 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 */ /**