diff options
| author | Stefan Agner <stefan@agner.ch> | 2018-05-08 17:50:38 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@armlinux.org.uk> | 2018-05-19 06:53:46 -0400 |
| commit | c1c386681bd73c4fc28eb5cc91cf8b7be9b409ba (patch) | |
| tree | baf51e27f36e449d9a5ca56599899e908ad963d8 | |
| parent | 22905a24306c8c312c2d66da9f90d09af0414f81 (diff) | |
ARM: 8767/1: add support for building ARM kernel with clang
Use cc-options call for compiler options which are not available
in clang. With this patch an ARMv7 multi platform kernel can be
successfully build using clang (tested with version 5.0.1).
Based-on-patches-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
| -rw-r--r-- | arch/arm/boot/compressed/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 45a6b9b7af2a..6a5c4ac97703 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile | |||
| @@ -113,7 +113,7 @@ CFLAGS_fdt_ro.o := $(nossp_flags) | |||
| 113 | CFLAGS_fdt_rw.o := $(nossp_flags) | 113 | CFLAGS_fdt_rw.o := $(nossp_flags) |
| 114 | CFLAGS_fdt_wip.o := $(nossp_flags) | 114 | CFLAGS_fdt_wip.o := $(nossp_flags) |
| 115 | 115 | ||
| 116 | ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj) | 116 | ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj) |
| 117 | asflags-y := -DZIMAGE | 117 | asflags-y := -DZIMAGE |
| 118 | 118 | ||
| 119 | # Supply kernel BSS size to the decompressor via a linker symbol. | 119 | # Supply kernel BSS size to the decompressor via a linker symbol. |
