File: common.mk

package info (click to toggle)
optee-test 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,732 kB
  • sloc: ansic: 80,061; makefile: 356; python: 179; cpp: 115; asm: 41; sh: 23
file content (11 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# 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

PYTHON3 ?= python3