blob: 1f20722e6ca312d3689fd8db485a59cd60cae197 [file] [log] [blame]
Tom Rini897a1d92018-06-19 11:21:44 -04001// SPDX-License-Identifier: MIT
Igor Opaniukd8f9d2a2018-06-03 21:56:36 +03002/*
3 * Copyright (C) 2017 The Android Open Source Project
Igor Opaniukd8f9d2a2018-06-03 21:56:36 +03004 */
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. */
12const 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}