blob: 83c7b545c9ba7e592e55a68e7f26b89b999156cc [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001From 73c27b917e15eb04f39eedac9b79e5011e8a754f Mon Sep 17 00:00:00 2001
2From: Vishnu Banavath <vishnu.banavath@arm.com>
3Date: Sat, 13 Nov 2021 07:47:44 +0000
4Subject: [PATCH] tools/cmake/common: applying lowercase project convention
5
6Lowercase convention should only apply on the paths inside TS
7source-code.
8Host build paths should not be lowercased. Otherwise, builds
9with uppercase paths will break.
10
11Upstream-Status: Pending [Not submitted to upstream yet]
12Signed-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
19diff --git a/tools/cmake/common/AddPlatform.cmake b/tools/cmake/common/AddPlatform.cmake
20index 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)