aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Marek2012-07-07 16:04:40 -0500
committerMichal Marek2012-07-07 16:33:31 -0500
commit5369f55021feb27a1481267e7afefe14128d669f (patch)
tree3bc9329a94f37875f24de5cf7dee74c42e3c657a /Makefile
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f (diff)
downloadkernel-audio-5369f55021feb27a1481267e7afefe14128d669f.tar.gz
kernel-audio-5369f55021feb27a1481267e7afefe14128d669f.tar.xz
kernel-audio-5369f55021feb27a1481267e7afefe14128d669f.zip
kbuild: Print errors to stderr
... at least in the top-level Makefile and scripts/link-vmlinux.sh. There are some more instances of the 'echo <error>; exit 1' pattern in some arch Makefiles and kconfig. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 0d718ede9ea5..d7d79491fe26 100644
--- a/Makefile
+++ b/Makefile
@@ -535,11 +535,11 @@ PHONY += include/config/auto.conf
535 535
536include/config/auto.conf: 536include/config/auto.conf:
537 $(Q)test -e include/generated/autoconf.h -a -e $@ || ( \ 537 $(Q)test -e include/generated/autoconf.h -a -e $@ || ( \
538 echo; \ 538 echo >&2; \
539 echo " ERROR: Kernel configuration is invalid."; \ 539 echo >&2 " ERROR: Kernel configuration is invalid."; \
540 echo " include/generated/autoconf.h or $@ are missing.";\ 540 echo >&2 " include/generated/autoconf.h or $@ are missing.";\
541 echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ 541 echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
542 echo; \ 542 echo >&2 ; \
543 /bin/false) 543 /bin/false)
544 544
545endif # KBUILD_EXTMOD 545endif # KBUILD_EXTMOD
@@ -796,8 +796,8 @@ prepare3: include/config/kernel.release
796ifneq ($(KBUILD_SRC),) 796ifneq ($(KBUILD_SRC),)
797 @$(kecho) ' Using $(srctree) as source for kernel' 797 @$(kecho) ' Using $(srctree) as source for kernel'
798 $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \ 798 $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \
799 echo " $(srctree) is not clean, please run 'make mrproper'"; \ 799 echo >&2 " $(srctree) is not clean, please run 'make mrproper'"; \
800 echo " in the '$(srctree)' directory.";\ 800 echo >&2 " in the '$(srctree)' directory.";\
801 /bin/false; \ 801 /bin/false; \
802 fi; 802 fi;
803endif 803endif
@@ -971,11 +971,11 @@ else # CONFIG_MODULES
971# --------------------------------------------------------------------------- 971# ---------------------------------------------------------------------------
972 972
973modules modules_install: FORCE 973modules modules_install: FORCE
974 @echo 974 @echo >&2
975 @echo "The present kernel configuration has modules disabled." 975 @echo >&2 "The present kernel configuration has modules disabled."
976 @echo "Type 'make config' and enable loadable module support." 976 @echo >&2 "Type 'make config' and enable loadable module support."
977 @echo "Then build a kernel with module support enabled." 977 @echo >&2 "Then build a kernel with module support enabled."
978 @echo 978 @echo >&2
979 @exit 1 979 @exit 1
980 980
981endif # CONFIG_MODULES 981endif # CONFIG_MODULES