From: Masahiro Yamada Date: Tue, 03 Dec 2013 14:15:17 +0900 Subject: [U-Boot] [v4 1/6] Driver/DDR: Moving Freescale DDR driver to a common driver In-Reply-To: <1385409233-5333-1-git-send-email-yorksun@freescale.com> References: <1385409233-5333-1-git-send-email-yorksun@freescale.com> Message-ID: <20131203141516.EF85.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello York. > --- a/arch/powerpc/cpu/mpc83xx/Makefile > +++ b/arch/powerpc/cpu/mpc83xx/Makefile > @@ -38,11 +38,11 @@ obj-$(CONFIG_OF_LIBFDT) += fdt.o > # Stub implementations of cache management functions for USB > obj-y += cache.o > > -ifdef CONFIG_FSL_DDR2 > -obj-$(CONFIG_MPC8349) += ../mpc85xx/ddr-gen2.o > +ifdef CONFIG_SYS_FSL_DDR2 > +obj-$(CONFIG_MPC8349) += $(SRCTREE)/drivers/ddr/fsl/mpc85xx_ddr_gen2.o This Makefile is NG. The object file, mpc85xx_ddr_gen2.o, is created under a strange path. Just build with O= and find out where this object is created. $ rm -rf build/ $ make O=build MPC8349EMDS_config Configuring for MPC8349EMDS board... $ make O=build CROSS_COMPILE=powerpc-linux- <> $ find . -name mpc85xx_ddr_gen2.o ./build/arch/powerpc/cpu/mpc83xx/home/yamada/workspace/u-boot/drivers/ddr/fsl/mpc85xx_ddr_gen2.o And it also looks weird to me. Why did you put this code in arch/powerpc/cpu/mpc83xx/Makefie, not drivers/ddr/fsl/Makefile ? Best Regards Masahiro Yamada