From ec6935692a1ecd69473ca0f1990d8ed280dfca61 Mon Sep 17 00:00:00 2001 From: Caesar Wang Date: Tue, 11 Oct 2016 09:36:00 +0800 Subject: rockchip: optimize the link mechanism for SRAM code Add the common extra.ld.S and customized rk3399.ld.S to extend to more features for different platforms. For example, we can add SRAM section and specific address to load there if we need it, and the common bl31.ld.S not need to be modified. Therefore, we can remove the unused codes which copying explicitly from the function pmusram_prepare(). It looks like more clear. Change-Id: Ibffa2da5e8e3d1d2fca80085ebb296ceb967fce8 Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang --- bl31/bl31.ld.S | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bl31') diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S index 743e65c40..9a05e6c3c 100644 --- a/bl31/bl31.ld.S +++ b/bl31/bl31.ld.S @@ -39,6 +39,9 @@ MEMORY { RAM (rwx): ORIGIN = BL31_BASE, LENGTH = BL31_LIMIT - BL31_BASE } +#ifdef PLAT_EXTRA_LD_SCRIPT +#include +#endif SECTIONS { -- cgit v1.2.3