Skip to content

Commit 9c1ab4f

Browse files
thsieh97kartben
authored andcommitted
modules: mbedtls: fix PSA Kconfig file generation on Windows
When running in a Windows environment, convert the slash direction to match that used in config.psa and config-psa.h to eliminate the issue. Signed-off-by: Tiffany Hsieh <thsieh@atmosic.com>
1 parent 0820668 commit 9c1ab4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/mbedtls/create_psa_files.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/python3
22

33
# Copyright (c) 2024 Nordic Semiconductor ASA
4+
# Copyright (c) Atmosic 2025
45
# SPDX-License-Identifier: Apache-2.0
56

67
import re
@@ -17,6 +18,9 @@
1718
KCONFIG_PATH=os.path.join(SCRIPT_PATH, "Kconfig.psa.auto")
1819
HEADER_PATH=os.path.join(SCRIPT_PATH, "configs", "config-psa.h")
1920

21+
if sys.platform == "win32":
22+
INPUT_REL_PATH = INPUT_REL_PATH.replace("\\", "/")
23+
2024
KCONFIG_HEADER="""\
2125
# Copyright (c) 2024 Nordic Semiconductor ASA
2226
# SPDX-License-Identifier: Apache-2.0

0 commit comments

Comments
 (0)