: davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
PATCH 1/1 : davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
Make the conditional compilation in misc.c based on CONFIG_SPL_BUILD, replacing CONFIG_PRELOADER which was removed as part of commit 401bb30b6d.
Making this change, we no longer need to compile memsize.c for hawkboard's nand_spl.
---
Tested the changes on hawkboard.
Build tested on davinci boards with a 'MAKEALL -v davinci'
board/davinci/common/misc.c | 2 +- nand_spl/board/davinci/da8xxevm/Makefile | 6 ------ 2 files changed, 1 insertions(+), 7 deletions(-)
board/davinci/common/misc.c +1 -1
@@ -33,7 +33,7 @@DECLARE_GLOBAL_DATA_PTR ; -#ifndef CONFIG_PRELOADER +#ifndef CONFIG_SPL_BUILD int dram_init (void ) {/* dram_init must store complete ramsize in gd->ram_size */
nand_spl/board/davinci/da8xxevm/Makefile +0 -6
@@ -45,7 +45,6 @@ COBJS = cpu.o \ davinci_pinmux.o \ div0.o \ hawkboard_nand_spl.o \ - memsize.o \ misc.o \ nand_boot.o \ ns16550.o \
@@ -136,11 +135,6 @@ $(obj)psc.c: @rm -f $@ ln -s $(TOPDIR)/arch/arm/cpu/arm926ejs/davinci/psc.c $@ -# from common directory -$(obj)memsize.c: - @rm -f $@ - ln -s $(TOPDIR)/common/memsize.c $@ - ######################################################################### $(obj)%.o: $(obj)%.S
Signature · 1 line
1.7.4.1
PATCH 1/1 : davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
Quoted 8 lines · Sughosh Ganu
Make the conditional compilation in
misc.cbased onCONFIG_SPL_BUILD, replacingCONFIG_PRELOADERwhich was removed as part of commit401bb30b6d.Making this change, we no longer need to compile
memsize.cfor hawkboard'snand_spl.Signed-off-by Sughosh Ganu <[email protected]>
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 1/1 : davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
In reply to Sughosh GanuHello Ganu,
Quoted 10 lines · Sughosh Ganu
Make the conditional compilation in
misc.cbased onCONFIG_SPL_BUILD, replacingCONFIG_PRELOADERwhich was removed as part of commit401bb30b6d.Making this change, we no longer need to compile
memsize.cfor hawkboard'snand_spl.Signed-off-by Sughosh Ganu <[email protected]>---
Quoted 7 lines
Tested the changes on hawkboard.
Build tested on davinci boards with a 'MAKEALL -v davinci'board/davinci/common/misc.c | 2 +- nand_spl/board/davinci/da8xxevm/Makefile | 6 ------ 2 files changed, 1 insertions(+), 7 deletions(-)
Hehe, have similiar patch in my queue, so:
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
PATCH 1/1 : davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
In reply to Sughosh GanuQuoted 10 lines · Sughosh Ganu
Make the conditional compilation in
misc.cbased onCONFIG_SPL_BUILD, replacingCONFIG_PRELOADERwhich was removed as part of commit401bb30b6d.Making this change, we no longer need to compile
memsize.cfor hawkboard'snand_spl.Signed-off-by Sughosh Ganu <[email protected]>---
Quoted 7 lines
Tested the changes on hawkboard.
Build tested on davinci boards with a 'MAKEALL -v davinci'board/davinci/common/misc.c | 2 +- nand_spl/board/davinci/da8xxevm/Makefile | 6 ------ 2 files changed, 1 insertions(+), 7 deletions(-)
Will this not go through ti next branch. I don't see this patch included in the u-boot-ti/next pull request by Sandeep.
-sughosh
PATCH 1/1 : davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
Quoted 15 lines · Sughosh Ganu
Quoted 14 lines · Sughosh Ganu
Make the conditional compilation in
misc.cbased onCONFIG_SPL_BUILD, replacingCONFIG_PRELOADERwhich was removed as part of commit401bb30b6d.Making this change, we no longer need to compile
memsize.cfor hawkboard'snand_spl.Signed-off-by Sughosh Ganu <[email protected]>---
Tested the changes on hawkboard.
Build tested on davinci boards with a 'MAKEALL -v davinci'
Quoted 6 lines
Quoted 3 lines
board/davinci/common/misc.c | 2 +- nand_spl/board/davinci/da8xxevm/Makefile | 6 ------ 2 files changed, 1 insertions(+), 7 deletions(-)Will this not go through ti next branch. I don't see this patch included in the u-boot-ti/next pull request by Sandeep.
Sandeep, can this be included in the ti tree. This has been pending for some time now. Thanks.
-sughosh
PATCH 1/1 : davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
Hello Sughosh Ganu,
Quoted 16 lines · Sughosh Ganu
Quoted 15 lines · Sughosh Ganu
Quoted 14 lines · Sughosh Ganu
Make the conditional compilation in
misc.cbased onCONFIG_SPL_BUILD, replacingCONFIG_PRELOADERwhich was removed as part of commit401bb30b6d.Making this change, we no longer need to compile
memsize.cfor hawkboard'snand_spl.Signed-off-by Sughosh Ganu <[email protected]>---
Tested the changes on hawkboard.
Build tested on davinci boards with a 'MAKEALL -v davinci'
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
board/davinci/common/misc.c | 2 +- nand_spl/board/davinci/da8xxevm/Makefile | 6 ------ 2 files changed, 1 insertions(+), 7 deletions(-)Will this not go through ti next branch. I don't see this patch included in the u-boot-ti/next pull request by Sandeep.
Sandeep, can this be included in the ti tree. This has been pending for some time now. Thanks.
@Sandeep: if you apply this patch, can you please remove my patch
http://patchwork.ozlabs.org/patch/106983/
pending since 2011-07-27 from patchworks?
Thanks!
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
PATCH v2 1/1 davinci: Remove unwanted memsize.c from hawkboard's nand spl build
In reply to Sughosh Ganudram_init function in board/davinci/common/misc.c does not get compiled for spl builds, thus rendering inclusion of memsize.c useless.
---
Changes since V1:
Rebased to current master branch
nand_spl/board/davinci/da8xxevm/Makefile | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
nand_spl/board/davinci/da8xxevm/Makefile +0 -6
@@ -45,7 +45,6 @@ COBJS = cpu.o \ davinci_pinmux.o \ div0.o \ hawkboard_nand_spl.o \ - memsize.o \ misc.o \ nand_boot.o \ ns16550.o \
@@ -136,11 +135,6 @@ $(obj)psc.c: @rm -f $@ ln -s $(TOPDIR)/arch/arm/cpu/arm926ejs/davinci/psc.c $@ -# from common directory -$(obj)memsize.c: - @rm -f $@ - ln -s $(TOPDIR)/common/memsize.c $@ - ######################################################################### $(obj)%.o: $(obj)%.S
Signature · 1 line
1.7.5.4