summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/conf/newvers.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index f141a8c..134e46e 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -100,7 +100,13 @@ for dir in /bin /usr/bin /usr/local/bin; do
done
if [ -n "$svnversion" -a -d "${SRCDIR}/.svn" ] ; then
- svn=" r`cd $SRCDIR && $svnversion`"
+ # If we are called from the kernel build, limit
+ # the scope of svnversion to sys/ .
+ if [ -e "${SRCDIR}/sys/conf/newvers.sh" ] ; then
+ svn=" r`cd $SRCDIR/sys && $svnversion`"
+ else
+ svn=" r`cd $SRCDIR && $svnversion`"
+ fi
else
svn=""
fi
OpenPOWER on IntegriCloud