Skip to content

Commit

Permalink
soc : arm: st_stm32: stm32h5: add linker for STM32H5X
Browse files Browse the repository at this point in the history
add some modifications for linker

(cherry picked from commit 4293835)

Original-Signed-off-by: Marc Desvaux <[email protected]>
GitOrigin-RevId: 4293835
Change-Id: Iac96b19e16564f8bb89fc74ca83c496a8ffae03f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4672899
Tested-by: ChromeOS Prod (Robot) <[email protected]>
Commit-Queue: Tristan Honscheid <[email protected]>
Reviewed-by: Tristan Honscheid <[email protected]>
Tested-by: Tristan Honscheid <[email protected]>
  • Loading branch information
Desvauxm-st authored and Chromeos LUCI committed Jul 7, 2023
1 parent 6921f4d commit 249e600
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions soc/arm/st_stm32/stm32h5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ zephyr_include_directories(${ZEPHYR_BASE}/drivers)
zephyr_sources(
soc.c
)
zephyr_linker_sources(SECTIONS sections.ld)
19 changes: 19 additions & 0 deletions soc/arm/st_stm32/stm32h5/sections.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2020 Mario Jaun
*
* SPDX-License-Identifier: Apache-2.0
*/

#if DT_NODE_HAS_STATUS(DT_NODELABEL(mac), okay)

SECTION_DATA_PROLOGUE(eth_stm32,(NOLOAD),)
{
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sram3), okay)
. = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram3)));
*(.eth_stm32_desc)
. = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram3))) + 256;
*(.eth_stm32_buf)
. = ABSOLUTE(DT_REG_ADDR(DT_NODELABEL(sram3))) + 16K;
} GROUP_DATA_LINK_IN(LINKER_DT_NODE_REGION_NAME(DT_NODELABEL(sram3)), LINKER_DT_NODE_REGION_NAME(DT_NODELABEL(sram3)))
#endif
#endif

0 comments on commit 249e600

Please sign in to comment.