Skip to content

Commit

Permalink
init/kconfig: Add LD_VERSION Kconfig
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
amitdanielkachhap authored and ctmarinas committed Apr 1, 2020
1 parent b2a84de commit 9553d16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9553d16

Please sign in to comment.