• Jeroen Hofstee's avatar
    Makefile: fix clang warnings due to clang support · 9262233a
    Jeroen Hofstee authored
    Building u-boot tools with clang as a host compiler e.g. on
    FreeBSD with `gmake HOSTCC=clang CONFIG_USE_PRIVATE_LIBGCC=y tools`
    leads to many warnings [1] for every compiler invocation since
    commit 598e2d33. Part of mentioned commit imports linux patches:
    
     - kbuild: LLVMLinux: Adapt warnings for compilation with clang
     - kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang
    
    No version of clang supports the gcc fno-delete-null-pointer-checks
    though, but it is only passed to clang. Gcc does not have the clang
    specific Qunused-arguments for the target. Furthermore several
    warnings are disabled which aren't encountered in u-boot. Since such
    a build has worked for quite some time and works after removing these
    changes, just remove the clang specific handling to restore normal
    building with clang as hostcc.
    
    [1] Actual warnings
    -------------------
      GEN     include/autoconf.mk.dep
    arm-freebsd-gcc: unrecognized option '-Qunused-arguments'
    
      HOSTCC  scripts/basic/fixdep
    clang: warning: argument unused during compilation:
                    '-fno-delete-null-pointer-checks'
    
    cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
    Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
    9262233a
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
common Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
spl Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
boards.cfg Loading commit data...
config.mk Loading commit data...
mkconfig Loading commit data...
snapshot.commit Loading commit data...