diff mbox series

[U-Boot,v2,1/3] armv8: fsl-layerscape: SPL size reduction

Message ID 1515209665-615-1-git-send-email-sumit.garg@nxp.com
State Accepted
Commit dcb081ba953dcfda54d56a7633a6daf029b87b24
Delegated to: York Sun
Headers show
Series [U-Boot,v2,1/3] armv8: fsl-layerscape: SPL size reduction | expand

Commit Message

Sumit Garg Jan. 6, 2018, 3:34 a.m. UTC
Compile-off mp.c and libfdt.c in case of SPL build. SPL size reduces
by approx 2k.

Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
---

Changes in v2:
Removed code specific to D-Cache off. With GCC 6.2 tool-chain, able
to reduce size to 79K.

 arch/arm/cpu/armv8/fsl-layerscape/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

York Sun Jan. 11, 2018, 7:37 p.m. UTC | #1
On 01/05/2018 08:00 AM, Sumit Garg wrote:
> Compile-off mp.c and libfdt.c in case of SPL build. SPL size reduces
> by approx 2k.
> 
> Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
> ---
> 
> Changes in v2:
> Removed code specific to D-Cache off. With GCC 6.2 tool-chain, able
> to reduce size to 79K.

Applied to fsl-qoriq master. Thanks.

York
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Makefile b/arch/arm/cpu/armv8/fsl-layerscape/Makefile
index 115c3fc..0cb6d4e 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/Makefile
+++ b/arch/arm/cpu/armv8/fsl-layerscape/Makefile
@@ -7,8 +7,10 @@ 
 obj-y += cpu.o
 obj-y += lowlevel.o
 obj-y += soc.o
+ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_MP) += mp.o
 obj-$(CONFIG_OF_LIBFDT) += fdt.o
+endif
 obj-$(CONFIG_SPL) += spl.o
 obj-$(CONFIG_$(SPL_)FSL_LS_PPA) += ppa.o