Skip to content

Commit

Permalink
powerpc/boot: Set target when cross-compiling for clang
Browse files Browse the repository at this point in the history
Clang needs to be told which target it is building for when cross
compiling.

Link: ClangBuiltLinux#259
Signed-off-by: Joel Stanley <[email protected]>
Tested-by: Daniel Axtens <[email protected]> # powerpc 64-bit BE
Acked-by: Michael Ellerman <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
shenki authored and masahir0y committed Nov 13, 2018
1 parent 3bd9805 commit 813af51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/powerpc/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 813af51

Please sign in to comment.