xref: /rk3399_ARM-atf/make_helpers/common.mk (revision 7623e085cb5396054b72f1ea3f02e8c7a34568b5)
1#
2# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifndef common-mk
8        common-mk := $(lastword $(MAKEFILE_LIST))
9
10        include $(dir $(common-mk))utilities.mk
11
12        silent = $(call bool,$(findstring s,$(firstword ~$(MAKEFLAGS))))
13        verbose = $(if $(silent),,$(call bool,$(V)))
14
15        s = @$(if $(or $(verbose),$(silent)),: )
16        q = $(if $(verbose),,@)
17endif
18