projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c078c8
)
powerpc/boot: Use clang when CC is clang
author
Bill Wendling
<morbo@google.com>
Fri, 20 Nov 2020 22:40:33 +0000
(14:40 -0800)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 26 Nov 2020 11:05:43 +0000
(22:05 +1100)
The gcc compiler may not be available if CC is clang.
Signed-off-by: Bill Wendling <morbo@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20201120224034.191382-3-morbo@google.com
arch/powerpc/boot/Makefile
patch
|
blob
|
history
diff --git
a/arch/powerpc/boot/Makefile
b/arch/powerpc/boot/Makefile
index
f8ce6d2
..
68a7534
100644
(file)
--- a/
arch/powerpc/boot/Makefile
+++ b/
arch/powerpc/boot/Makefile
@@
-21,7
+21,11
@@
all: $(obj)/zImage
ifdef CROSS32_COMPILE
+ifdef CONFIG_CC_IS_CLANG
+ BOOTCC := $(CROSS32_COMPILE)clang
+else
BOOTCC := $(CROSS32_COMPILE)gcc
+endif
BOOTAR := $(CROSS32_COMPILE)ar
else
BOOTCC := $(CC)