blob: 7d6b61f942b24ef23e7b44546d6be458b85baf88 [file] [log] [blame]
Zelalem Aweke8e2e24b2021-07-13 14:05:20 -05001#
AlexeiFedorovbd8b1bb2024-03-13 17:07:03 +00002# Copyright (c) 2021-2024, Arm Limited. All rights reserved.
Zelalem Aweke8e2e24b2021-07-13 14:05:20 -05003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
AlexeiFedorovc0ca2d72024-05-13 15:35:54 +01007# Process RME_GPT_BITLOCK_BLOCK value
8ifeq ($(filter 0 1 2 4 8 16 32 64 128 256 512, ${RME_GPT_BITLOCK_BLOCK}),)
9 $(error "Invalid value for RME_GPT_BITLOCK_BLOCK: ${RME_GPT_BITLOCK_BLOCK}")
10endif
11
12ifeq (${RME_GPT_BITLOCK_BLOCK},0)
13 $(warning "GPT library uses global spinlock")
14endif
15
AlexeiFedorovbd8b1bb2024-03-13 17:07:03 +000016# Process RME_GPT_MAX_BLOCK value
17ifeq ($(filter 0 2 32 512, ${RME_GPT_MAX_BLOCK}),)
18 $(error "Invalid value for RME_GPT_MAX_BLOCK: ${RME_GPT_MAX_BLOCK}")
19endif
20
johpow019d134022021-06-16 17:57:28 -050021GPT_LIB_SRCS := $(addprefix lib/gpt_rme/, \
22 gpt_rme.c)