diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2019-12-04 17:13:51 +0000 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2020-01-30 11:54:33 +0000 |
commit | 4c91ad721c80d497fde6740a9f957f66ecff2267 (patch) | |
tree | 6e071f3a658d9d0d782c433d6d8c1406220dbf87 /Config.mk | |
parent | 534519f0514f52007d504e0f2eeb714de7b2468d (diff) | |
download | xen-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.mk | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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)) |