From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- roms/u-boot/lib/libavb/avb_version.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roms/u-boot/lib/libavb/avb_version.c (limited to 'roms/u-boot/lib/libavb/avb_version.c') diff --git a/roms/u-boot/lib/libavb/avb_version.c b/roms/u-boot/lib/libavb/avb_version.c new file mode 100644 index 000000000..1f20722e6 --- /dev/null +++ b/roms/u-boot/lib/libavb/avb_version.c @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: MIT +/* + * Copyright (C) 2017 The Android Open Source Project + */ + +#include "avb_version.h" + +#define AVB_QUOTE(str) #str +#define AVB_EXPAND_AND_QUOTE(str) AVB_QUOTE(str) + +/* Keep in sync with get_release_string() in avbtool. */ +const char* avb_version_string(void) { + return AVB_EXPAND_AND_QUOTE(AVB_VERSION_MAJOR) "." AVB_EXPAND_AND_QUOTE( + AVB_VERSION_MINOR) "." AVB_EXPAND_AND_QUOTE(AVB_VERSION_SUB); +} -- cgit