public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 08/24 V2] cpu/ppc4xx/Makefile: build only needed object files
Date: Thu, 25 Nov 2010 17:00:28 +0100	[thread overview]
Message-ID: <1290700844-31427-9-git-send-email-wd@denx.de> (raw)
In-Reply-To: <1290373420-3053-1-git-send-email-wd@denx.de>

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
---
Stefan, if it's OK with you I will pull this directly.

 arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c           |    4 ---
 arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c |    3 --
 arch/powerpc/cpu/ppc4xx/Makefile                 |   25 ++++++++-------------
 3 files changed, 10 insertions(+), 22 deletions(-)

diff --git a/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c b/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c
index cf9d66d..9634deb 100644
--- a/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c
+++ b/arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c
@@ -50,8 +50,6 @@
 
 #include "ecc.h"
 
-#if defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2)
-
 #define PPC4xx_IBM_DDR2_DUMP_REGISTER(mnemonic)				\
 	do {								\
 		u32 data;						\
@@ -3194,5 +3192,3 @@ inline void ppc4xx_ibm_ddr2_register_dump(void)
 	PPC4xx_IBM_DDR2_DUMP_REGISTER(RTSR);
 #endif /* defined(DEBUG) */
 }
-
-#endif /* CONFIG_SDRAM_PPC4xx_IBM_DDR2 */
diff --git a/arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c b/arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
index e90c93e..b909fca 100644
--- a/arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
+++ b/arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
@@ -44,8 +44,6 @@
 
 #include "ecc.h"
 
-#if defined(CONFIG_PPC4xx_DDR_AUTOCALIBRATION)
-
 /*
  * Only compile the DDR auto-calibration code for NOR boot and
  * not for NAND boot (NAND SPL and NAND U-Boot - NUB)
@@ -1253,4 +1251,3 @@ u32 DQS_autocalibration(void)
 	return 0;
 }
 #endif /* !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) */
-#endif /* defined(CONFIG_PPC4xx_DDR_AUTOCALIBRATION) */
diff --git a/arch/powerpc/cpu/ppc4xx/Makefile b/arch/powerpc/cpu/ppc4xx/Makefile
index 129a61e..d97ca20 100644
--- a/arch/powerpc/cpu/ppc4xx/Makefile
+++ b/arch/powerpc/cpu/ppc4xx/Makefile
@@ -34,31 +34,27 @@ SOBJS	+= kgdb.o
 
 COBJS	:= 40x_spd_sdram.o
 
+ifndef CONFIG_NAND_SPL
+ifndef CONFIG_NAND_U_BOOT
 COBJS	+= 44x_spd_ddr.o
-COBJS	+= 44x_spd_ddr2.o
-ifdef CONFIG_PPC4xx_DDR_AUTOCALIBRATION
-COBJS	+= 4xx_ibm_ddr2_autocalib.o
 endif
+endif
+COBJS-$(CONFIG_SDRAM_PPC4xx_IBM_DDR2) += 44x_spd_ddr2.o
+COBJS-$(CONFIG_PPC4xx_DDR_AUTOCALIBRATION) += 4xx_ibm_ddr2_autocalib.o
 COBJS	+= 4xx_pci.o
 COBJS	+= 4xx_pcie.o
 COBJS	+= bedbug_405.o
-ifdef CONFIG_CMD_CHIP_CONFIG
-COBJS	+= cmd_chip_config.o
-endif
+COBJS-$(CONFIG_CMD_CHIP_CONFIG)	+= cmd_chip_config.o
 COBJS	+= cpu.o
 COBJS	+= cpu_init.o
 COBJS	+= denali_data_eye.o
 COBJS	+= denali_spd_ddr2.o
 COBJS	+= ecc.o
-ifdef CONFIG_CMD_ECCTEST
-COBJS	+= cmd_ecctest.o
-endif
+COBJS-$(CONFIG_CMD_ECCTEST) += cmd_ecctest.o
 COBJS	+= fdt.o
 COBJS	+= interrupts.o
 COBJS	+= iop480_uart.o
-ifdef CONFIG_CMD_REGINFO
-COBJS	+= reginfo.o
-endif
+COBJS-$(CONFIG_CMD_REGINFO) += reginfo.o
 COBJS	+= sdram.o
 COBJS	+= speed.o
 COBJS	+= tlb.o
@@ -66,17 +62,16 @@ COBJS	+= traps.o
 COBJS	+= usb.o
 COBJS	+= usb_ohci.o
 COBJS	+= usbdev.o
+COBJS-$(CONFIG_XILINX_440) += xilinx_irq.o
 ifndef CONFIG_XILINX_440
 COBJS	+= 4xx_uart.o
 COBJS	+= gpio.o
 COBJS	+= miiphy.o
 COBJS	+= uic.o
-else
-COBJS	+= xilinx_irq.o
 endif
 
 SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
+OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS-y))
 START	:= $(addprefix $(obj),$(START))
 
 all:	$(obj).depend $(START) $(LIB)
-- 
1.7.3.2

  parent reply	other threads:[~2010-11-25 16:00 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-21 21:03 [U-Boot] [PATCH 0/7] Address partial linking issues Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 1/7] common/Makefile: don't include env_embedded.o into libcommon Wolfgang Denk
2010-11-21 21:45   ` Mike Frysinger
2010-11-21 21:03 ` [U-Boot] [PATCH 2/7] cpu/ppc4xx/Makefile: build only needed object files Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 3/7] arch/powerpc/config.mk: make CONFIG_SYS_LDSCRIPT settings work Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 4/7] PPChameleonEVB and CATcenter need a custom linker script Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 5/7] ERIC: drop unsupported board configuration Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 6/7] POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections Wolfgang Denk
2010-11-21 22:31   ` Peter Tyser
2010-11-22  7:11     ` Wolfgang Denk
2010-11-22  7:10   ` [U-Boot] [PATCH 6/7 v2] " Wolfgang Denk
2010-11-21 21:03 ` [U-Boot] [PATCH 7/7] 4xx: Cleanup for partial linking and --gc-sections Wolfgang Denk
2010-11-23 13:31   ` Stefan Roese
2010-11-23 19:55     ` Wolfgang Denk
2010-11-24  5:40       ` Stefan Roese
2010-11-22  7:34 ` [U-Boot] [PATCH] 86xx: " Wolfgang Denk
2010-11-22 20:37 ` [U-Boot] [PATCH] 8xx: " Wolfgang Denk
2010-11-22 21:44 ` [U-Boot] [PATCH] 5xx: " Wolfgang Denk
2010-11-22 22:40 ` [U-Boot] [PATCH] 512x: " Wolfgang Denk
2010-11-22 22:58   ` Timur Tabi
2010-11-29 21:24   ` Anatolij Gustschin
2010-11-29 21:28   ` [U-Boot] [PATCH] video: move fsl_diu_fb driver to drivers/video Anatolij Gustschin
2010-12-01 19:53     ` Anatolij Gustschin
2010-11-23  6:02 ` [U-Boot] [PATCH 0/7] Address partial linking issues Stefan Roese
2010-11-25 16:00 ` [U-Boot] [PATCH 01/24] 0000-Address-partial-linking-issues Wolfgang Denk
2010-11-27 22:18   ` Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 01/24] ERIC: drop unsupported board configuration Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 02/24] barco: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 03/24] e1000: fix compile warning Wolfgang Denk
2010-11-28 17:48   ` Sergei Shtylyov
2010-11-25 16:00 ` [U-Boot] [PATCH 04/24] IDS8247: remove redundant flash.c file Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 05/24] WINBOND_83C553: enable only on boards that actually use it Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 06/24] cam5200_niosflash: fix build warnings Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 07/24 V2] common/Makefile: don't include env_embedded.o into libcommon Wolfgang Denk
2010-11-25 16:00 ` Wolfgang Denk [this message]
2010-11-25 16:10   ` [U-Boot] [PATCH 08/24 V2] cpu/ppc4xx/Makefile: build only needed object files Stefan Roese
2010-11-25 16:00 ` [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk: make CONFIG_SYS_LDSCRIPT settings work Wolfgang Denk
2010-11-25 16:20   ` [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk: makeCONFIG_SYS_LDSCRIPT " Haiying Wang
2010-11-25 17:19     ` Wolfgang Denk
2010-11-25 18:16       ` [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk:makeCONFIG_SYS_LDSCRIPT " Haiying Wang
2010-11-25 18:28         ` Wolfgang Denk
2010-11-25 18:59           ` Haiying Wang
2010-11-25 17:47     ` [U-Boot] [PATCH 09/24 V2] arch/powerpc/*/config.mk: makeCONFIG_SYS_LDSCRIPT " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 10/24 V2] PPChameleonEVB and CATcenter need a custom linker script Wolfgang Denk
2010-11-25 16:12   ` Stefan Roese
2010-11-25 16:00 ` [U-Boot] [PATCH 11/24 V2] ppc4xx: Fix build problems of IBM DDR2 NAND booting targets Wolfgang Denk
2010-11-25 16:15   ` Stefan Roese
2010-11-25 16:00 ` [U-Boot] [PATCH 12/24 V3] POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 13/24 V2] ppc4xx: Cleanup for partial linking and --gc-sections Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 14/24 V2] ppc4xx/NAND: Reduce size of NAND SPL image Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 15/24 V2] 83xx: Cleanup for partial linking and --gc-sections Wolfgang Denk
2010-11-25 18:02   ` Wolfgang Denk
2010-11-25 18:23   ` [U-Boot] [PATCH 15/24 V2] 83xx: Cleanup for partial linking and--gc-sections Haiying Wang
2010-11-25 18:32     ` Wolfgang Denk
2010-11-25 18:56       ` Haiying Wang
2010-11-26 19:53         ` Wolfgang Denk
2010-11-26 19:56   ` [U-Boot] [PATCH 15/25 V3] 83xx: Cleanup for partial linking and --gc-sections Wolfgang Denk
2010-11-28 15:11     ` [U-Boot] [PATCH 15/25 V4] " Kim Phillips
2010-11-28 16:36       ` Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 16/24 V2] 86xx: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 17/24 V2] 8xx: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 18/24 V2] 5xx: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 19/24 V2] 512x: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 20/24 V2] 5xxx: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 21/24 V2] 8220: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 22/24 V2] 824x: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 23/24 V2] 8260: " Wolfgang Denk
2010-11-25 16:00 ` [U-Boot] [PATCH 24/24 V2] 74xx_7xx: " Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1290700844-31427-9-git-send-email-wd@denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox