Skip to content

Commit

Permalink
perf: clear out make flags when calling kernel make kernelver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Whitcroft authored and Michal Marek committed Jun 15, 2011
1 parent 5d61b9f commit 37aa9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/PERF-VERSION-GEN
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if test -d ../../.git -o -f ../../.git &&
then
VN=$(echo "$VN" | sed -e 's/-/./g');
else
VN=$(make -sC ../.. kernelversion)
VN=$(MAKEFLAGS= make -sC ../.. kernelversion)
fi

VN=$(expr "$VN" : v*'\(.*\)')
Expand Down

0 comments on commit 37aa9a2

Please sign in to comment.