Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 37559c70443fe85e246f1f652045f0cd3c78012b 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 [In review] |
| 12 | Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com> |
| 13 | Signed-off-by: Anton Antonov <Anton.Antonov@arm.com> |
| 14 | |
| 15 | diff --git a/tools/cmake/common/AddPlatform.cmake b/tools/cmake/common/AddPlatform.cmake |
| 16 | index ae34c6e..31bcd8c 100644 |
| 17 | --- a/tools/cmake/common/AddPlatform.cmake |
| 18 | +++ b/tools/cmake/common/AddPlatform.cmake |
| 19 | @@ -37,8 +37,8 @@ function(add_platform) |
| 20 | set(TGT ${MY_PARAMS_TARGET} CACHE STRING "") |
| 21 | |
| 22 | # Ensure file path conforms to lowercase project convention |
| 23 | - string(TOLOWER "${TS_PLATFORM_ROOT}/${TS_PLATFORM}/platform.cmake" _platdef) |
| 24 | - include(${_platdef}) |
| 25 | + string(TOLOWER "${TS_PLATFORM}/platform.cmake" _platdef) |
| 26 | + include(${TS_PLATFORM_ROOT}/${_platdef}) |
| 27 | set(CMAKE_CONFIGURE_DEPENDS ${_platdef}) |
| 28 | |
| 29 | unset(TGT CACHE) |
| 30 | -- |
| 31 | 2.25.1 |
| 32 | |