Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition
flat view
From: Masahiro Yamada <hidden>
Date: 2019-07-13 22:47:15
Also in:
lkml
On Sat, Jul 13, 2019 at 10:17 PM Segher Boessenkool [off-list ref] wrote:
On Sat, Jul 13, 2019 at 07:47:44AM -0500, Segher Boessenkool wrote:quoted
On Sat, Jul 13, 2019 at 12:21:06PM +0900, Masahiro Yamada wrote:quoted
The KBUILD_ARFLAGS addition in arch/powerpc/Makefile has never worked in a useful way because it is always overridden by the following code in the top Makefile: # use the deterministic mode of AR if available KBUILD_ARFLAGS := $(call ar-option,D) The code in the top Makefile was added in 2011, by commit 40df759e2b9e ("kbuild: Fix build with binutils <= 2.19"). The KBUILD_ARFLAGS addition for ppc has always been dead code from the beginning.That was added in 43c9127d94d6 to replace my 8995ac870273 from 2007. Is it no longer supported to build a 64-bit kernel with a toolchain that defaults to 32-bit, or the other way around? And with non-native toolchains (this one didn't run on Linux, even).It was an --enable-targets=all toolchain, somewhat common for crosses, if that matters.
I always use the same toolchain for compile-testing PPC32/64. I have never been hit by the issue you mention. Somebody would have reported it if it were still a problem. Moreover, commit 43c9127d94d6 translated the environment variable "GNUTARGET" into the command option "--target=" My powerpc-linux-ar does not know it: powerpc-linux-ar: -t: No such file or directory -- Best Regards Masahiro Yamada