$dir = $1;
} elsif ($line =~ /LINUX_OBJ :?= (.*)/) {
$objdir = $1;
+ } elsif ($line =~ /MODULES_TRUE :?= (.*)/) {
+ # nothing to do if modules are not being built
+ return ""
+ if ($1 eq "#");
last;
}
}
!$ver->open("$dir/include/linux/version.h")) {
die "Run make dep on $dir\n";
}
+
while(defined($line = <$ver>)) {
$line =~ /\#define UTS_RELEASE "(.*)"/;
if ($1) {
my $mtime = shift;
my $linuxdir = shift;
+ # assume building without modules
+ my $postfix = "";
+
+ if ($linuxdir ne "") {
+ $postfix = "-$kernver";
+ }
+
#print "localtime: " . localtime($mtime) . "\n";
my $lustre_vers = $ENV{LUSTRE_VERS};
# lines. maybe we only want to print -CHANGED when something is changed
# and print nothing when it's pristine
if ($pristine) {
- print "$tag-$show_last-PRISTINE-$linuxdir-$kernver\"\n";
+ print "$tag-$show_last-PRISTINE$postfix\"\n";
} else {
- print "$tag-$show_last-CHANGED-$linuxdir-$kernver\"\n";
+ print "$tag-$show_last-CHANGED$postfix\"\n";
}
}