Thread (4 messages) 4 messages, 4 authors, 2021-05-06

Re: [PATCH 2/2] arch: use cross_compiling to check whether it is a cross build or not

From: Rob Landley <hidden>
Date: 2021-05-06 11:56:23
Also in: linux-kbuild, linux-m68k, linux-sh, lkml

On 5/1/21 12:24 PM, Masahiro Yamada wrote:
'cross_compiling' is defined by the top Makefile and available for
arch Makefiles to check whether it is a cross build or not. A good
thing is the variable name 'cross_compiling' is self-documenting.

This is a simple replacement for m68k, mips, sh, for which $(ARCH)
and $(SRCARCH) always match.

No functional change is intended for xtensa, either.

This is rather a fix for parisc because arch/parisc/Makefile defines
UTS_MATCHINE depending on CONFIG_64BIT, therefore cc-cross-prefix
is not working in Kconfig time.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tried the patch in my sh build, the result built and booted.

Tested-by: Rob Landley <redacted>

Rob
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help