Blame CommonInstall/overrides_delta.pl

Packit 857059
#!/usr/bin/perl
Packit 857059
# BEGIN_ICS_COPYRIGHT8 ****************************************
Packit 857059
# 
Packit 857059
# Copyright (c) 2015-2017, Intel Corporation
Packit 857059
# 
Packit 857059
# Redistribution and use in source and binary forms, with or without
Packit 857059
# modification, are permitted provided that the following conditions are met:
Packit 857059
# 
Packit 857059
#     * Redistributions of source code must retain the above copyright notice,
Packit 857059
#       this list of conditions and the following disclaimer.
Packit 857059
#     * Redistributions in binary form must reproduce the above copyright
Packit 857059
#       notice, this list of conditions and the following disclaimer in the
Packit 857059
#       documentation and/or other materials provided with the distribution.
Packit 857059
#     * Neither the name of Intel Corporation nor the names of its contributors
Packit 857059
#       may be used to endorse or promote products derived from this software
Packit 857059
#       without specific prior written permission.
Packit 857059
# 
Packit 857059
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Packit 857059
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit 857059
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Packit 857059
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
Packit 857059
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit 857059
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Packit 857059
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Packit 857059
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Packit 857059
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit 857059
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 857059
# 
Packit 857059
# END_ICS_COPYRIGHT8   ****************************************
Packit 857059
Packit 857059
# [ICS VERSION STRING: unknown]
Packit 857059
use strict;
Packit 857059
#use Term::ANSIColor;
Packit 857059
#use Term::ANSIColor qw(:constants);
Packit 857059
#use File::Basename;
Packit 857059
#use Math::BigInt;
Packit 857059
Packit 857059
	# Names of supported install components
Packit 857059
	# must be listed in dependency order such that prereqs appear 1st
Packit 857059
	# delta_debug must be last
Packit 857059
my @delta_Components_rhel72 = ( "opa_stack", "ibacm", "mpi_selector", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_sles12_sp2 = ( "opa_stack", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_rhel73 = ( "opa_stack", "mpi_selector", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_sles12_sp3 = ( "opa_stack", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_sles12_sp4 = ( "opa_stack", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_sles12_sp5 = ( "opa_stack", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_rhel74 = ( "opa_stack", "mpi_selector", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_rhel75 = ( "opa_stack", "mpi_selector", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_rhel76 = ( "opa_stack", "mpi_selector", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_rhel77 = ( "opa_stack", "mpi_selector", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_rhel8 = ( "opa_stack", "mpi_selector", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_rhel81 = ( "opa_stack", "mpi_selector", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_sles15 = ( "opa_stack", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
my @delta_Components_sles15_sp1 = ( "opa_stack", "intel_hfi",
Packit 857059
		"opa_stack_dev",
Packit 857059
		"delta_ipoib",
Packit 857059
		"delta_debug", );
Packit 857059
Packit 857059
@Components = ( );
Packit 857059
# RHEL7.2, ibacm is a full component with rpms to install
Packit 857059
my @delta_SubComponents_older = ( "rdma_ndd", "delta_srp", "delta_srpt" );
Packit 857059
# RHEL7.3 and newer AND SLES12.2 and newer
Packit 857059
my @delta_SubComponents_newer = ( "ibacm", "rdma_ndd", "delta_srp", "delta_srpt" );
Packit 857059
@SubComponents = ( );
Packit 857059
Packit 857059
# override some of settings in main_omnipathwrap_delta.pl
Packit 857059
sub overrides()
Packit 857059
{
Packit 857059
	# The component list has slight variations per distro
Packit 857059
	if ( "$CUR_VENDOR_VER" eq "ES72" ) {
Packit 857059
		@Components = ( @delta_Components_rhel72 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES122" ) {
Packit 857059
		@Components = ( @delta_Components_sles12_sp2 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES73" ) {
Packit 857059
		@Components = ( @delta_Components_rhel73 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES123" ) {
Packit 857059
		@Components = ( @delta_Components_sles12_sp3 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES124" ) {
Packit 857059
		@Components = ( @delta_Components_sles12_sp4 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES125" ) {
Packit 857059
		@Components = ( @delta_Components_sles12_sp5 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES74" ) {
Packit 857059
		@Components = ( @delta_Components_rhel74 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES75" ) {
Packit 857059
		@Components = ( @delta_Components_rhel75 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES76" ) {
Packit 857059
		@Components = ( @delta_Components_rhel76 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES77" ) {
Packit 857059
		@Components = ( @delta_Components_rhel77 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES8" ) {
Packit 857059
		@Components = ( @delta_Components_rhel8 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES81" ) {
Packit 857059
		@Components = ( @delta_Components_rhel81 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES15" ) {
Packit 857059
		@Components = ( @delta_Components_sles15 );
Packit 857059
	} elsif ( "$CUR_VENDOR_VER" eq "ES151" ) {
Packit 857059
		@Components = ( @delta_Components_sles15_sp1 );
Packit 857059
	} else {
Packit 857059
		# unsupported OS
Packit 857059
		@Components = ( );
Packit 857059
	}
Packit 857059
Packit 857059
	# Sub components for autostart processing
Packit 857059
	if ( "$CUR_VENDOR_VER" eq "ES72" ) {
Packit 857059
		@SubComponents = ( @delta_SubComponents_older );
Packit 857059
	} else {
Packit 857059
		@SubComponents = ( @delta_SubComponents_newer );
Packit 857059
	}
Packit 857059
Packit 857059
	# TBD remove this concept
Packit 857059
	# no WrapperComponent (eg. opaconfig)
Packit 857059
	$WrapperComponent = "";
Packit 857059
Packit 857059
	# set SrcDir for all components to .
Packit 857059
	foreach my $comp ( @Components )
Packit 857059
	{
Packit 857059
        $ComponentInfo{$comp}{'SrcDir'} = ".";
Packit 857059
	}
Packit 857059
}