Skip to content

Commit

Permalink
fwk: Allow building without .git
Browse files Browse the repository at this point in the history
Allow building of scp-firmware when there is not Git information
available in scp-firmware source tree. This situation occurs with
distribution or development environments that use a scp-firmware
source tree tarball that do not content Git information.

When there is no .git entry at scp-firmware root directory, the git
describe command returns an error message (below), preventing to build
the sources:
fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Change-Id: Ia8e620f74054066e1c7b2336367e8ef71a60a0fe
Signed-off-by: Christophe Priouzeau <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
Christophe Priouzeau authored and mohamedasaker-arm committed Feb 12, 2024
1 parent d354a17 commit e24cd74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Arm SCP/MCP Software
# Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
# Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
Expand Down Expand Up @@ -231,6 +231,7 @@ if(GIT_FOUND)
COMMAND "${GIT_EXECUTABLE}" describe --tags --dirty --always
WORKING_DIRECTORY "${SCP_SOURCE_DIR}"
OUTPUT_VARIABLE SCP_DESCRIBE
ERROR_VARIABLE _errorOut
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()

Expand Down

0 comments on commit e24cd74

Please sign in to comment.