Change scope of auto-generated build info header

This file is only needed when built in openpower-hw-diags for openbmc.
It is not needed when built in Hostboot or other user applications. The
header and supporting functions were pulled out of the rest of the
libhei source so that it can build in Hostboot or other user
applications.

Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: Ica5e6e6141acfe1866459a43df448b5c6ee3d29e
diff --git a/src/hei_buildinfo.hpp b/src/hei_buildinfo.hpp
new file mode 100644
index 0000000..f230124
--- /dev/null
+++ b/src/hei_buildinfo.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <buildinfo.hpp>
+
+// TODO: It would be preferred that this function exist in buildinfo.hpp.
+//       However, due to meson limitations, we were not able to figure out how
+//       to install that auto-generated header so it could be available to
+//       the user applications.
+
+namespace libhei
+{
+
+inline const char* getBuildInfo()
+{
+    return BUILDINFO;
+}
+
+} // end namespace libhei