summaryrefslogtreecommitdiff
path: root/meta-arm/meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/0001-cmake-modify-path-to-libmetal-version-file.patch
blob: d53524ad0d7f870f03c4142031bfdcb1ba4a2f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 6b38b9990c4dab0cb8524506ef129d4f326f3800 Mon Sep 17 00:00:00 2001
From: Jon Mason <jon.mason@arm.com>
Date: Thu, 14 Dec 2023 09:23:09 -0500
Subject: [PATCH] cmake: modify path to libmetal version file

Commit ad87802d6e01e97946de20b6c2fa28aed184ed20 changed how the
versioning is done and created a version file.  Due to this change,
the VERSION file is not being found when building because the source dir
is pointing to tf-m.  Modify to point where we want it.

Upstream-Status: Inappropriate [Build workaround]

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 cmake/options.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/options.cmake b/cmake/options.cmake
index a7b4ef8bdf03..a06009b6acc4 100644
--- a/cmake/options.cmake
+++ b/cmake/options.cmake
@@ -1,4 +1,4 @@
-file(READ ${LIBMETAL_ROOT_DIR}/VERSION ver)
+file(READ ${LIBMETAL_ROOT_DIR}/../libmetal/VERSION ver)
 
 string(REGEX MATCH "VERSION_MAJOR = ([0-9]*)" _ ${ver})
 set(PROJECT_VERSION_MAJOR ${CMAKE_MATCH_1})