Tom Rini | 897a1d9 | 2018-06-19 11:21:44 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: MIT |
Igor Opaniuk | d8f9d2a | 2018-06-03 21:56:36 +0300 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 The Android Open Source Project |
Igor Opaniuk | d8f9d2a | 2018-06-03 21:56:36 +0300 | [diff] [blame] | 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 | } |