diff options
Diffstat (limited to 'zephyr/linker')
-rw-r--r-- | zephyr/linker/CMakeLists.txt | 19 | ||||
-rw-r--r-- | zephyr/linker/fixed-sections.ld | 8 | ||||
-rw-r--r-- | zephyr/linker/image_size.ld | 17 | ||||
-rw-r--r-- | zephyr/linker/iram_text.ld | 23 | ||||
-rw-r--r-- | zephyr/linker/iterables-ram.ld | 3 | ||||
-rw-r--r-- | zephyr/linker/iterables-rom.ld | 7 | ||||
-rw-r--r-- | zephyr/linker/npcx-lfw.ld | 24 |
7 files changed, 0 insertions, 101 deletions
diff --git a/zephyr/linker/CMakeLists.txt b/zephyr/linker/CMakeLists.txt deleted file mode 100644 index 71955c6d9d..0000000000 --- a/zephyr/linker/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 2021 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Add the fixed sections to the output image. -zephyr_linker_sources(ROM_START SORT_KEY 1 fixed-sections.ld) - -# Support protection of part of the internal RAM -zephyr_linker_sources(RWDATA SORT_KEY 1 iram_text.ld) - -# Compute the image size -zephyr_linker_sources(RAM_SECTIONS image_size.ld) - -# Little FW with specific purposes used by NPCX EC -zephyr_linker_sources_ifdef(CONFIG_SOC_FAMILY_NPCX ROM_START SORT_KEY 1 - npcx-lfw.ld) - -zephyr_linker_sources(DATA_SECTIONS iterables-ram.ld) -zephyr_linker_sources(SECTIONS iterables-rom.ld) diff --git a/zephyr/linker/fixed-sections.ld b/zephyr/linker/fixed-sections.ld deleted file mode 100644 index 5046823713..0000000000 --- a/zephyr/linker/fixed-sections.ld +++ /dev/null @@ -1,8 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#if defined(CONFIG_PLATFORM_EC) && !defined(CONFIG_ARCH_POSIX) -*(.fixed.*) -#endif diff --git a/zephyr/linker/image_size.ld b/zephyr/linker/image_size.ld deleted file mode 100644 index b1e401ae7f..0000000000 --- a/zephyr/linker/image_size.ld +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#if defined(CONFIG_CPU_CORTEX_M) || defined(CONFIG_CPU_CORTEX_R) || \ - defined(CONFIG_CPU_CORTEX_A) -__image_size = _flash_used; -#elif defined(CONFIG_RISCV) -__image_size = __rom_region_size; -#else -/* - * Intentionally set to 0. Some components, such as EFS2, need this value. - * Having it be 0 will make it easier to find and add new cores. - */ -__image_size = 0; -#endif diff --git a/zephyr/linker/iram_text.ld b/zephyr/linker/iram_text.ld deleted file mode 100644 index 3ea3f4db7e..0000000000 --- a/zephyr/linker/iram_text.ld +++ /dev/null @@ -1,23 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef CONFIG_ARCH_POSIX - -/* This code taken from core/cortex-m/ec.lds.S */ - -#if defined(CONFIG_PLATFORM_EC_MPU) -/* MPU regions must be aligned to a 32-byte boundary */ -#define _IRAM_ALIGN 32 -#else -#define _IRAM_ALIGN 4 -#endif - - . = ALIGN(_IRAM_ALIGN); - __iram_text_start = .; - *(.iram.text) - . = ALIGN(_IRAM_ALIGN); - __iram_text_end = .; - -#endif /* CONFIG_ARCH_POSIX */ diff --git a/zephyr/linker/iterables-ram.ld b/zephyr/linker/iterables-ram.ld deleted file mode 100644 index 58318a0e78..0000000000 --- a/zephyr/linker/iterables-ram.ld +++ /dev/null @@ -1,3 +0,0 @@ -#ifdef CONFIG_PLATFORM_EC_HOOKS -ITERABLE_SECTION_RAM(zephyr_shim_hook_list, 4) -#endif diff --git a/zephyr/linker/iterables-rom.ld b/zephyr/linker/iterables-rom.ld deleted file mode 100644 index b8e451a085..0000000000 --- a/zephyr/linker/iterables-rom.ld +++ /dev/null @@ -1,7 +0,0 @@ -#ifdef CONFIG_PLATFORM_EC_HOSTCMD -ITERABLE_SECTION_ROM(host_command, 4) -#endif - -#ifdef CONFIG_PLATFORM_EC_MKBP_EVENT -ITERABLE_SECTION_ROM(mkbp_event_source, 4) -#endif diff --git a/zephyr/linker/npcx-lfw.ld b/zephyr/linker/npcx-lfw.ld deleted file mode 100644 index a6de1df65a..0000000000 --- a/zephyr/linker/npcx-lfw.ld +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -. = ALIGN(4); -__lfw_text_start = .; -*(.lfw.*) -. = ALIGN(4); -__lfw_text_end = .; - -#ifdef CONFIG_PLATFORM_EC_EXTERNAL_STORAGE -. = ALIGN(4); -__flash_lpfw_start = .; -/* Entering deep idle FW for better power consumption */ -KEEP(*(.lowpower_ram)) -. = ALIGN(4); -__flash_lpfw_end = .; -__flash_lplfw_start = .; -/* GDMA utilities for better FW download speed */ -KEEP(*(.lowpower_ram2)) -. = ALIGN(4); -__flash_lplfw_end = .; -#endif /* CONFIG_PLATFORM_EC_EXTERNAL_STORAGE */ |