From: Martin Jansa on
* it works properly only when CWD == scrtree
* with this patch:
jama src # /usr/src/linux/scripts/setlocalversion /usr/src/linux
-JaMa-00001-g18672de
* without:
jama src # /usr/src/linux/scripts/setlocalversion /usr/src/linux
Error: kernelrelease not valid - run 'make prepare' to update it

Signed-off-by: Martin Jansa <Martin.Jansa(a)gmail.com>
---
scripts/setlocalversion | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index d6a866e..41864d1 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -135,7 +135,7 @@ if $scm_only; then
exit
fi

-if test -e include/config/auto.conf; then
+if test -e "${srctree}/include/config/auto.conf"; then
source "$_"
else
echo "Error: kernelrelease not valid - run 'make prepare' to update it"
--
1.7.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/