From e0ccd368149d63108042c97150012ad4a2e7593c Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 24 Aug 2009 13:14:21 -0400 Subject: PR4186 cont'd: tolerate older kbuild Makefile's chattiness * buildrun.cxx (run_make_cmd): Add back >/dev/null for older kernels. --- buildrun.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'buildrun.cxx') diff --git a/buildrun.cxx b/buildrun.cxx index 69cc5a66..71e6df56 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -63,6 +63,14 @@ run_make_cmd(systemtap_session& s, string& make_cmd) else make_cmd += " -s --no-print-directory"; + if (strverscmp (s.kernel_base_release.c_str(), "2.6.29") < 0) + { + // Older kernels, before linux commit #fd54f502841c1, include + // gratuitous "echo"s in their Makefile. We need to suppress + // that with this bluntness. + make_cmd += " >/dev/null"; + } + return stap_system (s.verbose, make_cmd); } -- cgit