-
Notifications
You must be signed in to change notification settings - Fork 3k
Use boot stack size from config system #13452
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
Conversation
@Patater, thank you for your changes. |
Fixes ARMmbed/mbed-tools#55 |
@jeromecoutant Please review, you found this inconsistency in the tree previously. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recall any detail why we added another config which led to this confusion. It looks fine to me as it is now.
Thanks, it makes things a lot more consistent. It'd be good to have a similar PR to use |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Pull request has been modified.
Jenkins CI Test : ❌ FAILEDBuild Number: 6 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
CI failure is:
Looks like that target ran out of RAM. |
Yes, see #13498 |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
To allow overriding of the boot stack size from the Mbed configuration system, consistently use MBED_CONF_TARGET_BOOT_STACK_SIZE rather than MBED_BOOT_STACK_SIZE. Fixes ARMmbed#10319
The same default value is provided in the GCC_ARM linker file.
Workaround a bug where the boot stack size configuration option is not passed on to armlink, the Arm Compiler's linker. Prefer MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded value provided by the linkerscript. See ARMmbed#13474 for more information.
17f55ef
to
612b148
Compare
Rebased on latest |
CI Started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 7 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Already approved by @ARMmbed/mbed-os-core , I'll merge now |
Summary of changes
To allow overriding of the boot stack size from the Mbed configuration
system, consistently use MBED_CONF_TARGET_BOOT_STACK_SIZE rather than
MBED_BOOT_STACK_SIZE.
Fixes #10319
Impact of changes
Migration actions required
Documentation
Porting guide needs updating. PR available at ARMmbed/mbed-os-5-docs#1362
Pull request type
Test results
Reviewers