Verified Commit e41c4607 authored by Rahix's avatar Rahix
Browse files

chore(sdk): Move heap into separate lib


Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 85f8bd64
......@@ -74,7 +74,7 @@ elf = executable(
module_sources,
dependencies: [libcard10, max32665_startup_core0, maxusb, libff13],
link_with: [api_dispatcher_lib, freertos],
link_whole: [max32665_startup_core0_lib, board_card10_lib],
link_whole: [max32665_startup_core0_lib, board_card10_lib, newlib_heap_lib],
include_directories: [freertos_includes],
link_args: [
'-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map',
......
......@@ -3,7 +3,7 @@ executable(
name + '.elf',
'main.c',
dependencies: [libcard10, max32665_startup_core0],
link_whole: [max32665_startup_core0_lib, board_card10_lib],
link_whole: [max32665_startup_core0_lib, board_card10_lib, newlib_heap_lib],
link_args: [
'-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map',
],
......@@ -14,7 +14,7 @@ executable(
name + '.elf',
'core1.c',
dependencies: [periphdriver, board_card10, max32665_startup_core1],
link_whole: [max32665_startup_core1_lib, board_card10_lib],
link_whole: [max32665_startup_core1_lib, board_card10_lib, newlib_heap_lib],
link_args: [
'-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map',
],
......
#############################################################
# NewLib Heap
#############################################################
sources = files(
'./Source/heap.c',
)
newlib_heap_lib = static_library(
'newlib_heap',
sources,
)
#############################################################
# For applications using just core0 or not dual-binaries
#############################################################
......@@ -28,7 +41,6 @@ max32665_startup = declare_dependency(
sources = files(
'./Source/GCC/startup_max32665.S',
'./Source/system_max32665.c',
'./Source/heap.c',
)
max32665_startup_core0_lib = static_library(
......@@ -51,7 +63,6 @@ max32665_startup_core0 = declare_dependency(
sources = files(
'./Source/GCC/startup_max32665.S',
'./Source/system_max32665_core1.c',
'./Source/heap.c',
)
max32665_startup_core1_lib = static_library(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment