xref: /openbmc/u-boot/lib/libavb/avb_version.c (revision da4cfa6b)
1 // SPDX-License-Identifier: MIT
2 /*
3  * Copyright (C) 2017 The Android Open Source Project
4  */
5 
6 #include "avb_version.h"
7 
8 #define AVB_QUOTE(str) #str
9 #define AVB_EXPAND_AND_QUOTE(str) AVB_QUOTE(str)
10 
11 /* Keep in sync with get_release_string() in avbtool. */
12 const char* avb_version_string(void) {
13   return AVB_EXPAND_AND_QUOTE(AVB_VERSION_MAJOR) "." AVB_EXPAND_AND_QUOTE(
14       AVB_VERSION_MINOR) "." AVB_EXPAND_AND_QUOTE(AVB_VERSION_SUB);
15 }
16