sbsv1/abld/toolinfo/rvct_ver2set.pm
author Bob Rosenberg <bob.rosenberg@nokia.com>
Tue, 03 Aug 2010 12:14:54 +0100
changeset 634 f7179968fc36
parent 599 fa7a3cc6effd
permissions -rw-r--r--
Add verbatim functionality to filtering so it can perform chassis builds. Add ProductsDefinition file for defining exports.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     1
# Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     2
# All rights reserved.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     3
# This component and the accompanying materials are made available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     4
# under the terms of "Eclipse Public License v1.0"
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     5
# which accompanies this distribution, and is available
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     7
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     8
# Initial Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    10
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    11
# Contributors:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    12
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    13
# Description:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    14
# This module provides a mapping from RVCT versions to the corresponding environment
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    15
# settings. The information is obtained from a configuration file pointed to by the
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    16
# environment variable ABLD_RVCT_INI. The following example shows the file's
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    17
# structure:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    18
# [2.2.616]
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    19
# bin=C:\Apps\ARM-RVCT\2.2.616\bin
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    20
# inc=C:\Apps\ARM-RVCT\2.2.616\inc
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    21
# lib=C:\Apps\ARM-RVCT\2.2.616\lib
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    22
# [3.1.700]
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    23
# bin=C:\Apps\ARM-RVCT\3.1.700\bin
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    24
# inc=C:\Apps\ARM-RVCT\3.1.700\inc
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
# lib=C:\Apps\ARM-RVCT\3.1.700\lib
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
# If the file is used, it must contain at least one section.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
# 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    30
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    31
package RVCT_ver2set;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    32
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    33
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
# PUBLIC FUNCTIONS
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
# Returns a list of available RVCT versions, for example ["2.2.435", "2.2.616"].
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
sub get_versions();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
# Returns true if the given RVCT version exists.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
sub compiler_exists($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    42
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    43
# Given an RVCT version, returns what the name and value of the RVCT??BIN
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    44
# variable would be. 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    45
sub get_bin_name($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    46
sub get_bin_path($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    47
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    48
# Given an RVCT version, returns what the name and value of the RVCT??INC
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    49
# variable would be. 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    50
sub get_inc_name($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    51
sub get_inc_path($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    52
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    53
# Given an RVCT version, returns what the name and value of the RVCT??LIB
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    54
# variable would be. 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    55
sub get_lib_name($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    56
sub get_lib_path($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    57
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    58
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    59
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    60
# PRIVATE HELPER FUNCTIONS
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    61
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    62
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    63
# Prints an error message and then terminates.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    64
sub _err_and_die(@);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    65
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    66
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    67
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    68
# GLOBAL DATA
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    69
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    70
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    71
# Contains all the information read from the configuration file.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    72
my %g_data;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    73
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    74
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    75
sub get_versions()
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    76
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    77
    return sort(keys %g_data);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    78
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    79
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    80
sub compiler_exists($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    81
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    82
    my $vers = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    83
    return ( $g_data{$vers} ); 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    84
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    85
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    86
sub get_bin_name($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    87
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    88
    my $vers = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    89
    return $g_data{$vers}->{bin_name}; 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    90
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    91
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    92
sub get_bin_path($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    93
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    94
    my $vers = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    95
    return $g_data{$vers}->{bin_path}; 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    96
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    97
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    98
sub get_inc_name($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    99
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   100
    my $vers = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   101
    return $g_data{$vers}->{inc_name}; 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   102
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   103
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   104
sub get_inc_path($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   105
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   106
    my $vers = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   107
    return $g_data{$vers}->{inc_path}; 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   108
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   109
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   110
sub get_lib_name($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   111
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   112
    my $vers = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   113
    return $g_data{$vers}->{lib_name}; 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   114
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   115
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   116
sub get_lib_path($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   117
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   118
    my $vers = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   119
    return $g_data{$vers}->{lib_path}; 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   120
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   121
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   122
sub _err_and_die(@)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   123
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   124
    print STDERR "error: @_\n";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   125
    exit 1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   126
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   127
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   128
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   129
# initialize module
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   130
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   131
    my $fname = $ENV{ABLD_RVCT_INI};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   132
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   133
    if ($fname) # The environment varaible is set.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   134
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   135
        _err_and_die("ABLD_RVCT_INI doesn't point to a file.") unless -f $fname;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   136
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   137
        open (my $in,  "<",  $fname) or _err_and_die("couldn't open ABLD_RVCT_INI = $fname.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   138
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   139
        my @lines = ();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   140
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   141
        while (<$in>)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   142
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   143
            chomp;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   144
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   145
            next if /^\s*;/ ;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   146
            next if /^\s*#/ ;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   147
            next if /^\s*$/ ;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   148
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   149
            push @lines, $_;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   150
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   151
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   152
        close $in or _err_and_die("couldn't close ABLD_RVCT_INI = $fname.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   153
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   154
        while (@lines)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   155
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   156
            my $ver = shift @lines;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   157
            my $kv1 = shift @lines;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   158
            my $kv2 = shift @lines;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   159
            my $kv3 = shift @lines;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   160
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   161
            my $Mm = "";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   162
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   163
            if ( $ver =~ /^\s*\[(\d+)\.(\d+)\.(\d+)\]\s*$/ )
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   164
            {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   165
                _err_and_die("$fname: duplicate section: $ver.") if $g_data{$1};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   166
                $ver = "$1.$2.$3";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   167
                $Mm  = "$1$2";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   168
            }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   169
            else
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   170
            {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   171
                _err_and_die("$fname: invalid section header: $ver.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   172
            }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   173
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   174
            my %kv = ();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   175
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   176
            for ($kv1, $kv2, $kv3)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   177
            {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   178
                _err_and_die("$fname: not enough data in section $ver.") unless $_;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   179
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   180
                if ( $_ =~ /^\s*(bin|inc|lib)\s*=(.*)$/i )
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   181
            {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   182
                    my $key = uc($1);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   183
                    my $val = $2;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   184
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   185
                    $val =~ s/^\s+//;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   186
                    $val =~ s/\s+$//;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   187
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   188
                    _err_and_die("$fname: in section $ver: \"$key\" doesn't point to a directory.") unless -d $val;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   189
                    _err_and_die("$fname: in section $ver: duplicate key \"$key\".") if $kv{$key};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   190
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   191
                    $kv{$key} = $val;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   192
                }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   193
                else
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   194
                {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   195
                    _err_and_die("$fname: in section $ver: invalid line \"$_\".");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   196
                }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   197
            }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   198
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   199
            $g_data{$ver}->{bin_name} = "RVCT${Mm}BIN";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   200
            $g_data{$ver}->{bin_path} = "$kv{BIN}";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   201
            $g_data{$ver}->{inc_name} = "RVCT${Mm}INC";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   202
            $g_data{$ver}->{inc_path} = "$kv{INC}";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   203
            $g_data{$ver}->{lib_name} = "RVCT${Mm}LIB";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   204
            $g_data{$ver}->{lib_path} = "$kv{LIB}";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   205
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   206
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   207
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   208
    else
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   209
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   210
        # ABLD_RVCT_INI isn't set. This is not an error. All public functions will
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   211
        # return NULL.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   212
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   213
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   214
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   215
1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   216
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   217