Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3578eb5f authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Alistair Delva
Browse files

ANDROID: x86: boot: Makefile: pass CLANG_FLAGS to Kbuild

The build machines seem to have older versions of ld.bfd that don't
support R_X86_64_32S absolute relocations, visible as the following
failure in presubmit testing:

Invalid absolute R_X86_64_32S relocation: __end_of_kernel_reserve

It seems that parts of KBUILD that overwrite KBUILD_CFLAGS drop import
clang flags like `--gcc-toolchain` (where to look for the GNU binutils),
so clang just finds the host utilities and just uses those.

This is bad for hermeticity of builds, and needs to be fixed upstream.

Link: https://github.com/ClangBuiltLinux/linux/issues/618


Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I30de5841a50e3fd97ba95c25cc12339d47ad083e
parent cf045d88
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment