From: Amit Daniel Kachhap Date: Mon, 30 Mar 2020 11:41:38 +0000 (+0530) Subject: init/kconfig: Add LD_VERSION Kconfig X-Git-Tag: v5.10.7~2834^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9553d16fa671b9621c5e2847d08bd90d3be3349c;p=platform%2Fkernel%2Flinux-rpi.git init/kconfig: Add LD_VERSION Kconfig This option can be used in Kconfig files to compare the ld version and enable/disable incompatible config options if required. This option is used in the subsequent patch along with GCC_VERSION to filter out an incompatible feature. Signed-off-by: Amit Daniel Kachhap Signed-off-by: Catalin Marinas --- diff --git a/init/Kconfig b/init/Kconfig index 452bc18..68ddbcd 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -17,6 +17,10 @@ config GCC_VERSION default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC default 0 +config LD_VERSION + int + default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh) + config CC_IS_CLANG def_bool $(success,$(CC) --version | head -n 1 | grep -q clang)