Skip to content

Remove redundant Debug/Release parameter to postbuild.sh #28

@jespertragardh

Description

@jespertragardh

Describe the set-up

  • STM32CubeIDE 1.18.0

Describe the bug
The STM32CubeIDE/postbuild.sh files (17 in total for the different projects) have code like this:

# arg2 is the config type (Debug, Release)
config=$2

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestinternal bug trackerIssue confirmed and logged into the internal bug tracking systemprojectsProjects-related (demos, applications, examples) issue or pull-request.

Type

Projects

Status

Analyzed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions