lkml.org 
[lkml]   [2018]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 003/100] ARM: 8767/1: add support for building ARM kernel with clang
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Stefan Agner <stefan@agner.ch>

    (commit c1c386681bd73c4fc28eb5cc91cf8b7be9b409ba upstream)

    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>
    Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/arm/boot/compressed/Makefile | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/arm/boot/compressed/Makefile
    +++ b/arch/arm/boot/compressed/Makefile
    @@ -113,7 +113,7 @@ CFLAGS_fdt_ro.o := $(nossp_flags)
    CFLAGS_fdt_rw.o := $(nossp_flags)
    CFLAGS_fdt_wip.o := $(nossp_flags)

    -ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj)
    +ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj)
    asflags-y := -DZIMAGE

    # Supply kernel BSS size to the decompressor via a linker symbol.

    \
     
     \ /
      Last update: 2018-11-29 15:51    [W:2.125 / U:0.652 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site