Skip to content

Commit ea0538e

Browse files
authored
Merge pull request #15140 from OpenNuvoton/nuvoton_m2354_tfm_cli1-post-build_custom_board
M2354: Enable post-build for custom board partially with Mbed CLI
2 parents 64a0128 + 173e407 commit ea0538e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/targets/NU_M2354.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
SCRIPT_DIR = dirname(abspath(__file__))
2929
MBED_OS_ROOT = abspath(path_join(SCRIPT_DIR, os.pardir, os.pardir))
30-
SECURE_ROOT = path_join(MBED_OS_ROOT, 'targets', 'TARGET_NUVOTON', 'TARGET_M2354', 'TARGET_TFM', 'TARGET_NU_M2354', 'COMPONENT_TFM_S_FW')
3130

3231
def m2354_tfm_bin(t_self, non_secure_image, secure_bin):
3332

@@ -37,6 +36,8 @@ def m2354_tfm_bin(t_self, non_secure_image, secure_bin):
3736
secure_bin = abspath(secure_bin)
3837
non_secure_image = abspath(non_secure_image)
3938

39+
SECURE_ROOT = dirname(secure_bin)
40+
4041
build_dir = dirname(non_secure_image)
4142
tempdir = path_join(build_dir, 'temp')
4243
if not isdir(tempdir):

0 commit comments

Comments
 (0)