From 4d34dac1c920903635c1ae4133aca65400b1251b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 14 Oct 2009 13:16:28 -0400 Subject: [PATCH] check for module-building Makefile more clearly * buildrun.cxx (compile_pass): stat the Makefile, not just the build/ directory. --- buildrun.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/buildrun.cxx b/buildrun.cxx index 1a349d5fb..c5c44f13a 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -214,15 +214,14 @@ compile_pass (systemtap_session& s) o.close (); // Generate module directory pathname and make sure it exists. - string module_dir; - module_dir = s.kernel_build_tree; + string module_dir = s.kernel_build_tree; + string module_dir_makefile = module_dir + "/Makefile"; struct stat st; - rc = stat(module_dir.c_str(), &st); + rc = stat(module_dir_makefile.c_str(), &st); if (rc != 0) { - clog << "Module directory " << module_dir << " check failed: " - << strerror(errno) << endl - << "Make sure kernel devel is installed." << endl; + clog << "Checking \"" << module_dir_makefile << "\" failed: " << strerror(errno) << endl + << "Ensure kernel development headers & makefiles are installed." << endl; return rc; } -- 2.43.5