summaryrefslogtreecommitdiffstats
path: root/runtime/probes/build_probe
diff options
context:
space:
mode:
authorhunt <hunt>2005-07-12 00:32:11 +0000
committerhunt <hunt>2005-07-12 00:32:11 +0000
commit6dab699bdea1c6a51c74a644342a720b0f4fdfb6 (patch)
treedacaeb909d102efbe08be96c9e6cc0fc46a5c6a4 /runtime/probes/build_probe
parentc37f6b365f83fc09aa77dfb05c4543bcf6ee7bc8 (diff)
downloadsystemtap-steved-6dab699bdea1c6a51c74a644342a720b0f4fdfb6.tar.gz
systemtap-steved-6dab699bdea1c6a51c74a644342a720b0f4fdfb6.tar.xz
systemtap-steved-6dab699bdea1c6a51c74a644342a720b0f4fdfb6.zip
2005-07-11 Martin Hunt <hunt@redhat.com>
* build_probe: Set RELAYFS correctly. * Makefile.template: Fix for RELAYFS. * stp: Moved here. All probes now use this copy. * ALL/stp: source the master copy of stp.
Diffstat (limited to 'runtime/probes/build_probe')
-rwxr-xr-xruntime/probes/build_probe12
1 files changed, 10 insertions, 2 deletions
diff --git a/runtime/probes/build_probe b/runtime/probes/build_probe
index 9eadebd2..7e3207b1 100755
--- a/runtime/probes/build_probe
+++ b/runtime/probes/build_probe
@@ -7,7 +7,7 @@ proc usage {} {
}
# use Makefile.template to generate a Makefile
-proc create_makefile {target} {
+proc create_makefile {target relayfs} {
if {[catch {open ../Makefile.template r} fd]} {
puts "ERROR opening ../Makefile.template"
exit -1
@@ -20,6 +20,9 @@ proc create_makefile {target} {
if {[regsub XXX $line $target newline]} {
set line $newline
}
+ if {[regsub RELAYFS $line $relayfs newline]} {
+ set line $newline
+ }
puts $mfd $line
}
close $fd
@@ -123,10 +126,15 @@ foreach arg $argv {
}
}
+set relayfs ""
+if {![file exists /lib/modules/[exec uname -r]/build/include/linux/relayfs_fs.h]} {
+ set relayfs {-I $(RT)/relayfs}
+}
+
if {![catch {open targets r} tfd]} {
while {[gets $tfd line] >= 0} {
set target [lindex $line 0]
- create_makefile $target
+ create_makefile $target $relayfs
build $target
catch {exec /bin/rm Makefile}
}