Skip to content

Conversation

@sylvioalves
Copy link
Contributor

@sylvioalves sylvioalves commented Mar 10, 2022

This PR splits common-rom.ld into smaller linker files to enable custom placement of sections. It also updates ESP32 family to make use of this approach.

This is useful for architectures as such as ESP32 that requires log strings to be placed in RAM area
due to flash cache access. It can also be useful for applications that have small ROM footprint.

@github-actions github-actions bot added the area: API Changes to public APIs label Mar 10, 2022
@zephyrbot zephyrbot added area: RISCV RISCV Architecture (32-bit & 64-bit) platform: ESP32 Espressif ESP32 labels Mar 10, 2022
@sylvioalves sylvioalves force-pushed the bugfix/esp32_family_linker_cleanup branch 3 times, most recently from ef58e74 to 626ff0d Compare March 12, 2022 13:06
@sylvioalves
Copy link
Contributor Author

Removed snippets commit from this PR to #43725.

@sylvioalves sylvioalves force-pushed the bugfix/esp32_family_linker_cleanup branch from 626ff0d to 7f8c704 Compare March 15, 2022 04:15
@sylvioalves sylvioalves marked this pull request as draft March 15, 2022 10:14
@henrikbrixandersen henrikbrixandersen removed their request for review March 15, 2022 12:36
@sylvioalves sylvioalves force-pushed the bugfix/esp32_family_linker_cleanup branch from 7f8c704 to 055eb17 Compare March 16, 2022 22:06
@sylvioalves sylvioalves marked this pull request as ready for review March 16, 2022 22:07
@sylvioalves sylvioalves force-pushed the bugfix/esp32_family_linker_cleanup branch from 98b2a14 to ad24790 Compare April 11, 2022 13:47
@sylvioalves
Copy link
Contributor Author

@dcpleung Added your suggestion/PR.

@dcpleung
Copy link
Member

LGTM

uLipe
uLipe previously approved these changes Apr 13, 2022
glaubermaroto
glaubermaroto previously approved these changes Apr 13, 2022
@sylvioalves sylvioalves dismissed stale reviews from glaubermaroto and uLipe via 0a6040c April 14, 2022 03:12
@sylvioalves sylvioalves force-pushed the bugfix/esp32_family_linker_cleanup branch from ad24790 to 0a6040c Compare April 14, 2022 03:12
@sylvioalves
Copy link
Contributor Author

Rebased to add latest BT_IAS config.

@sylvioalves sylvioalves requested review from glaubermaroto and uLipe and removed request for uLipe April 14, 2022 03:13
Copy link
Contributor

@mbolivar-nordic mbolivar-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me.

glaubermaroto
glaubermaroto previously approved these changes Apr 21, 2022
@mbolivar-nordic
Copy link
Contributor

Needs rebase

dcpleung and others added 4 commits April 26, 2022 09:55
This splits common-rom.ld into smaller snippets so that these
chunks can be placed at different locations if so desired.

Signed-off-by: Daniel Leung <[email protected]>
This PR removes common-rom.ld section so that logging sections
can now be mapped into RAM area.

Signed-off-by: Sylvio Alves <[email protected]>
This PR removes common-rom.ld section so that logging sections
can now be mapped into RAM area.

Signed-off-by: Sylvio Alves <[email protected]>
This PR removes common-rom.ld section so that logging sections
can now be mapped into RAM area.

Signed-off-by: Sylvio Alves <[email protected]>
@sylvioalves sylvioalves force-pushed the bugfix/esp32_family_linker_cleanup branch from 0a6040c to bfa069c Compare April 26, 2022 13:01
@sylvioalves
Copy link
Contributor Author

Rebased and re-organized device-handles.ld. @ceolin, PTAL.

@glaubermaroto glaubermaroto self-requested a review April 26, 2022 14:30
@nashif nashif merged commit b9ba894 into zephyrproject-rtos:main Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: Logging area: RISCV RISCV Architecture (32-bit & 64-bit) platform: ESP32 Espressif ESP32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants