ソースを参照

perf: clear out make flags when calling kernel make kernelver

When generating the perf version from the kernel version using 'make
kernelver' it is necessary to clear out any MAKEFLAGS otherwise they may
trigger additional output which pollute the contents.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Andy Whitcroft 14 年 前
コミット
37aa9a2eb4
1 ファイル変更1 行追加1 行削除
  1. 1 1
      tools/perf/util/PERF-VERSION-GEN

+ 1 - 1
tools/perf/util/PERF-VERSION-GEN

@@ -23,7 +23,7 @@ if test -d ../../.git -o -f ../../.git &&
 then
 then
 	VN=$(echo "$VN" | sed -e 's/-/./g');
 	VN=$(echo "$VN" | sed -e 's/-/./g');
 else
 else
-	VN=$(make -sC ../.. kernelversion)
+	VN=$(MAKEFLAGS= make -sC ../.. kernelversion)
 fi
 fi
 
 
 VN=$(expr "$VN" : v*'\(.*\)')
 VN=$(expr "$VN" : v*'\(.*\)')