-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake: fix memory map generation #13985
Conversation
Fixes ARMmbed#13983 Move linker script to the function mbed_set_mbed_target_linker_script. I also moved memmap as it is needed for an app. The location might not be the best fit, we will address this in separate pull request.
@0xc0170, thank you for your changes. |
This is just fixing the issue reported, we shall look at how linker is defined. I'll create a separate issue for this (related to latest CMake linker report #13981) |
cc @ladislas |
It works! :) Thanks for the fast fix! 🚀 |
Do we need to do the same thing for the ARM toolchain? If so, why not have this PR update both toolchains? |
No, as it preprocess sct files. We do not need to do it separately as for GCC ARM. To this applies only to GCC ARM |
I was referring to the memmap flags. Do we also need to move the memmap flags we have in |
Is this the one:
To be moved? I can move it. But I would not have moved if we do not need an app name to generate specific map file. I'll check the naming with armclang. |
ARMClang has already I moved --map for ARMClang as well as we might get output directed as well if it's removed in ARMClang module in CMake (I crated CMake issue to find out what we can do about it). I would like to use @hugueskamba please review |
Can you please amend the PR title and description? |
Done, CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Fixes #13983
Move linker script and memmap to the function mbed_set_mbed_target_linker_script. Done for both toolchains.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers