Page MenuHomePhabricator

Modify post build and flash scripts for stm32l5 platforms
Open, Needs TriagePublic

Description

The stm32l5 platforms employ a post build script, platform/ext/target/stm/stm32l5xx/boards/scripts/postbuild.sh, and a flash script, platform/ext/target/stm/stm32l5xx/boards/scripts/TFM_update.sh, working in Linux environment.

Could other environment such as OS X be supported, as it is done for the NXP LPC55S69 ? (in platform/ext/target/nxp/lpcxpresso55s69/scripts/build.sh). In particular for the usage of readlink, OS X requires greadlink.

Event Timeline

NolwennV renamed this task from Modify post build script for stm32l5 platforms to Modify post build and flash scripts for stm32l5 platforms.Tue, Aug 25, 12:37 PM
NolwennV updated the task description. (Show Details)

I've tested the scripts on OS X by changing readlink to greadlink (available via brew install coreutils), since the OS X system readlink doesn't support the -f option, and this works fine on OS X. A simple platform check is required to two of the scripts, similar to what you see here: https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/platform/ext/target/nxp/lpcxpresso55s69/scripts/build.sh#n11