gpt_rme.mk 630 B

12345678910111213141516171819202122
  1. #
  2. # Copyright (c) 2021-2024, Arm Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Process RME_GPT_BITLOCK_BLOCK value
  7. ifeq ($(filter 0 1 2 4 8 16 32 64 128 256 512, ${RME_GPT_BITLOCK_BLOCK}),)
  8. $(error "Invalid value for RME_GPT_BITLOCK_BLOCK: ${RME_GPT_BITLOCK_BLOCK}")
  9. endif
  10. ifeq (${RME_GPT_BITLOCK_BLOCK},0)
  11. $(warning "GPT library uses global spinlock")
  12. endif
  13. # Process RME_GPT_MAX_BLOCK value
  14. ifeq ($(filter 0 2 32 512, ${RME_GPT_MAX_BLOCK}),)
  15. $(error "Invalid value for RME_GPT_MAX_BLOCK: ${RME_GPT_MAX_BLOCK}")
  16. endif
  17. GPT_LIB_SRCS := $(addprefix lib/gpt_rme/, \
  18. gpt_rme.c)