mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-06 22:41:21 +00:00
Fix issue with Windows paths containing spaces. Recent toolchain
refactoring (cc277de) caused a regression in the Windows build. Ensure
toolchain path utilities wrap paths in double quoted strings.
Change-Id: I7a136e459d85cff1e9851aedf0a5272a841df09c
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
Signed-off-by: Chris Kay <chris.kay@arm.com>
Co-authored-by: Chris Kay <chris.kay@arm.com>
23 lines
592 B
Makefile
23 lines
592 B
Makefile
#
|
|
# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
space :=
|
|
space := $(space) $(space)
|
|
comma := ,
|
|
|
|
null := �
|
|
|
|
compat-path = $(subst $(space),$(null),$(1))
|
|
decompat-path = $(subst $(null), ,$(1))
|
|
|
|
absolute-path = $(call decompat-path,$(abspath $(call compat-path,$(1))))
|
|
real-path = $(call decompat-path,$(realpath $(call compat-path,$(1))))
|
|
|
|
file-name = $(call decompat-path,$(notdir $(call compat-path,$(1))))
|
|
directory-name = $(call decompat-path,$(dir $(call compat-path,$(1))))
|
|
|
|
escape-shell = '$(subst ','\'',$(1))'
|