]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot: kbuild: allow readelf executable to be specified
authorDmitry Golovin <dima@golovin.in>
Wed, 4 Dec 2019 22:54:41 +0000 (00:54 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 14 Dec 2019 06:53:04 +0000 (15:53 +0900)
commit880ac4fc95166eb68b3d0b79311ad6a198baec94
treed0ad69354b51d63753d010e6a734b56a9c2c3a67
parentabb363216612fb7730564e18760876fc85b47470
x86/boot: kbuild: allow readelf executable to be specified

Introduce a new READELF variable to top-level Makefile, so the name of
readelf binary can be specified.

Before this change the name of the binary was hardcoded to
"$(CROSS_COMPILE)readelf" which might not be present for every
toolchain.

This allows to build with LLVM Object Reader by using make parameter
READELF=llvm-readelf.

Link: https://github.com/ClangBuiltLinux/linux/issues/771
Signed-off-by: Dmitry Golovin <dima@golovin.in>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile
arch/x86/boot/compressed/Makefile