diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-30 19:58:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-30 19:58:05 -0500 |
commit | 597690cd02684b7e4904288e4b85797123a5093f (patch) | |
tree | f5d2a84771b9d532f2fe99a9cf4e0b51f5432e26 /Makefile | |
parent | 53d8ab29f8f6d67e37857b68189b38fa3d87dd8e (diff) | |
parent | bf705ad0c364ea375b3a5e89fa8a0e1c1fde994c (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild changes from Michal Marek:
- fix make -s detection with make-4.0
- fix for scripts/setlocalversion when the kernel repository is a
submodule
- do not hardcode ';' in macros that expand to assembler code, as some
architectures' assemblers use a different character for newline
- Fix passing --gdwarf-2 to the assembler
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
frv: Remove redundant debugging info flag
mn10300: Remove redundant debugging info flag
kbuild: Fix debugging info generation for .S files
arch: use ASM_NL instead of ';' for assembler new line character in the macro
kbuild: Fix silent builds with make-4
Fix detectition of kernel git repository in setlocalversion script [take #2]
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -311,9 +311,15 @@ endif | |||
311 | # If the user is running make -s (silent mode), suppress echoing of | 311 | # If the user is running make -s (silent mode), suppress echoing of |
312 | # commands | 312 | # commands |
313 | 313 | ||
314 | ifneq ($(filter 4.%,$(MAKE_VERSION)),) # make-4 | ||
315 | ifneq ($(filter %s ,$(firstword x$(MAKEFLAGS))),) | ||
316 | quiet=silent_ | ||
317 | endif | ||
318 | else # make-3.8x | ||
314 | ifneq ($(filter s% -s%,$(MAKEFLAGS)),) | 319 | ifneq ($(filter s% -s%,$(MAKEFLAGS)),) |
315 | quiet=silent_ | 320 | quiet=silent_ |
316 | endif | 321 | endif |
322 | endif | ||
317 | 323 | ||
318 | export quiet Q KBUILD_VERBOSE | 324 | export quiet Q KBUILD_VERBOSE |
319 | 325 | ||
@@ -633,7 +639,7 @@ endif | |||
633 | 639 | ||
634 | ifdef CONFIG_DEBUG_INFO | 640 | ifdef CONFIG_DEBUG_INFO |
635 | KBUILD_CFLAGS += -g | 641 | KBUILD_CFLAGS += -g |
636 | KBUILD_AFLAGS += -gdwarf-2 | 642 | KBUILD_AFLAGS += -Wa,--gdwarf-2 |
637 | endif | 643 | endif |
638 | 644 | ||
639 | ifdef CONFIG_DEBUG_INFO_REDUCED | 645 | ifdef CONFIG_DEBUG_INFO_REDUCED |