Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Aneesh V
On Friday 08 July 2011 07:11 PM, Wolfgang Denk wrote: > Dear Aneesh V, > > In message<4e170601.1080...@ti.com> you wrote: >> >> Symlinks, copies are not involved in either case. My question was this: >> Where should something like 'nand_spl/nand_boot.c' go in the new >> framework? >> >> 1) spl/nan

Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Wolfgang Denk
Dear Aneesh V, In message <4e170601.1080...@ti.com> you wrote: > > Symlinks, copies are not involved in either case. My question was this: > Where should something like 'nand_spl/nand_boot.c' go in the new > framework? > > 1) spl/nand/nand_boot.c OR > 2) drivers/nand/spl_nand_boot.c I have no st

Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Aneesh V
On Friday 08 July 2011 06:34 PM, Wolfgang Denk wrote: > Dear Aneesh V, > > In message<4e16fd50.3090...@ti.com> you wrote: >> >>> - use a different name instead of OBJTREE everywhere, and leave >> >> What Daniel suggested about using something like SPLTREE(or SPLOBJTREE) >> seems to be be right sol

Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Wolfgang Denk
Dear Aneesh V, In message <4e16fd50.3090...@ti.com> you wrote: > > > - use a different name instead of OBJTREE everywhere, and leave > > What Daniel suggested about using something like SPLTREE(or SPLOBJTREE) > seems to be be right solution then. Are you ok with that? Yes, if it works without to

Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Aneesh V
On Friday 08 July 2011 06:02 PM, Wolfgang Denk wrote: > Dear Aneesh V, > > In message<4e16eae9.5070...@ti.com> you wrote: >> +# create 'spl/obj' within OBJTREE for spl +OBJTREE := $(OBJTREE)/spl/obj > > This is the part I dislike: we redefine variables and lose track of > their original

Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Wolfgang Denk
Dear Aneesh V, In message <4e16eae9.5070...@ti.com> you wrote: > > >> +# create 'spl/obj' within OBJTREE for spl > >> +OBJTREE := $(OBJTREE)/spl/obj This is the part I dislike: we redefine variables and lose track of their original values. > >> +# We want the final binaries in this directory >

Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Daniel Schwierzeck
Dear Wolfgang, On Fri, Jul 8, 2011 at 11:17 AM, Wolfgang Denk wrote: > Dear Daniel Schwierzeck, > > In message > <1309883182-12854-4-git-send-email-daniel.schwierz...@googlemail.com> you > wrote: > ... >> +# create 'spl/obj' within OBJTREE for spl >> +OBJTREE := $(OBJTREE)/spl/obj >> +LNDIR    

Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Aneesh V
Dear Wolfgang, On Friday 08 July 2011 02:47 PM, Wolfgang Denk wrote: > Dear Daniel Schwierzeck, > > In > message<1309883182-12854-4-git-send-email-daniel.schwierz...@googlemail.com> > you wrote: > ... Let's consider an out-of-tree build. Then, $(OBJTREE) is BUILD_DIR here. >> +# create 'spl/o

Re: [U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-08 Thread Wolfgang Denk
Dear Daniel Schwierzeck, In message <1309883182-12854-4-git-send-email-daniel.schwierz...@googlemail.com> you wrote: ... > +# create 'spl/obj' within OBJTREE for spl > +OBJTREE := $(OBJTREE)/spl/obj > +LNDIR:= $(OBJTREE) > + > +include $(TOPDIR)/config.mk > +# We want the final binaries i

[U-Boot] [RFC PATCH 3/4] Add new folder and build system for SPL

2011-07-05 Thread Daniel Schwierzeck
[ane...@ti.com: 1. Changed definition of OBJTREE for SPL 2. Added support for linker script from various places 4. $(OBJTREE)/spl/obj for objects 5. Minor cleanup ] [daniel.schwierz...@googlemail.com: 1. removed ALL and clean targets 2. fixed out-of-tree build error on u-boot-spl.lds generation 3.