summaryrefslogtreecommitdiffstats
path: root/scripts/setlocalversion
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2016-06-06 21:00:38 +0200
committerMichal Marek <mmarek@suse.com>2016-06-20 17:37:45 +0200
commit78283edf2c01c38eb840a3de5ffd18fe2992ab64 (patch)
treea87f054c1022212ed8dc83c78ac8ae1b0d99e9fc /scripts/setlocalversion
parent543c37cb165049c3be24a0d4733e67caa2b33eef (diff)
downloadop-kernel-dev-78283edf2c01c38eb840a3de5ffd18fe2992ab64.zip
op-kernel-dev-78283edf2c01c38eb840a3de5ffd18fe2992ab64.tar.gz
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. Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/setlocalversion')
-rwxr-xr-xscripts/setlocalversion2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 63d91e2..966dd39 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -143,7 +143,7 @@ fi
if test -e include/config/auto.conf; then
. include/config/auto.conf
else
- echo "Error: kernelrelease not valid - run 'make prepare' to update it"
+ echo "Error: kernelrelease not valid - run 'make prepare' to update it" >&2
exit 1
fi
OpenPOWER on IntegriCloud