diff options
author | Anas Nashif <anas.nashif@intel.com> | 2015-10-01 17:31:31 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-02-05 20:24:22 -0500 |
commit | ee743c7d42d6d74238e4c4e4c4d52e54a07a8a1a (patch) | |
tree | ec5f4089d9152e2cd2aaba50678d649ed3a43849 /misc | |
parent | 5d4eb7812ba322d9e4faadeb54a4586166e665d8 (diff) |
build: allow usage of a custom linker script
This change will allow the use of a custom linker script by
setting the config variable CUSTOM_LINKER_SCRIPT to a path outside
of Zephyr tree.
This is useful when an application needs to add sections into the
linker script and avoid having to change the script provided by
Zephyr.
Change-Id: Ibe31abcc8c0227e734f59bc26d3c8d5619951b29
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/Kconfig | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/Kconfig b/misc/Kconfig index 5eec4378b..81c6bcd0b 100644 --- a/misc/Kconfig +++ b/misc/Kconfig @@ -42,6 +42,29 @@ config KERNEL_BIN_NAME default "microkernel" if MICROKERNEL default "nanokernel" if NANOKERNEL + +config HAVE_CUSTOM_LINKER_SCRIPT + prompt "Custom linker scripts provided" + def_bool n + help + Set this option if you have a custom linker script which needed to + be define in CUSTOM_LINKER_SCRIPT. + +config CUSTOM_LINKER_SCRIPT + string "Path to custom linker script" + default "" + depends on HAVE_CUSTOM_LINKER_SCRIPT + help + Path to the linker script to be used instead of the one define by the + platform. + + The linker script must be based on a version provided by Zephyr since + the kernel can expect a certain layout/certain regions. + + This is useful when an application needs to add sections into the + linker script and avoid having to change the script provided by + Zephyr. + config CROSS_COMPILE string "Cross-compiler tool prefix" help |