]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
Config.mk: Remove unused setvar_dir macro
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 12 Dec 2019 18:27:33 +0000 (18:27 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 13 Dec 2019 16:30:34 +0000 (16:30 +0000)
And remove all mention of it in docs. It hasn't been used since
9ead9afcb935 ("Add configure --with-sysconfig-leaf-dir=SUBDIR to set
CONFIG_LEAF_DIR").

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Config.mk
docs/misc/distro_mapping.txt

index 54e4b7091bfc8a656a8c00feb8cc93dc69c2319b..8768398d5ecec75c09ad81c503f2b199dda1d2bd 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -68,17 +68,6 @@ DEPS_RM = $(DEPS) $(DEPS_INCLUDE)
 include $(XEN_ROOT)/config/$(XEN_OS).mk
 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
 
-# arguments: variable, common path part, path to test, if yes, if no
-define setvar_dir
-  ifndef $(1)
-    ifneq (,$(wildcard $(2)$(3)))
-      $(1) ?= $(2)$(4)
-    else
-      $(1) ?= $(2)$(5)
-    endif
-  endif
-endef
-
 ifneq ($(EXTRA_PREFIX),)
 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
 EXTRA_LIB += $(EXTRA_PREFIX)/lib
index 2e46592728e322c4ad4a4403acb7d76d5a624869..599b6fd1e91259734a8ca933031c0d5c1e142281 100644 (file)
@@ -9,9 +9,8 @@ INITD_DIR        | /etc/rc.d/init.d | /etc/init.d   | /etc/init.d    |
 -----------------+------------------+---------------+----------------+
 
 The existence of these directories are tested at build-time (on the
-build host, via the "setvar_dir" macro in Config.mk) and for some
-scripts at run-time.  If the Red Hat directory exists, it is used;
-otherwise the Debian one is used.
+build host) and for some scripts at run-time.  If the Red Hat
+directory exists, it is used; otherwise the Debian one is used.
 
 The INITD_DIR path can be changed with configure --with-initddir=DIR.
 The CONFIG_LEAF_DIR name can be changed with configure