summaryrefslogtreecommitdiffstats
path: root/init/Kconfig
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.kachhap@arm.com>2020-03-30 13:41:38 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2020-04-01 14:18:38 +0200
commit9553d16fa671b9621c5e2847d08bd90d3be3349c (patch)
treed5441063a1736792489a1eb5fa5bc4c4c931390e /init/Kconfig
parentmm/mremap: Add comment explaining the untagging behaviour of mremap() (diff)
downloadlinux-9553d16fa671b9621c5e2847d08bd90d3be3349c.tar.xz
linux-9553d16fa671b9621c5e2847d08bd90d3be3349c.zip
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 <amit.kachhap@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'init/Kconfig')
-rw-r--r--init/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 452bc1835cd4..68ddbcd974c7 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)