From patchwork Tue Mar 15 03:53:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zang Roy-R61911 X-Patchwork-Id: 86851 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 CF99FB6FBA for ; Tue, 15 Mar 2011 15:30:50 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EA87428090; Tue, 15 Mar 2011 05:30:45 +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 GEy4tyXgQNrw; Tue, 15 Mar 2011 05:30:45 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F20228089; Tue, 15 Mar 2011 05:30:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4C3A228089 for ; Tue, 15 Mar 2011 05:30: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 EtVA82NVV9Mz for ; Tue, 15 Mar 2011 05:30: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 TX2EHSOBE009.bigfish.com (tx2ehsobe004.messaging.microsoft.com [65.55.88.14]) by theia.denx.de (Postfix) with ESMTPS id 1672C28088 for ; Tue, 15 Mar 2011 05:30:36 +0100 (CET) Received: from mail72-tx2-R.bigfish.com (10.9.14.247) by TX2EHSOBE009.bigfish.com (10.9.40.29) with Microsoft SMTP Server id 14.1.225.8; Tue, 15 Mar 2011 04:30:32 +0000 Received: from mail72-tx2 (localhost.localdomain [127.0.0.1]) by mail72-tx2-R.bigfish.com (Postfix) with ESMTP id DA7B7D9026D; Tue, 15 Mar 2011 04:30:32 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bh8275dhz2dh2a8h668h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail72-tx2 (localhost.localdomain [127.0.0.1]) by mail72-tx2 (MessageSwitch) id 1300163432792038_29072; Tue, 15 Mar 2011 04:30:32 +0000 (UTC) Received: from TX2EHSMHS012.bigfish.com (unknown [10.9.14.244]) by mail72-tx2.bigfish.com (Postfix) with ESMTP id BCD47290052; Tue, 15 Mar 2011 04:30:32 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS012.bigfish.com (10.9.99.112) with Microsoft SMTP Server (TLS) id 14.1.225.8; Tue, 15 Mar 2011 04:30:32 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.270.2; Mon, 14 Mar 2011 23:30:32 -0500 Received: from rock.ap.freescale.net (rock.ap.freescale.net [10.193.20.106]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p2F4URfE010957; Mon, 14 Mar 2011 23:30:28 -0500 (CDT) From: Roy Zang To: Date: Tue, 15 Mar 2011 11:53:42 +0800 Message-ID: <1300161222-19050-1-git-send-email-tie-fei.zang@freescale.com> X-Mailer: git-send-email 1.7.3.5 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: Wood Scott-B07421 , Kumar Gala Subject: [U-Boot] [PATCH] powerpc:Enable compiler debug option for powerpc platforms X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This patch enables compiler debug option for powerpc platforms by default. Patch is tested on 85xx/QorIQ platforms in u-boot with CodeWarrior. Signed-off-by: Roy Zang Cc: Wood Scott-B07421 Cc: Kumar Gala --- Consider the comments http://lists.denx.de/pipermail/u-boot/2010-October/080689.html http://lists.denx.de/pipermail/u-boot/2011-January/086485.html arch/powerpc/config.mk | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk index 64191c7..8bd57e3 100644 --- a/arch/powerpc/config.mk +++ b/arch/powerpc/config.mk @@ -53,3 +53,5 @@ endif ifeq ($(CROSS_COMPILE),powerpc-openbsd-) PLATFORM_CPPFLAGS+= -D__PPC__ endif +# default enable debug option for powerpc platform +PLATFORM_CPPFLAGS+= -ggdb -Wa,-gdwarf2