[ewg] [PATCH install] Parse new option in ofed.conf

Moni Shoua monis at Voltaire.COM
Wed Feb 17 06:17:13 PST 2010


Add parsing of option "bonding_force_all_os" and passing
it to rpmbuild when building ib-bonding. The meaning of this new
option is: build ib-bonding for any OS and override the judgment
in the spec file.

Signed-off-by: Moni Shoua <monis at voltaire.com>
---

--- install.pl.orig	2010-02-16 18:41:59.000000000 +0200
+++ install.pl	2010-02-17 14:46:50.000000000 +0200
@@ -63,6 +63,7 @@
 
 my $clear_string = `clear`;
 my $upgrade_open_iscsi = 0;
+my $bonding_force_all_os = 0;
 
 my $vendor_pre_install = "";
 my $vendor_post_install = "";
@@ -2207,6 +2208,13 @@
                     next;
                 }
 
+                if ($package eq "bonding_force_all_os") {
+                    if ($selected =~ m/[Yy]|[Yy][Ee][Ss]/) {
+                        $bonding_force_all_os = 1;
+                    }
+                    next;
+                }
+
 		if (substr($package,0,length("vendor_config")) eq "vendor_config") {
 		       next;
 		}
@@ -2835,6 +2843,7 @@
     elsif ($name eq 'ib-bonding') {
         $cmd .= " --define 'KVERSION $kernel'";
         $cmd .= " --define '_release $kernel_rel'";
+        $cmd .= " --define 'force_all_os $bonding_force_all_os'";
     }
 
     $cmd .= " --define '_prefix $prefix'";



More information about the ewg mailing list