common.mk 455 B

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