avb_version.c 439 B

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