]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commit
xen: Have Kconfig check $(CC)'s version
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 4 Dec 2019 16:33:23 +0000 (16:33 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 30 Jan 2020 11:54:33 +0000 (11:54 +0000)
commit534519f0514f52007d504e0f2eeb714de7b2468d
tree10a677f97d0e9790c1fcf376082b55160353fc74
parentf80fe2b34f08ba3b08d3ae3f0517380c613ea6ea
xen: Have Kconfig check $(CC)'s version

This import several files from Linux v5.3
 - scripts/Kconfig.include
 - scripts/clang-version.sh
 - scripts/gcc-version.sh
 and several config values from from Linux's init/Kconfig file.
But gcc-version.sh have been modified to return "0" when $CC isn't
GCC, like clang-version.sh do.

Files are copied into scripts/ directory because that's were the files
are found in Linux tree, and also because we are going to import more
of Kbuild from Linux which is located in scripts/.

CONFIG_GCC_VERSION and CONFIG_CC_IS_CLANG are going to be use in
follow-up patches.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/Kconfig
xen/Makefile
xen/scripts/Kconfig.include [new file with mode: 0644]
xen/scripts/clang-version.sh [new file with mode: 0755]
xen/scripts/gcc-version.sh [new file with mode: 0755]