summaryrefslogtreecommitdiff
path: root/zephyr/linker/image_size.ld
blob: 170daf141d6ee8c0ab18193abbc9914bd0f9610c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Copyright 2021 The ChromiumOS Authors
 * 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) || defined (CONFIG_RISCV)
__image_size = CONFIG_PLATFORM_EC_RW_TOTAL_IMAGE_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