You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
592 B
22 lines
592 B
#
|
|
# 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))'
|
|
|