Commit e5395072 authored by Iustin Pop's avatar Iustin Pop
Browse files

Expose whether htools was enabled to Python code



This exports whether htools was enabled at configure-time, and adds a
constant for our reference iallocator.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent d6491981
......@@ -869,6 +869,11 @@ lib/_autoconf.py: Makefile vcs-version | lib/.dir
echo "NODED_USER = '$(NODED_USER)'"; \
echo "VCS_VERSION = '$$VCSVER'"; \
echo "DISK_SEPARATOR = '$(DISK_SEPARATOR)'"; \
if [ "$(HTOOLS)" ]; then \
echo "HTOOLS = True"; \
else \
echo "HTOOLS = False"; \
fi; \
} > $@
$(REPLACE_VARS_SED): Makefile
......
......@@ -1329,3 +1329,8 @@ VALID_ALLOC_POLICIES = [
# Temporary external/shared storage parameters
BLOCKDEV_DRIVER_MANUAL = "manual"
# Whether htools was enabled at compilation time
HTOOLS = _autoconf.HTOOLS
# The hail iallocator
IALLOC_HAIL = "hail"
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