Zelalem Aweke | 8e2e24b | 2021-07-13 14:05:20 -0500 | [diff] [blame] | 1 | # |
AlexeiFedorov | bd8b1bb | 2024-03-13 17:07:03 +0000 | [diff] [blame] | 2 | # Copyright (c) 2021-2024, Arm Limited. All rights reserved. |
Zelalem Aweke | 8e2e24b | 2021-07-13 14:05:20 -0500 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
AlexeiFedorov | c0ca2d7 | 2024-05-13 15:35:54 +0100 | [diff] [blame] | 7 | # Process RME_GPT_BITLOCK_BLOCK value |
| 8 | ifeq ($(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}") |
| 10 | endif |
| 11 | |
| 12 | ifeq (${RME_GPT_BITLOCK_BLOCK},0) |
| 13 | $(warning "GPT library uses global spinlock") |
| 14 | endif |
| 15 | |
AlexeiFedorov | bd8b1bb | 2024-03-13 17:07:03 +0000 | [diff] [blame] | 16 | # Process RME_GPT_MAX_BLOCK value |
| 17 | ifeq ($(filter 0 2 32 512, ${RME_GPT_MAX_BLOCK}),) |
| 18 | $(error "Invalid value for RME_GPT_MAX_BLOCK: ${RME_GPT_MAX_BLOCK}") |
| 19 | endif |
| 20 | |
johpow01 | 9d13402 | 2021-06-16 17:57:28 -0500 | [diff] [blame] | 21 | GPT_LIB_SRCS := $(addprefix lib/gpt_rme/, \ |
| 22 | gpt_rme.c) |