zipl/boot: use C pre-processor for linker script generation

Use C pre-processor for linker script generation and refactor some
constants. This allows the usage of the constants in our "linker
scripts" `*.lds.S` (actually, these are assembler files, so we can
make us of the C pre-processor and its capabilities).

While at it, enforce the described memory layout in the generated
linker script.

Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2020-03-18 13:05:50 +01:00
committed by Jan Höppner
parent ce65c39e18
commit 19f747847f
7 changed files with 91 additions and 18 deletions
+2
View File
@@ -0,0 +1,2 @@
*.lds
*.lds.d