bsp/xilinx-zynqmp: Simplify linkcmds config

Do all calculations in the linker command file.  This is a preparation
for the new build system.
This commit is contained in:
Sebastian Huber
2019-10-23 14:03:39 +02:00
parent 4ecab5865e
commit 1e1afa3779
2 changed files with 3 additions and 9 deletions

View File

@@ -1,9 +1,9 @@
MEMORY {
RAM_INT_0 : ORIGIN = @ZYNQMP_RAM_INT_0_ORIGIN@, LENGTH = @ZYNQMP_RAM_INT_0_LENGTH@
RAM_INT_1 : ORIGIN = @ZYNQMP_RAM_INT_1_ORIGIN@, LENGTH = @ZYNQMP_RAM_INT_1_LENGTH@
RAM_MMU : ORIGIN = @ZYNQMP_RAM_MMU@, LENGTH = @ZYNQMP_RAM_MMU_LENGTH@
RAM : ORIGIN = @ZYNQMP_RAM_ORIGIN_AVAILABLE@, LENGTH = @ZYNQMP_RAM_LENGTH_AVAILABLE@ - @ZYNQMP_RAM_NOCACHE_LENGTH@
NOCACHE : ORIGIN = @ZYNQMP_RAM_ORIGIN_AVAILABLE@ + @ZYNQMP_RAM_LENGTH_AVAILABLE@ - @ZYNQMP_RAM_NOCACHE_LENGTH@, LENGTH = @ZYNQMP_RAM_NOCACHE_LENGTH@
RAM_MMU : ORIGIN = @ZYNQMP_RAM_ORIGIN@, LENGTH = @ZYNQMP_RAM_MMU_LENGTH@
RAM : ORIGIN = @ZYNQMP_RAM_ORIGIN@ + @ZYNQMP_RAM_MMU_LENGTH@, LENGTH = @BSP_ZYNQMP_RAM_LENGTH@ - @ZYNQMP_RAM_ORIGIN@ - @ZYNQMP_RAM_MMU_LENGTH@ - @ZYNQMP_RAM_NOCACHE_LENGTH@
NOCACHE : ORIGIN = @BSP_ZYNQMP_RAM_LENGTH@ - @ZYNQMP_RAM_NOCACHE_LENGTH@, LENGTH = @ZYNQMP_RAM_NOCACHE_LENGTH@
}
REGION_ALIAS ("REGION_START", RAM);