1*4731c00bSChris Kay# 2*4731c00bSChris Kay# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. 3*4731c00bSChris Kay# 4*4731c00bSChris Kay# SPDX-License-Identifier: BSD-3-Clause 5*4731c00bSChris Kay# 6*4731c00bSChris Kay 7*4731c00bSChris Kayspace := 8*4731c00bSChris Kayspace := $(space) $(space) 9*4731c00bSChris Kaycomma := , 10*4731c00bSChris Kay 11*4731c00bSChris Kaynull := � 12*4731c00bSChris Kay 13*4731c00bSChris Kaycompat-path = $(subst $(space),$(null),$(1)) 14*4731c00bSChris Kaydecompat-path = $(subst $(null), ,$(1)) 15*4731c00bSChris Kay 16*4731c00bSChris Kayabsolute-path = $(call decompat-path,$(abspath $(call compat-path,$(1)))) 17*4731c00bSChris Kayreal-path = $(call decompat-path,$(realpath $(call compat-path,$(1)))) 18*4731c00bSChris Kay 19*4731c00bSChris Kayfile-name = $(call decompat-path,$(notdir $(call compat-path,$(1)))) 20*4731c00bSChris Kaydirectory-name = $(call decompat-path,$(dir $(call compat-path,$(1)))) 21*4731c00bSChris Kay 22*4731c00bSChris Kayescape-shell = '$(subst ','\'',$(1))' 23