Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | From 73c27b917e15eb04f39eedac9b79e5011e8a754f Mon Sep 17 00:00:00 2001 |
| 2 | From: Vishnu Banavath <vishnu.banavath@arm.com> |
| 3 | Date: Sat, 13 Nov 2021 07:47:44 +0000 |
| 4 | Subject: [PATCH] tools/cmake/common: applying lowercase project convention |
| 5 | |
| 6 | Lowercase convention should only apply on the paths inside TS |
| 7 | source-code. |
| 8 | Host build paths should not be lowercased. Otherwise, builds |
| 9 | with uppercase paths will break. |
| 10 | |
| 11 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 12 | Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> |
| 13 | |
| 14 | |
| 15 | --- |
| 16 | tools/cmake/common/AddPlatform.cmake | 4 ++-- |
| 17 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 18 | |
| 19 | diff --git a/tools/cmake/common/AddPlatform.cmake b/tools/cmake/common/AddPlatform.cmake |
| 20 | index ae34c6e4..31bcd8ca 100644 |
| 21 | --- a/tools/cmake/common/AddPlatform.cmake |
| 22 | +++ b/tools/cmake/common/AddPlatform.cmake |
| 23 | @@ -37,8 +37,8 @@ function(add_platform) |
| 24 | set(TGT ${MY_PARAMS_TARGET} CACHE STRING "") |
| 25 | |
| 26 | # Ensure file path conforms to lowercase project convention |
| 27 | - string(TOLOWER "${TS_PLATFORM_ROOT}/${TS_PLATFORM}/platform.cmake" _platdef) |
| 28 | - include(${_platdef}) |
| 29 | + string(TOLOWER "${TS_PLATFORM}/platform.cmake" _platdef) |
| 30 | + include(${TS_PLATFORM_ROOT}/${_platdef}) |
| 31 | set(CMAKE_CONFIGURE_DEPENDS ${_platdef}) |
| 32 | |
| 33 | unset(TGT CACHE) |