powerpc/8xxx: Reduce NAND-SPL build size
PATCH 1/1 powerpc/8xxx: Reduce NAND-SPL build size
We don't use disable_law in the SPL code so only build it if !CONFIG_NAND_SPL.
--- drivers/misc/fsl_law.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/misc/fsl_law.c +1 -1
@@ -79,6 +79,7 @@ void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id)in_be32 (LAWAR_ADDR (idx)); } +#ifndef CONFIG_NAND_SPL void disable_law (u8 idx) { gd->used_laws &= ~(1 << idx);
@@ -92,7 +93,6 @@ void disable_law(u8 idx)return ; } -#ifndef CONFIG_NAND_SPL static int get_law_entry (u8 i,struct law_entry *e) {u32 lawar;
Signature · 1 line
1.7.2.3
PATCH 1/1 powerpc/8xxx: Reduce NAND-SPL build size
Dear Kumar Gala,
Quoted 2 lines · In message <[email protected]> you…
We don't use
disable_lawin the SPL code so only build it if !CONFIG_NAND_SPL.
Does -ffunction-sections / --gc-sections not catch this automatically?
Best regards,
Wolfgang Denk
Signature · 6 lines
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: wd at denx.de
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
- Antoine de Saint-ExuperyPATCH 1/1 powerpc/8xxx: Reduce NAND-SPL build size
Quoted 7 lines · Wolfgang Denk
Dear Kumar Gala,
Quoted 2 lines · In message <[email protected]> you…
We don't use
disable_lawin the SPL code so only build it if !CONFIG_NAND_SPL.Does -ffunction-sections / --gc-sections not catch this automatically?
Doesn't appear to, but not sure if the NAND makefiles are utilizing those options.
- k
PATCH 1/1 powerpc/8xxx: Reduce NAND-SPL build size
Dear Kumar Gala,
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 5 lines
Quoted 3 lines
We don't use
disable_lawin the SPL code so only build it if !CONFIG_NAND_SPL.Does -ffunction-sections / --gc-sections not catch this automatically?
Doesn't appear to, but not sure if the NAND makefiles are utilizing those options.
Can you please verify this first?
At first glace it looks as if the compilation was done with -ffunction-sections and -fdata-sections, but I don't see --gc-sections on the linker command line
Best regards,
Wolfgang Denk
Signature · 4 lines
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: wd at denx.de Quantum particles: The dreams that stuff is made of.
PATCH 1/1 powerpc/8xxx: Reduce NAND-SPL build size
Quoted 9 lines · Wolfgang Denk
Dear Kumar Gala,
Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 5 lines
Quoted 3 lines
We don't use
disable_lawin the SPL code so only build it if !CONFIG_NAND_SPL.Does -ffunction-sections / --gc-sections not catch this automatically?
Quoted 7 lines
Quoted 1 line
Doesn't appear to, but not sure if the NAND makefiles are utilizing those options.
Can you please verify this first?
At first glace it looks as if the compilation was done with -ffunction-sections and -fdata-sections, but I don't see --gc-sections on the linker command line
commit 8aba9dceebb14144e07d19593111ee3a999c37fc
Author: Nobuhiro Iwamatsu <[email protected]> Date: Thu Jan 6 10:23:54 2011 +0900
Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS
However, I think this is fixed via:
http://patchwork.ozlabs.org/patch/84010/
Which we need anyways, because Haiying's patch fixes nand boot in general.
- k
PATCH 1/1 powerpc/8xxx: Reduce NAND-SPL build size
In reply to Kumar GalaQuoted 7 lines · Kumar Gala
We don't use
disable_lawin the SPL code so only build it if !CONFIG_NAND_SPL.Signed-off-by Kumar Gala <[email protected]>---
drivers/misc/fsl_law.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)
not need, fixed by --gc-sections / -ffunction-sections working properly
- k