mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 15:08:59 +00:00
cpu/ppc4xx/Makefile: build only needed object files
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Acked-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
0390e26705
commit
a7186b8073
3 changed files with 10 additions and 22 deletions
|
@ -50,8 +50,6 @@
|
||||||
|
|
||||||
#include "ecc.h"
|
#include "ecc.h"
|
||||||
|
|
||||||
#if defined(CONFIG_SDRAM_PPC4xx_IBM_DDR2)
|
|
||||||
|
|
||||||
#define PPC4xx_IBM_DDR2_DUMP_REGISTER(mnemonic) \
|
#define PPC4xx_IBM_DDR2_DUMP_REGISTER(mnemonic) \
|
||||||
do { \
|
do { \
|
||||||
u32 data; \
|
u32 data; \
|
||||||
|
@ -3194,5 +3192,3 @@ inline void ppc4xx_ibm_ddr2_register_dump(void)
|
||||||
PPC4xx_IBM_DDR2_DUMP_REGISTER(RTSR);
|
PPC4xx_IBM_DDR2_DUMP_REGISTER(RTSR);
|
||||||
#endif /* defined(DEBUG) */
|
#endif /* defined(DEBUG) */
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_SDRAM_PPC4xx_IBM_DDR2 */
|
|
||||||
|
|
|
@ -44,8 +44,6 @@
|
||||||
|
|
||||||
#include "ecc.h"
|
#include "ecc.h"
|
||||||
|
|
||||||
#if defined(CONFIG_PPC4xx_DDR_AUTOCALIBRATION)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only compile the DDR auto-calibration code for NOR boot and
|
* Only compile the DDR auto-calibration code for NOR boot and
|
||||||
* not for NAND boot (NAND SPL and NAND U-Boot - NUB)
|
* not for NAND boot (NAND SPL and NAND U-Boot - NUB)
|
||||||
|
@ -1253,4 +1251,3 @@ u32 DQS_autocalibration(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) */
|
#endif /* !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) */
|
||||||
#endif /* defined(CONFIG_PPC4xx_DDR_AUTOCALIBRATION) */
|
|
||||||
|
|
|
@ -34,31 +34,27 @@ SOBJS += kgdb.o
|
||||||
|
|
||||||
COBJS := 40x_spd_sdram.o
|
COBJS := 40x_spd_sdram.o
|
||||||
|
|
||||||
|
ifndef CONFIG_NAND_SPL
|
||||||
|
ifndef CONFIG_NAND_U_BOOT
|
||||||
COBJS += 44x_spd_ddr.o
|
COBJS += 44x_spd_ddr.o
|
||||||
COBJS += 44x_spd_ddr2.o
|
|
||||||
ifdef CONFIG_PPC4xx_DDR_AUTOCALIBRATION
|
|
||||||
COBJS += 4xx_ibm_ddr2_autocalib.o
|
|
||||||
endif
|
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_pci.o
|
||||||
COBJS += 4xx_pcie.o
|
COBJS += 4xx_pcie.o
|
||||||
COBJS += bedbug_405.o
|
COBJS += bedbug_405.o
|
||||||
ifdef CONFIG_CMD_CHIP_CONFIG
|
COBJS-$(CONFIG_CMD_CHIP_CONFIG) += cmd_chip_config.o
|
||||||
COBJS += cmd_chip_config.o
|
|
||||||
endif
|
|
||||||
COBJS += cpu.o
|
COBJS += cpu.o
|
||||||
COBJS += cpu_init.o
|
COBJS += cpu_init.o
|
||||||
COBJS += denali_data_eye.o
|
COBJS += denali_data_eye.o
|
||||||
COBJS += denali_spd_ddr2.o
|
COBJS += denali_spd_ddr2.o
|
||||||
COBJS += ecc.o
|
COBJS += ecc.o
|
||||||
ifdef CONFIG_CMD_ECCTEST
|
COBJS-$(CONFIG_CMD_ECCTEST) += cmd_ecctest.o
|
||||||
COBJS += cmd_ecctest.o
|
|
||||||
endif
|
|
||||||
COBJS += fdt.o
|
COBJS += fdt.o
|
||||||
COBJS += interrupts.o
|
COBJS += interrupts.o
|
||||||
COBJS += iop480_uart.o
|
COBJS += iop480_uart.o
|
||||||
ifdef CONFIG_CMD_REGINFO
|
COBJS-$(CONFIG_CMD_REGINFO) += reginfo.o
|
||||||
COBJS += reginfo.o
|
|
||||||
endif
|
|
||||||
COBJS += sdram.o
|
COBJS += sdram.o
|
||||||
COBJS += speed.o
|
COBJS += speed.o
|
||||||
COBJS += tlb.o
|
COBJS += tlb.o
|
||||||
|
@ -66,17 +62,16 @@ COBJS += traps.o
|
||||||
COBJS += usb.o
|
COBJS += usb.o
|
||||||
COBJS += usb_ohci.o
|
COBJS += usb_ohci.o
|
||||||
COBJS += usbdev.o
|
COBJS += usbdev.o
|
||||||
|
COBJS-$(CONFIG_XILINX_440) += xilinx_irq.o
|
||||||
ifndef CONFIG_XILINX_440
|
ifndef CONFIG_XILINX_440
|
||||||
COBJS += 4xx_uart.o
|
COBJS += 4xx_uart.o
|
||||||
COBJS += gpio.o
|
COBJS += gpio.o
|
||||||
COBJS += miiphy.o
|
COBJS += miiphy.o
|
||||||
COBJS += uic.o
|
COBJS += uic.o
|
||||||
else
|
|
||||||
COBJS += xilinx_irq.o
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
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))
|
START := $(addprefix $(obj),$(START))
|
||||||
|
|
||||||
all: $(obj).depend $(START) $(LIB)
|
all: $(obj).depend $(START) $(LIB)
|
||||||
|
|
Loading…
Add table
Reference in a new issue