From: Marek Vasut Date: Wed, 25 May 2016 00:17:42 +0000 (+0200) Subject: mips: Allow overriding start.S in SPL X-Git-Tag: v2016.07-rc1~168^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecc9d26062c9dd6d0752c988a54b95453c20c749;p=platform%2Fkernel%2Fu-boot.git mips: Allow overriding start.S in SPL 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 Cc: Daniel Schwierzeck Cc: Paul Burton --- 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/