-
Notifications
You must be signed in to change notification settings - Fork 29
Remove redundant Debug/Release parameter to postbuild.sh #28
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestinternal bug trackerIssue confirmed and logged into the internal bug tracking systemIssue confirmed and logged into the internal bug tracking systemprojectsProjects-related (demos, applications, examples) issue or pull-request.Projects-related (demos, applications, examples) issue or pull-request.rotRoot Of TrustRoot Of Trust
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestinternal bug trackerIssue confirmed and logged into the internal bug tracking systemIssue confirmed and logged into the internal bug tracking systemprojectsProjects-related (demos, applications, examples) issue or pull-request.Projects-related (demos, applications, examples) issue or pull-request.rotRoot Of TrustRoot Of Trust
Type
Projects
Status
Analyzed
Describe the set-up
Describe the bug
The STM32CubeIDE/postbuild.sh files (17 in total for the different projects) have code like this:
And are called from STM32CubeIDE with the currently selected build type as positional parameter. For
$Project/Applications/ROT/OEMiROT_Boot/STM32CubeIDE/postbuild.sh, the parameter is $1 but the rest of the description applies.
The parameter is not used since v1.5.0 when the code in postbuild.sh to copy the bin-file from the build output directory to Binary was replaced by a STM32CubeIDE postbuild step calling
arm-none-eabi-objcopy -O binary …to generate the binfile.This can be a bit confusing for developers who may think "surely this must have some effect somewhere but I can't find out where".
Suggested fix
Remove the remaining handling of parameter config from postbuild.sh and STM32CubeIDE's adding of the build config positional parameter.