summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-14 13:16:28 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-14 13:16:28 -0400
commit4d34dac1c920903635c1ae4133aca65400b1251b (patch)
tree5b628ea491aed7b6c77af6cc42b4af36ccf0a053 /buildrun.cxx
parentd7972e86be41ce859cd14b745f77bd7acd25e007 (diff)
downloadsystemtap-steved-4d34dac1c920903635c1ae4133aca65400b1251b.tar.gz
systemtap-steved-4d34dac1c920903635c1ae4133aca65400b1251b.tar.xz
systemtap-steved-4d34dac1c920903635c1ae4133aca65400b1251b.zip
check for module-building Makefile more clearly
* buildrun.cxx (compile_pass): stat the Makefile, not just the build/ directory.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 1a349d5f..c5c44f13 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;
}