]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Apr 2015 18:19:18 +0000 (11:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Apr 2015 18:19:18 +0000 (11:19 -0700)
Pull kbuild updates from Michal Marek:
 "Here is the first round of kbuild changes for v4.1-rc1:

   - kallsyms fix for ARM and cleanup

   - make dep(end) removed (developers have no sense of nostalgia these
     days...)

   - include Makefiles by relative path

   - stop useless rebuilds of asm-offsets.h and bounds.h"

* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  Kbuild: kallsyms: drop special handling of pre-3.0 GCC symbols
  Kbuild: kallsyms: ignore veneers emitted by the ARM linker
  kbuild: ia64: use $(src)/Makefile.gate rather than particular path
  kbuild: include $(src)/Makefile rather than $(obj)/Makefile
  kbuild: use relative path more to include Makefile
  kbuild: use relative path to include Makefile
  kbuild: do not add $(bounds-file) and $(offsets-file) to targets
  kbuild: remove warning about "make depend"
  kbuild: Don't reset timestamps in include/generated if not needed

1  2 
Makefile

diff --combined Makefile
index 9b76ce1e08bbb80d15e3f2ee4859157323a23ee0,929d805b4f622eb42f1f0b50d110ef0ef487e6d3..6cc5b243422459cb3ec4317274ebc26c69e0e595
+++ b/Makefile
@@@ -1,7 -1,7 +1,7 @@@
  VERSION = 4
  PATCHLEVEL = 0
  SUBLEVEL = 0
 -EXTRAVERSION = -rc1
 +EXTRAVERSION =
  NAME = Hurr durr I'ma sheep
  
  # *DOCUMENTATION*
  # Comments in this file are targeted only to the developer, do not
  # expect to learn how to build the kernel reading this file.
  
- # Do not use make's built-in rules and variables
- # (this increases performance and avoids hard-to-debug behaviour);
- MAKEFLAGS += -rR
+ # o Do not use make's built-in rules and variables
+ #   (this increases performance and avoids hard-to-debug behaviour);
+ # o Look for make include files relative to root of kernel src
+ MAKEFLAGS += -rR --include-dir=$(CURDIR)
  
  # Avoid funny character set dependencies
  unexport LC_ALL
@@@ -344,12 -345,9 +345,9 @@@ endi
  export COMPILER
  endif
  
- # Look for make include files relative to root of kernel src
- MAKEFLAGS += --include-dir=$(srctree)
  # We need some generic definitions (do not try to remake the file).
$(srctree)/scripts/Kbuild.include: ;
- include $(srctree)/scripts/Kbuild.include
+ scripts/Kbuild.include: ;
+ include scripts/Kbuild.include
  
  # Make variables (CC, etc...)
  AS            = $(CROSS_COMPILE)as
@@@ -533,7 -531,7 +531,7 @@@ ifeq ($(config-targets),1
  # Read arch specific Makefile to set KBUILD_DEFCONFIG as needed.
  # KBUILD_DEFCONFIG may point out an alternative default configuration
  # used for 'make defconfig'
- include $(srctree)/arch/$(SRCARCH)/Makefile
+ include arch/$(SRCARCH)/Makefile
  export KBUILD_DEFCONFIG KBUILD_KCONFIG
  
  config: scripts_basic outputmakefile FORCE
@@@ -609,7 -607,7 +607,7 @@@ endif # $(dot-config
  # Defaults to vmlinux, but the arch makefile usually adds further targets
  all: vmlinux
  
- include $(srctree)/arch/$(SRCARCH)/Makefile
+ include arch/$(SRCARCH)/Makefile
  
  KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
  
@@@ -779,11 -777,10 +777,11 @@@ KBUILD_ARFLAGS := $(call ar-option,D
  # check for 'asm goto'
  ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y)
        KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
 +      KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
  endif
  
- include $(srctree)/scripts/Makefile.kasan
- include $(srctree)/scripts/Makefile.extrawarn
+ include scripts/Makefile.kasan
+ include scripts/Makefile.extrawarn
  
  # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
  KBUILD_CPPFLAGS += $(KCPPFLAGS)
@@@ -1026,12 -1023,6 +1024,6 @@@ headerdep
        $(Q)find $(srctree)/include/ -name '*.h' | xargs --max-args 1 \
        $(srctree)/scripts/headerdep.pl -I$(srctree)/include
  
- # ---------------------------------------------------------------------------
- PHONY += depend dep
- depend dep:
-       @echo '*** Warning: make $@ is unnecessary now.'
  # ---------------------------------------------------------------------------
  # Firmware install
  INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware