Configuring and building in a separate directory breaks because gen_chlog.sh assumes it runs from the git tree. Instead of making this assumption, rather assume the more generic, that the gen_chlog.sh script itself is located in the top sourcedir. With this fix configuring and building in a separate tree from the source tree works. Signed-off-by: Knut Omang <knut.omang@xxxxxxxxxx> --- gen_chlog.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gen_chlog.sh b/gen_chlog.sh index 34dfa24..59a9e1f 100755 --- a/gen_chlog.sh +++ b/gen_chlog.sh @@ -10,6 +10,8 @@ if [ "$1" = "--spec" ] ; then spec_format=1 fi +cd `dirname $0` + GIT_DIR=`git rev-parse --git-dir 2>/dev/null` test -z "$GIT_DIR" && usage -- 2.9.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html