#!/usr/bin/perl
-# Copyright (c) 2012 Mellanox Technologies. All rights reserved.
+# Copyright (c) 2014 Mellanox Technologies. All rights reserved.
#
# This Software is licensed under one of the following licenses:
#
$ref = $packages{$name}{'linux_git_branch'};
ex "$GIT checkout $ref";
update_build_id($name, "linux:\n$packages{$name}{'linux_git_url'} $packages{$name}{'linux_git_branch'}\n" . `git log -1 | head -1`);
-
+
# Get compat sub-tree
rmtree $tmpdir . '/' . "compat";
mkpath $tmpdir . '/' . "compat";
open (IN, "$destdir/BUILD_ID") or die "Can't open $destdir/BUILD_ID file: $!\n";
seek IN,0,0;
my @file = <IN>;
- my $list_of_packages = 'kernel-ib';
+ my $list_of_packages = 'compat-rdma';
open (OUT, "> ofed_info") or die "Can't open ofed_info file: $!\n";
print OUT "#!/bin/bash\n";
my $firstline = <@file>;
print OUT "cat << EOF\n";
foreach my $line (@file) {
print OUT $line;
+ next if ($line =~ /compat|linux/);
if ($line =~ /\:$/ and $line !~ /$distribution/) {
$line =~ s/://g;
chomp $line;
}
if ($build_release) {
- $release = $distribution .
+ $release = $distribution .
'.' . (split '-',$version)[0];
if ((split '-',$version)[1]) {
$release .= '.' . (split '-',$version)[1];
my $mypid = fork();
die "Failed to fork: $!" if not defined $mypid;
-
+
$info{$package}{pid} = $mypid;
-
+
if ( not $mypid ) {
if ($packages{$package}{'local_srpm'}) {
if (-d $packages{$package}{'local_srpm'}) {