Skip to content

Commit c66d707

Browse files
committed
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild fix from Michal Marek: "The main kbuild branch ended up with a single commit this time, a fix to send errors to stderr" * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: kbuild: Print errors to stderr
2 parents 172f993 + 5369f55 commit c66d707

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎Makefile‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,11 @@ PHONY += include/config/auto.conf
535535

536536
include/config/auto.conf:
537537
$(Q)test -e include/generated/autoconf.h -a -e $@ || ( \
538-
echo; \
539-
echo " ERROR: Kernel configuration is invalid."; \
540-
echo " include/generated/autoconf.h or $@ are missing.";\
541-
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
542-
echo; \
538+
echo >&2; \
539+
echo >&2 " ERROR: Kernel configuration is invalid."; \
540+
echo >&2 " include/generated/autoconf.h or $@ are missing.";\
541+
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
542+
echo >&2 ; \
543543
/bin/false)
544544

545545
endif # KBUILD_EXTMOD
@@ -796,8 +796,8 @@ prepare3: include/config/kernel.release
796796
ifneq ($(KBUILD_SRC),)
797797
@$(kecho) ' Using $(srctree) as source for kernel'
798798
$(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \
799-
echo " $(srctree) is not clean, please run 'make mrproper'"; \
800-
echo " in the '$(srctree)' directory.";\
799+
echo >&2 " $(srctree) is not clean, please run 'make mrproper'"; \
800+
echo >&2 " in the '$(srctree)' directory.";\
801801
/bin/false; \
802802
fi;
803803
endif
@@ -971,11 +971,11 @@ else # CONFIG_MODULES
971971
# ---------------------------------------------------------------------------
972972

973973
modules modules_install: FORCE
974-
@echo
975-
@echo "The present kernel configuration has modules disabled."
976-
@echo "Type 'make config' and enable loadable module support."
977-
@echo "Then build a kernel with module support enabled."
978-
@echo
974+
@echo >&2
975+
@echo >&2 "The present kernel configuration has modules disabled."
976+
@echo >&2 "Type 'make config' and enable loadable module support."
977+
@echo >&2 "Then build a kernel with module support enabled."
978+
@echo >&2
979979
@exit 1
980980

981981
endif # CONFIG_MODULES

‎scripts/link-vmlinux.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then
210210
mksysmap ${kallsyms_vmlinux} .tmp_System.map
211211

212212
if ! cmp -s System.map .tmp_System.map; then
213-
echo Inconsistent kallsyms data
214-
echo echo Try "make KALLSYMS_EXTRA_PASS=1" as a workaround
213+
echo >&2 Inconsistent kallsyms data
214+
echo >&2 echo Try "make KALLSYMS_EXTRA_PASS=1" as a workaround
215215
cleanup
216216
exit 1
217217
fi

0 commit comments

Comments
 (0)