diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-15 14:19:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-15 14:19:18 -0400 |
commit | b422b75875a3663f08a9ab5aeb265ed2383cbe2f (patch) | |
tree | 33e1ca04314539fd448f8f199839279798c1c163 /Makefile | |
parent | d488d3a4ce08e96dad5cb3b6117517d57ccec98f (diff) | |
parent | 41b585b2ed793db6f02ec87d0026d73382e8180a (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 10 insertions, 18 deletions
@@ -10,9 +10,10 @@ NAME = Hurr durr I'ma sheep | |||
10 | # Comments in this file are targeted only to the developer, do not | 10 | # Comments in this file are targeted only to the developer, do not |
11 | # expect to learn how to build the kernel reading this file. | 11 | # expect to learn how to build the kernel reading this file. |
12 | 12 | ||
13 | # Do not use make's built-in rules and variables | 13 | # o Do not use make's built-in rules and variables |
14 | # (this increases performance and avoids hard-to-debug behaviour); | 14 | # (this increases performance and avoids hard-to-debug behaviour); |
15 | MAKEFLAGS += -rR | 15 | # o Look for make include files relative to root of kernel src |
16 | MAKEFLAGS += -rR --include-dir=$(CURDIR) | ||
16 | 17 | ||
17 | # Avoid funny character set dependencies | 18 | # Avoid funny character set dependencies |
18 | unexport LC_ALL | 19 | unexport LC_ALL |
@@ -344,12 +345,9 @@ endif | |||
344 | export COMPILER | 345 | export COMPILER |
345 | endif | 346 | endif |
346 | 347 | ||
347 | # Look for make include files relative to root of kernel src | ||
348 | MAKEFLAGS += --include-dir=$(srctree) | ||
349 | |||
350 | # We need some generic definitions (do not try to remake the file). | 348 | # We need some generic definitions (do not try to remake the file). |
351 | $(srctree)/scripts/Kbuild.include: ; | 349 | scripts/Kbuild.include: ; |
352 | include $(srctree)/scripts/Kbuild.include | 350 | include scripts/Kbuild.include |
353 | 351 | ||
354 | # Make variables (CC, etc...) | 352 | # Make variables (CC, etc...) |
355 | AS = $(CROSS_COMPILE)as | 353 | AS = $(CROSS_COMPILE)as |
@@ -533,7 +531,7 @@ ifeq ($(config-targets),1) | |||
533 | # Read arch specific Makefile to set KBUILD_DEFCONFIG as needed. | 531 | # Read arch specific Makefile to set KBUILD_DEFCONFIG as needed. |
534 | # KBUILD_DEFCONFIG may point out an alternative default configuration | 532 | # KBUILD_DEFCONFIG may point out an alternative default configuration |
535 | # used for 'make defconfig' | 533 | # used for 'make defconfig' |
536 | include $(srctree)/arch/$(SRCARCH)/Makefile | 534 | include arch/$(SRCARCH)/Makefile |
537 | export KBUILD_DEFCONFIG KBUILD_KCONFIG | 535 | export KBUILD_DEFCONFIG KBUILD_KCONFIG |
538 | 536 | ||
539 | config: scripts_basic outputmakefile FORCE | 537 | config: scripts_basic outputmakefile FORCE |
@@ -609,7 +607,7 @@ endif # $(dot-config) | |||
609 | # Defaults to vmlinux, but the arch makefile usually adds further targets | 607 | # Defaults to vmlinux, but the arch makefile usually adds further targets |
610 | all: vmlinux | 608 | all: vmlinux |
611 | 609 | ||
612 | include $(srctree)/arch/$(SRCARCH)/Makefile | 610 | include arch/$(SRCARCH)/Makefile |
613 | 611 | ||
614 | KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) | 612 | KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) |
615 | 613 | ||
@@ -782,8 +780,8 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y) | |||
782 | KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO | 780 | KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO |
783 | endif | 781 | endif |
784 | 782 | ||
785 | include $(srctree)/scripts/Makefile.kasan | 783 | include scripts/Makefile.kasan |
786 | include $(srctree)/scripts/Makefile.extrawarn | 784 | include scripts/Makefile.extrawarn |
787 | 785 | ||
788 | # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments | 786 | # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments |
789 | KBUILD_CPPFLAGS += $(KCPPFLAGS) | 787 | KBUILD_CPPFLAGS += $(KCPPFLAGS) |
@@ -1027,12 +1025,6 @@ headerdep: | |||
1027 | $(srctree)/scripts/headerdep.pl -I$(srctree)/include | 1025 | $(srctree)/scripts/headerdep.pl -I$(srctree)/include |
1028 | 1026 | ||
1029 | # --------------------------------------------------------------------------- | 1027 | # --------------------------------------------------------------------------- |
1030 | |||
1031 | PHONY += depend dep | ||
1032 | depend dep: | ||
1033 | @echo '*** Warning: make $@ is unnecessary now.' | ||
1034 | |||
1035 | # --------------------------------------------------------------------------- | ||
1036 | # Firmware install | 1028 | # Firmware install |
1037 | INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware | 1029 | INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware |
1038 | export INSTALL_FW_PATH | 1030 | export INSTALL_FW_PATH |