From patchwork Mon Feb 20 23:50:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 142213 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 41B7FB6EF3 for ; Tue, 21 Feb 2012 10:50:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3C2642809F; Tue, 21 Feb 2012 00:50:23 +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 YaRNsFjpPbsw; Tue, 21 Feb 2012 00:50:23 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B241F28098; Tue, 21 Feb 2012 00:50:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 758A828098 for ; Tue, 21 Feb 2012 00:50:18 +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 J7DYqT5fy-Hg for ; Tue, 21 Feb 2012 00:50:18 +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-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by theia.denx.de (Postfix) with ESMTPS id 9969828096 for ; Tue, 21 Feb 2012 00:50:15 +0100 (CET) Received: by dakl33 with SMTP id l33so5662723dak.3 for ; Mon, 20 Feb 2012 15:50:14 -0800 (PST) Received-SPF: pass (google.com: domain of tom.rini@gmail.com designates 10.68.129.162 as permitted sender) client-ip=10.68.129.162; Authentication-Results: mr.google.com; spf=pass (google.com: domain of tom.rini@gmail.com designates 10.68.129.162 as permitted sender) smtp.mail=tom.rini@gmail.com; dkim=pass header.i=tom.rini@gmail.com Received: from mr.google.com ([10.68.129.162]) by 10.68.129.162 with SMTP id nx2mr13182331pbb.94.1329781814373 (num_hops = 1); Mon, 20 Feb 2012 15:50:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=b/mo0/kRBtgeUVkHxmNl2ouzvdvjXCc2WIeAfJiaYkU=; b=U2NWIZGyt3+PTMF0oB3YKjcwRIVm/TTpj5JCEmopDPJGI9yPhE2OAQ3X8f8WACMnn5 OfF4w08Wdr3cQgB5yjGTnq34zs7Q3V5MOwP35pxLvoZTe01yfBaFJDmYVYFonSXuZf3M ClxHx6Wf25KTDkF8YtgQ6NEGeMkVgicFY5hV8= Received: by 10.68.129.162 with SMTP id nx2mr10668991pbb.94.1329781814241; Mon, 20 Feb 2012 15:50:14 -0800 (PST) Received: from localhost.localdomain (ip68-230-54-74.ph.ph.cox.net. [68.230.54.74]) by mx.google.com with ESMTPS id f1sm25937260pbq.15.2012.02.20.15.50.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Feb 2012 15:50:13 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Mon, 20 Feb 2012 16:50:10 -0700 Message-Id: <1329781810-15447-1-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1329240581-7616-4-git-send-email-trini@ti.com> References: <1329240581-7616-4-git-send-email-trini@ti.com> Subject: [U-Boot] [PATCH v4 3/6] config.mk: Check for -fstack-usage support 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 Acked-by: Mike Frysinger Signed-off-by: Tom Rini --- Changes for v2: - Move check from arch/arm/config.mk to config.mk, reword summary Changes for v3: - Drop trailing comma in cc-option call (per Mike Frysinger) Changes for v4: - Add .su files to clean list add .su to nuke list Signed-off-by: Tom Rini --- Makefile | 2 +- config.mk | 4 ++++ 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 11aac21..8e66739 100644 --- a/Makefile +++ b/Makefile @@ -749,7 +749,7 @@ clean: @rm -f $(obj)MLO @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) @find $(OBJTREE) -type f \ - \( -name 'core' -o -name '*.bak' -o -name '*~' \ + \( -name 'core' -o -name '*.bak' -o -name '*~' -o -name '*.su' \ -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ | xargs rm -f diff --git a/config.mk b/config.mk index 596ba93..fa33e62 100644 --- a/config.mk +++ b/config.mk @@ -232,6 +232,10 @@ CFLAGS_WARN := $(call cc-option,-Wno-format-nonliteral) \ $(call cc-option,-Wno-format-security) CFLAGS += $(CFLAGS_WARN) +# Report stack usage if supported +CFLAGS_STACK := $(call cc-option,-fstack-usage) +CFLAGS += $(CFLAGS_STACK) + # $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g # option to the assembler. AFLAGS_DEBUG :=