Skip to content

Commit 9553d16

Browse files
amitdanielkachhapctmarinas
authored andcommitted
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 <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
1 parent b2a84de commit 9553d16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ config GCC_VERSION
1717
default $(shell,$(srctree)/scripts/gcc-version.sh $(CC)) if CC_IS_GCC
1818
default 0
1919

20+
config LD_VERSION
21+
int
22+
default $(shell,$(LD) --version | $(srctree)/scripts/ld-version.sh)
23+
2024
config CC_IS_CLANG
2125
def_bool $(success,$(CC) --version | head -n 1 | grep -q clang)
2226

0 commit comments

Comments
 (0)