-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1478] Initial demo of self registration of tests for ut_assert.
- Loading branch information
Sam Price
committed
Sep 25, 2024
1 parent
8270166
commit b04c578
Showing
6 changed files
with
122 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# extract_linker_script.cmake | ||
|
||
# Read the full linker output | ||
file(READ "${DEFAULT_LD_FULL_PATH}" LD_OUTPUT) | ||
|
||
# Use a simple regex to extract the default linker script between '====' lines | ||
string(REGEX REPLACE ".*=+\n(.*)\n=+.*" "\\1" LD_SCRIPT_CONTENTS "${LD_OUTPUT}") | ||
|
||
# Write the extracted linker script to default.ld | ||
file(WRITE "${DEFAULT_LD_PATH}" "${LD_SCRIPT_CONTENTS}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Include the default linker script */ | ||
INCLUDE "@DEFAULT_LD_PATH@" | ||
|
||
|
||
SECTIONS | ||
{ | ||
|
||
/* Define the .utest_records section */ | ||
.utest_records : | ||
{ | ||
__start_utest_records = .; | ||
KEEP(*(.utest_records)); | ||
__stop_utest_records = .; | ||
} | ||
} | ||
|