]> Git Repo - linux.git/commitdiff
Merge tag 'kbuild-fixes-v4.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <[email protected]>
Sat, 28 Oct 2017 18:01:57 +0000 (11:01 -0700)
committerLinus Torvalds <[email protected]>
Sat, 28 Oct 2017 18:01:57 +0000 (11:01 -0700)
Pull Kbuild fixes from Masahiro Yamada:

 - fix O= building on dash

 - remove unused dependency in Makefile

 - fix default of a choice in Kconfig

 - fix typos and documentation style

 - fix command options unrecognized by sparse

* tag 'kbuild-fixes-v4.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
  kbuild: clang: fix build failures with sparse check
  kbuild doc: a bundle of fixes on makefiles.txt
  Makefile: kselftest: fix grammar typo
  kbuild: Fix optimization level choice default
  kbuild: drop unused symverfile in Makefile.modpost
  kbuild: revert $(realpath ...) to $(shell cd ... && /bin/pwd)

1  2 
Makefile

diff --combined Makefile
index 01875d606f44d8014abb9e140b01556d5844bc8b,8593c408119317839defff9e5a2eadf679bf153e..2900c54f34ce1267f9247353d9f1e1a91a4a9c83
+++ b/Makefile
@@@ -1,7 -1,7 +1,7 @@@
  VERSION = 4
  PATCHLEVEL = 14
  SUBLEVEL = 0
 -EXTRAVERSION = -rc3
 +EXTRAVERSION = -rc6
  NAME = Fearless Coyote
  
  # *DOCUMENTATION*
@@@ -130,8 -130,8 +130,8 @@@ endi
  ifneq ($(KBUILD_OUTPUT),)
  # check that the output directory actually exists
  saved-output := $(KBUILD_OUTPUT)
- $(shell [ -d $(KBUILD_OUTPUT) ] || mkdir -p $(KBUILD_OUTPUT))
KBUILD_OUTPUT := $(realpath $(KBUILD_OUTPUT))
+ KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
                                                              && /bin/pwd)
  $(if $(KBUILD_OUTPUT),, \
       $(error failed to create output directory "$(saved-output)"))
  
@@@ -697,11 -697,11 +697,11 @@@ KBUILD_CFLAGS += $(stackp-flag
  
  ifeq ($(cc-name),clang)
  ifneq ($(CROSS_COMPILE),)
- CLANG_TARGET  := -target $(notdir $(CROSS_COMPILE:%-=%))
+ CLANG_TARGET  := --target=$(notdir $(CROSS_COMPILE:%-=%))
  GCC_TOOLCHAIN := $(realpath $(dir $(shell which $(LD)))/..)
  endif
  ifneq ($(GCC_TOOLCHAIN),)
- CLANG_GCC_TC  := -gcc-toolchain $(GCC_TOOLCHAIN)
+ CLANG_GCC_TC  := --gcc-toolchain=$(GCC_TOOLCHAIN)
  endif
  KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
  KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
@@@ -933,11 -933,7 +933,11 @@@ ifdef CONFIG_STACK_VALIDATIO
    ifeq ($(has_libelf),1)
      objtool_target := tools/objtool FORCE
    else
 -    $(warning "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
 +    ifdef CONFIG_ORC_UNWINDER
 +      $(error "Cannot generate ORC metadata for CONFIG_ORC_UNWINDER=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
 +    else
 +      $(warning "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
 +    endif
      SKIP_STACK_VALIDATION := 1
      export SKIP_STACK_VALIDATION
    endif
@@@ -1399,7 -1395,7 +1399,7 @@@ help
        @echo  '                    Build, install, and boot kernel before'
        @echo  '                    running kselftest on it'
        @echo  '  kselftest-clean - Remove all generated kselftest files'
-       @echo  '  kselftest-merge - Merge all the config dependencies of kselftest to existed'
+       @echo  '  kselftest-merge - Merge all the config dependencies of kselftest to existing'
        @echo  '                    .config.'
        @echo  ''
        @echo 'Userspace tools targets:'
This page took 0.052247 seconds and 4 git commands to generate.