History

kbuild: setlocalversion: print error to STDERR

I tried to use 'make O=...' from an unclean source tree. This triggered the error path of setlocalversion. But by printing to STDOUT, it created a broken localversion which then caused another (unrelated) error: "4.7.0-rc2Error: kernelrelease not valid - run make prepare to update it" exceeds 64 characters After printing to STDERR, the true build error gets displayed later: /home/wsa/Kernel/linux is not clean, please run 'make mrproper' in the '/home/wsa/Kernel/linux' directory.

Wolfram Sang committed 10 years ago

Commit 78283ed1 parent 543c37c1 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/setlocalversion+1−1
@@ -143,7 +143,7 @@ fi · 142 unmodified lines
143if test -e include/config/auto.conf; then143if test -e include/config/auto.conf; then
144 . include/config/auto.conf144 . include/config/auto.conf
145else145else
146 echo "Error: kernelrelease not valid - run 'make prepare' to update it"146 echo "Error: kernelrelease not valid - run 'make prepare' to update it" >&2
147 exit 1147 exit 1
148fi148fi
149 149