Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions subsys/zephyrbt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2024 O.S. Systems Software LTDA.
# Copyright (c) 2024 Freedom Veiculos Eletricos
# Copyright (c) 2024-2025 O.S. Systems Software LTDA.
# Copyright (c) 2024-2025 Freedom Veiculos Eletricos
# SPDX-License-Identifier: Apache-2.0

zephyr_sources_ifdef(CONFIG_ZEPHYR_BEHAVIOUR_TREE
Expand All @@ -17,4 +17,10 @@ zephyr_sources_ifdef(CONFIG_ZEPHYR_BEHAVIOUR_TREE_NODE_CONTEXT
zephyrbt_decorator_timeout.c
)

# Support LD linker template
zephyr_linker_sources(DATA_SECTIONS zephyrbt.ld)

# Support CMake linker generator
zephyr_iterable_section(
NAME zephyr_behaviour_tree
GROUP DATA_REGION ${XIP_ALIGN_WITH_INPUT})
6 changes: 3 additions & 3 deletions subsys/zephyrbt/zephyrbt.ld
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* Copyright (c) 2024 O.S. Systems Software LTDA.
* Copyright (c) 2024 Freedom Veiculos Eletricos
* Copyright (c) 2024-2025 O.S. Systems Software LTDA.
* Copyright (c) 2024-2025 Freedom Veiculos Eletricos
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/linker/iterable_sections.h>

ITERABLE_SECTION_RAM(zephyrbt_context, 4)
ITERABLE_SECTION_RAM(zephyrbt_context, Z_LINK_ITERABLE_SUBALIGN)