Commit 215fadfe authored by Bill Wendling's avatar Bill Wendling Committed by Michael Ellerman

powerpc/boot: Use clang when CC is clang

The gcc compiler may not be available if CC is clang.
Signed-off-by: default avatarBill Wendling <morbo@google.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201120224034.191382-3-morbo@google.com
parent 4c078c86
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment