summaryrefslogtreecommitdiff
path: root/Config.mk
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2019-12-04 17:13:51 +0000
committerAndrew Cooper <andrew.cooper3@citrix.com>2020-01-30 11:54:33 +0000
commit4c91ad721c80d497fde6740a9f957f66ecff2267 (patch)
tree6e071f3a658d9d0d782c433d6d8c1406220dbf87 /Config.mk
parent534519f0514f52007d504e0f2eeb714de7b2468d (diff)
downloadxen-4c91ad721c80d497fde6740a9f957f66ecff2267.tar.gz
xen: Import cc-ifversion from Kbuild
This is in preparation of importing Kbuild to build Xen. We won't be able to include Config.mk so we will need a replacement for the macro `cc-ifversion'. This patch imports parts of "scripts/Kbuild.include" from Linux v5.4, the macro cc-ifversion. It makes use of CONFIG_GCC_VERSION that Kconfig now provides. Since they are no other use of Xen's `cc-ifversion' macro, we can remove it. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk5
1 files changed, 0 insertions, 5 deletions
diff --git a/Config.mk b/Config.mk
index 35d66e5e12..65649d6122 100644
--- a/Config.mk
+++ b/Config.mk
@@ -121,11 +121,6 @@ define cc-ver-check-closure
endif
endef
-# cc-ifversion: Check compiler version and take branch accordingly
-# Usage $(call cc-ifversion,lt,0x040700,string_if_y,string_if_n)
-cc-ifversion = $(shell [ $(call cc-ver,$(CC),$(1),$(2)) = "y" ] \
- && echo $(3) || echo $(4))
-
# Require GCC v4.1+
check-$(gcc) = $(call cc-ver-check,CC,0x040100,"Xen requires at least gcc-4.1")
$(eval $(check-y))