From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Date: Fri, 20 Jan 2017 01:53:26 +0000 Subject: [U-Boot] [RFC PATCH 06/11] sunxi: A64: SPL: allow large SPL binary In-Reply-To: <1484877211-19332-1-git-send-email-andre.przywara@arm.com> References: <1484877211-19332-1-git-send-email-andre.przywara@arm.com> Message-ID: <1484877211-19332-7-git-send-email-andre.przywara@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Compiling the SPL in AArch64 results in bigger code, which exceeds the pretty conservative default limits of mksunxiboot. Use the newly introduced command line parameters to extend the file size limit to the actual one, which is 32 KB. Signed-off-by: Andre Przywara --- scripts/Makefile.spl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index c962bbc..ee87084 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -167,6 +167,11 @@ endif ifdef CONFIG_ARCH_SUNXI ALL-y += $(obj)/sunxi-spl.bin +ifdef CONFIG_MACH_SUN50I + MKSUNXIBOOT_PARAMS = --mmc --max +else + MKSUNXIBOOT_PARAMS = +endif endif ifeq ($(CONFIG_SYS_SOC),"at91") @@ -271,7 +276,7 @@ $(obj)/$(SPL_BIN).sfp: $(obj)/$(SPL_BIN).bin FORCE $(call if_changed,mkimage) quiet_cmd_mksunxiboot = MKSUNXI $@ -cmd_mksunxiboot = $(objtree)/tools/mksunxiboot $< $@ +cmd_mksunxiboot = $(objtree)/tools/mksunxiboot $(MKSUNXIBOOT_PARAMS) $< $@ $(obj)/sunxi-spl.bin: $(obj)/$(SPL_BIN).bin FORCE $(call if_changed,mksunxiboot) -- 2.8.2