xref: /rk3399_ARM-atf/make_helpers/common.mk (revision 79629b1a79bd1ee254077d4e76fea05ba73b9bab)
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