diff options
author | Dmitry Golovin <dima@golovin.in> | 2019-12-05 00:54:41 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2019-12-14 15:53:04 +0900 |
commit | eefb8c124fd969e9a174ff2bedff86aa305a7438 (patch) | |
tree | d0ad69354b51d63753d010e6a734b56a9c2c3a67 /arch | |
parent | cf6b58ab2d55f5a143c88c219c8e66ff0720fa69 (diff) | |
download | linux-stable-eefb8c124fd969e9a174ff2bedff86aa305a7438.tar.gz linux-stable-eefb8c124fd969e9a174ff2bedff86aa305a7438.tar.bz2 linux-stable-eefb8c124fd969e9a174ff2bedff86aa305a7438.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/boot/compressed/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index aa976adb7094..1dac210f7d44 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -103,7 +103,7 @@ vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o quiet_cmd_check_data_rel = DATAREL $@ define cmd_check_data_rel for obj in $(filter %.o,$^); do \ - ${CROSS_COMPILE}readelf -S $$obj | grep -qF .rel.local && { \ + $(READELF) -S $$obj | grep -qF .rel.local && { \ echo "error: $$obj has data relocations!" >&2; \ exit 1; \ } || true; \ |