From e6fd25df83ac2478900e2fcd9da460b5cd11f90f Mon Sep 17 00:00:00 2001 From: Lingkai Dong Date: Mon, 22 Mar 2021 16:41:48 +0000 Subject: [PATCH] Enforce full-qualified path for `os_wrapper/*.h` Some host operating systems are case-insensitive and cannot distinguish (for example) `semaphore.h` in `os_wrapper` from `Semaphore.h` from Mbed OS `rtos`. This causes the wrong header to be included. By adding `os_wrapper/.mbedignore`, we guarantee that #include "Semaphore.h" always points to `rtos/Semaphore.h`, while the fully-qualified include #include "os_wrapper/semaphore.h" continues to work because its parent directory is still in the include path. --- .../TARGET_TFM/TARGET_TFM_LATEST/include/os_wrapper/.mbedignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/include/os_wrapper/.mbedignore diff --git a/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/include/os_wrapper/.mbedignore b/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/include/os_wrapper/.mbedignore new file mode 100644 index 0000000000..72e8ffc0db --- /dev/null +++ b/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/include/os_wrapper/.mbedignore @@ -0,0 +1 @@ +*