forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-03-15 de7d2b82e1d37d435e0b93009a6a472b54b9d6a1
1
2
3
4
5
6
7
8
9
# Makefile script used in various OP-TEE test components
 
# Since 'clean' make rules rely on 'rmdir', removed directories shall
# not end with 'current directory' (./ or .) subpath information.
# This macro remove trailing './' info from input path.
define strip-trailing-slashes-and-dots
$(eval _o := $(patsubst %/,%,$(patsubst %/.,%,$(1))))$(if \
   $(filter-out $(1),$(_o)),$(call strip-trailing-slashes-and-dots,$(_o)),$(_o))
endef