[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87muqea6ps.fsf@concordia.ellerman.id.au>
Date: Mon, 12 Nov 2018 22:14:07 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Joel Stanley <joel@....id.au>,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Michal Marek <michal.lkml@...kovi.net>,
Daniel Axtens <dja@...ens.net>,
Nick Desaulniers <ndesaulniers@...gle.com>,
linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org
Subject: Re: [PATCH v2 2/2] powerpc/boot: Set target when cross-compiling for clang
Joel Stanley <joel@....id.au> writes:
> Clang needs to be told which target it is building for when cross
> compiling.
>
> Link: https://github.com/ClangBuiltLinux/linux/issues/259
> Signed-off-by: Joel Stanley <joel@....id.au>
> ---
> arch/powerpc/boot/Makefile | 5 +++++
> 1 file changed, 5 insertions(+)
Acked-by: Michael Ellerman <mpe@...erman.id.au>
cheers
> diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
> index 39354365f54a..111f97b1ccec 100644
> --- a/arch/powerpc/boot/Makefile
> +++ b/arch/powerpc/boot/Makefile
> @@ -55,6 +55,11 @@ BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
>
> BOOTARFLAGS := -cr$(KBUILD_ARFLAGS)
>
> +ifdef CONFIG_CC_IS_CLANG
> +BOOTCFLAGS += $(CLANG_FLAGS)
> +BOOTAFLAGS += $(CLANG_FLAGS)
> +endif
> +
> ifdef CONFIG_DEBUG_INFO
> BOOTCFLAGS += -g
> endif
> --
> 2.19.1
Powered by blists - more mailing lists