From bd98d772983df829b78b7ba16bc2dce559c93fbc Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Fri, 25 Jan 2019 11:19:22 +0530 Subject: include: Add separate header for OpenSBI version Currently, the OpenSBI version is in top-level Makefile so firmware linking to OpenSBI static library have no-way to know OpenSBI version. This patch moves OpenSBI version from top-level Makefile to sbi/sbi_version.h header which provides OPENSBI_VERSION_MAJOR and OPENSBI_VERSION_MINOR defines. NOTE: the SBI spec (or SBI ecall interface) version is different. The SBI spec version is provided by functions sbi_ecall_version_major() and sbi_ecall_version_minor(). Signed-off-by: Anup Patel --- include/sbi/sbi_version.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/sbi/sbi_version.h (limited to 'include') diff --git a/include/sbi/sbi_version.h b/include/sbi/sbi_version.h new file mode 100644 index 00000000..74b65e02 --- /dev/null +++ b/include/sbi/sbi_version.h @@ -0,0 +1,16 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2019 Western Digital Corporation or its affiliates. + * + * Authors: + * Anup Patel + */ + +#ifndef __SBI_VERSION_H__ +#define __SBI_VERSION_H__ + +#define OPENSBI_VERSION_MAJOR 0 +#define OPENSBI_VERSION_MINOR 1 + +#endif -- cgit v1.3.1