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

Unified · Split

scripts/setlocalversion+1−1
@@ -143,7 +143,7 @@ fi · 142 unmodified lines
143143 if test -e include/config/auto.conf; then
144144 . include/config/auto.conf
145145 else
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
147147 exit 1
148148 fi
149149

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t