Files
mckernel/config.h.in
Dominique Martinet b87ac8b8c0 reproductible builds: remove most install paths in c code
In order to speed up test bot work it would be helpful to check for
identical build outputs and skip tests if required.

This removes most use of the install path in c code:
 - ql_mpi uses /proc/self/exe and looks for talker/server in same
directory as itself
 - mcexec looks for libihk.so in /proc/self/maps and use that path for
LD_PRELOAD prefix path
 - rootfsdir is not used right now but until a better fix happens just
hardcode it, someone who wants to change it can set it through cmake

There is one last occurence of the install directory, MCEXEC_PATH in
mcctrl's binfmt code, for which the build system will just overwrite it
to a constant string at build time instead of trying to remove it too
hard. It would be possible to pass it as a kernel parameter or look for
mcexec in PATH but this is too much work for now.

Change-Id: I5d1352bc5748a1ea10dcae4be630f30a07609296
2019-03-22 05:01:32 +00:00

37 lines
904 B
C

/* config.h.in. Generated from configure.ac by autoheader. */
/* IHK build-id to confirm IHK and McKernel built at the same time are used */
#define BUILDID "${BUILDID}"
/* version number */
#define MCKERNEL_VERSION "${MCKERNEL_VERSION}"
/* whether mcoverlayfs is enabled */
#cmakedefine ENABLE_MCOVERLAYFS 1
/* whether memdump feature is enabled */
#cmakedefine ENABLE_MEMDUMP 1
/* whether perf is enabled */
#cmakedefine ENABLE_PERF 1
/* whether qlmpi is enabled */
#cmakedefine ENABLE_QLMPI 1
/* whether rusage is enabled */
#cmakedefine ENABLE_RUSAGE 1
/* whether UTI is enabled */
#cmakedefine ENABLE_UTI 1
/* whether undefined behaviour sanitizer is enabled */
#cmakedefine ENABLE_UBSAN 1
/* Path of bind-mount source directory */
#cmakedefine ROOTFSDIR "${ROOTFSDIR}"
/* for non-RHEL kernels */
#ifndef RHEL_RELEASE_VERSION
#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
#endif