diff mbox

[U-Boot] mips: Allow overriding start.S in SPL

Message ID 1464135462-6876-1-git-send-email-marex@denx.de
State Accepted
Commit ecc9d26062c9dd6d0752c988a54b95453c20c749
Delegated to: Daniel Schwierzeck
Headers show

Commit Message

Marek Vasut May 25, 2016, 12:17 a.m. UTC
Certain chips, like the JZ47xx, have extreme size constraints on the
SPL size and require custom start.S . Allow overriding the start.S
the same way ARM MXS does it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Paul Burton <paul.burton@imgtec.com>
---
 arch/mips/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Daniel Schwierzeck May 25, 2016, 11:25 p.m. UTC | #1
Am 25.05.2016 um 02:17 schrieb Marek Vasut:
> Certain chips, like the JZ47xx, have extreme size constraints on the
> SPL size and require custom start.S . Allow overriding the start.S
> the same way ARM MXS does it.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> Cc: Paul Burton <paul.burton@imgtec.com>
> ---
>  arch/mips/Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
> 

applied to u-boot-mips, thanks.
diff mbox

Patch

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 655a493..0b5dbb6 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -4,6 +4,12 @@ 
 
 head-y := arch/mips/cpu/start.o
 
+ifeq ($(CONFIG_SPL_BUILD),y)
+ifneq ($(CONFIG_SPL_START_S_PATH),)
+head-y := $(CONFIG_SPL_START_S_PATH:"%"=%)/start.o
+endif
+endif
+
 libs-y += arch/mips/cpu/
 libs-y += arch/mips/lib/