From: Moni Shoua Date: Wed, 17 Feb 2010 14:17:13 +0000 (+0200) Subject: Parse new option in ofed.conf X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c3e3892ed52c1ccd0e96810d43a4f2e0fad77a9c;p=~aditr%2Fofed_scripts.git Parse new option in ofed.conf 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 --- diff --git a/install.pl b/install.pl index 450c54b..88ba0c3 100755 --- a/install.pl +++ b/install.pl @@ -63,6 +63,7 @@ my $print_available = 0; 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 @@ sub select_packages 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 @@ sub build_kernel_rpm 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'";