From c33c2bf04e3a8288d79b55cf95206a34b33b6ccf Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 3 Apr 2023 15:49:14 -0700 Subject: picolibc: Allow default memory layout values to be configured These values are used when constructing the default linker scripts used with picolibc. Setting reasonable defaults allows simple test applications to be compiled without additional configuration. Signed-off-by: Keith Packard --- scripts/build/companion_libs/340-picolibc.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/build/companion_libs/340-picolibc.sh b/scripts/build/companion_libs/340-picolibc.sh index 929babf0..0b2038e6 100644 --- a/scripts/build/companion_libs/340-picolibc.sh +++ b/scripts/build/companion_libs/340-picolibc.sh @@ -82,6 +82,10 @@ endian = '${CT_ARCH_ENDIAN}' c_args = [ ${meson_cflags} '-nostdlib', '-fno-common', '-ftls-model=local-exec' ] needs_exe_wrapper = true skip_sanity_check = true +default_flash_addr = '${CT_LIBC_PICOLIBC_DEFAULT_FLASH_ADDR}' +default_flash_size = '${CT_LIBC_PICOLIBC_DEFAULT_FLASH_SIZE}' +default_ram_addr = '${CT_LIBC_PICOLIBC_DEFAULT_RAM_ADDR}' +default_ram_size = '${CT_LIBC_PICOLIBC_DEFAULT_RAM_SIZE}' EOF local picolibc_sysroot_dir -- cgit v1.2.3