Dear Kumar Gala, In message <ae2e740c-25bb-48db-bb6f-a92b91d57...@kernel.crashing.org> you wrote: > > >>> +LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds > >>> +endif > >>> +endif > >>> +endif > >> > >> Why is this config.mk needed? Can you not do all this in the board > >> config file instead? > > Do you mean the board header file or arch/powerpc/config.mk? I did not > see any LDSCRIPT defined in Freescale board header file. > > I think something like: > > diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h > index e6b60cf..f2d6cdb 100644 > --- a/include/configs/MPC8572DS.h > +++ b/include/configs/MPC8572DS.h > @@ -37,6 +37,7 @@ > #define CONFIG_NAND_U_BOOT > #define CONFIG_RAMBOOT_NAND > #ifdef CONFIG_NAND_SPL > +#define CONFIG_SYS_LDSCRIPT "arch/powerpc/cpu/mpc85xx/u-boot-nand.lds"
This will eventually break with out of tree builds. Rather use #define CONFIG_SYS_LDSCRIPT $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de There's a way out of any cage. -- Captain Christopher Pike, "The Menagerie" ("The Cage"), stardate unknown. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot