Commit fbb8a511 authored by Adam Wujek's avatar Adam Wujek 💬

tools/libipmi: store version information in libipmi

version information is stored in constant libipmi_version_s
Signed-off-by: Adam Wujek's avatarAdam Wujek <>
parent 4365bb5f
......@@ -12,7 +12,9 @@ OBJ=ipmi.o
GIT_VERSION := $(shell git describe --dirty --long --tags)
CFLAGS+=-fPIC -shared -Wall -Wextra -ggdb $(EXTRACFLAGS)
all: $(OUT) $(OUT_SO)
......@@ -3,6 +3,8 @@
#include <string.h>
#include <stdlib.h>
const char * const libipmi_version_s = "libipmi version: " GIT_VERSION;
static FILE *f = NULL;
struct common_header *ch = NULL;
......@@ -136,4 +136,5 @@ int ipmi_oem_record_write(int);
unsigned char *ipmi_get_internal_use_data(char *data, int *l);
int ipmi_get_mfg_date(char *data);
extern const char * const libipmi_version_s;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment