2 # Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
4 # SPDX-License-Identifier: BSD-3-Clause
8 # Trusted Firmware shell command definitions for a Unix style environment.
11 UNIX_MK
:= $(lastword
$(MAKEFILE_LIST
))
13 ECHO_BLANK_LINE
:= echo
18 # These defines provide Unix style equivalents of the shell commands
19 # required by the Trusted Firmware build environment.
21 # ${1} is the file to be copied.
22 # ${2} is the destination file name.
24 ${Q}cp
-f
"${1}" "${2}"
27 # ${1} is the directory to be copied.
28 # ${2} is the destination directory path.
29 define SHELL_COPY_TREE
30 ${Q}cp
-rf
"${1}" "${2}"
33 # ${1} is the file to be deleted.
38 # ${1} is a space delimited list of files to be deleted.
39 # Note that we do not quote ${1}, as multiple parameters may be passed.
40 define SHELL_DELETE_ALL
44 # ${1} is the directory to be generated.
45 # ${2} is optional, and allows a prerequisite to be specified.
46 # Do nothing if $1 == $2, to ignore self dependencies.
47 define MAKE_PREREQ_DIR
56 define SHELL_REMOVE_DIR