From 6dab699bdea1c6a51c74a644342a720b0f4fdfb6 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 12 Jul 2005 00:32:11 +0000 Subject: 2005-07-11 Martin Hunt * 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. --- runtime/probes/build_probe | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'runtime/probes/build_probe') 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} } -- cgit