diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2020-03-06 10:16:24 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2020-03-06 10:16:24 +0100 |
commit | 33c4cc8b95868f5b92ca0e9a446022ad36f16b4a (patch) | |
tree | 6190da92d4b4a80430f428864a67639cecbcefc4 /Config.mk | |
parent | 53ff09834abe6d6e49412f3e0c2dcab1bd7888cb (diff) | |
download | xen-33c4cc8b95868f5b92ca0e9a446022ad36f16b4a.tar.gz |
build: move as-option-add to xen/
Only xen/ uses as-option-add and as-insn, so there aren't needed in
Config.mk.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'Config.mk')
-rw-r--r-- | Config.mk | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -143,23 +143,6 @@ ifndef XEN_HAS_CHECKPOLICY export XEN_HAS_CHECKPOLICY endif -# as-insn: Check whether assembler supports an instruction. -# Usage: cflags-y += $(call as-insn,CC FLAGS,"insn",option-yes,option-no) -as-insn = $(if $(shell echo 'void _(void) { asm volatile ( $(2) ); }' \ - | $(filter-out -M% %.d -include %/include/xen/config.h,$(1)) \ - -c -x c -o /dev/null - 2>&1),$(4),$(3)) - -# as-option-add: Conditionally add options to flags -# Usage: $(call as-option-add,CFLAGS,CC,"insn",option-yes,option-no) -as-option-add = $(eval $(call as-option-add-closure,$(1),$(2),$(3),$(4),$(5))) -define as-option-add-closure - ifeq ($$(call as-insn,$$($(2)) $$($(1)),$(3),y,n),y) - $(1) += $(4) - else - $(1) += $(5) - endif -endef - define buildmakevars2shellvars export PREFIX="$(prefix)"; \ export XEN_SCRIPT_DIR="$(XEN_SCRIPT_DIR)"; \ |