sbsv1/abld/toolinfo/rvct_plat2set.pm
author Bob Rosenberg <bob.rosenberg@nokia.com>
Mon, 18 Oct 2010 10:23:52 +0100
changeset 659 7afa5fba0903
parent 599 fa7a3cc6effd
permissions -rw-r--r--
Merge
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 build platforms (e.g. ARMV5) to the
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    15
# corresponding RVCT environment settings. The information is obtained from an INI
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    16
# file pointed to by the environment variable ABLD_PLAT_INI. The file can have two
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    17
# different formats. The first format (Format 1) is:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    18
# [Symbian_OS_v9.5]
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    19
# ARMV5 = RVCT 2.2.616
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    20
# ARMV6 = RVCT 2.2.616
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    21
# ARMV7 = RVCT 3.1.700
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    22
# [Symbian_OS_v9.6]
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    23
# ARMV5 = RVCT 3.1.862
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    24
# ARMV7 = RVCT 4.0.100
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    25
# [Symbian_OS_vFuture]
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    26
# ARMV5 = RVCT 4.1.812
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    27
# ARMV7 = RVCT 4.0.100
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    28
# This format matches the tuple <OS version, build platform> onto a RVCT version.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    29
# The build system will look up the OS version in "\epoc32\data\buildinfo.txt".
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    30
# The second format (Format 2) is:
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    31
# ARMV5 = RVCT 2.2.616
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    32
# ARMV6 = RVCT 2.2.616
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    33
# ARMV7 = RVCT 3.1.700
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    34
# This format doesn't take the OS version into account and is mostly intended for
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    35
# the Integration team.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    36
# If ABLD_PLAT_INI is not set, or if the INI file doesn't contain any data for the
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    37
# given platform, whatever RVCT version is found in the path will be used.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    38
# 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    39
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    40
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    41
package RVCT_plat2set;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    42
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    43
use RVCT_ver2set;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    44
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    45
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    46
# PUBLIC FUNCTIONS
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    47
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    48
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    49
# Returns the RVCT version corresponding to the given build platform. The first
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    50
# function returns the data as a string (e.g. "2.2.616"); the second function
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    51
# returns the data as a list (e.g. [2,2,616]).
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    52
sub get_version_string($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    53
sub get_version_list($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    54
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    55
# Returns true if an RVCT version corresponding to the given platform exists.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    56
sub compiler_exists($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    57
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    58
# Given a build platform, returns what the name and value of the RVCT??BIN variable
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    59
# would be. 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    60
sub get_bin_name($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    61
sub get_bin_path($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    62
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    63
# Given a build platform, returns what the name and value of the RVCT??INC variable
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    64
# would be. 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    65
sub get_inc_name($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    66
sub get_inc_path($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    67
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    68
# Given a build platform, returns what the name and value of the RVCT??LIB variable
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    69
# variable would be. 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    70
sub get_lib_name($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    71
sub get_lib_path($);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    72
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    73
# Given a build platform and the name of an RVCT library, returns the full path to
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    74
# that library.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    75
sub find_lib($$);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    76
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    77
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    78
# PRIVATE HELPER FUNCTIONS
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    79
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    80
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    81
sub _get_something(@);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    82
sub _err_and_die(@);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    83
sub _get_os_version();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    84
sub _parse_section_data($@);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    85
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    86
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    87
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    88
# GLOBAL DATA
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    89
#
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    90
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    91
my %g_data;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    92
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    93
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    94
sub get_version_string($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    95
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    96
    return _get_something(@_, 'version');
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    97
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    98
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
    99
sub get_version_list($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   100
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   101
    my $tmp = _get_something(@_, 'version');
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   102
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   103
    return split(/\./, $tmp);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   104
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   105
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   106
sub compiler_exists($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   107
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   108
    my $plat = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   109
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   110
    if ( $g_data{$plat}->{version} || $g_data{0}->{version} )
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   111
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   112
        return 1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   113
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   114
    else
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   115
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   116
        return 0;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   117
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   118
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   119
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   120
sub get_bin_name($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   121
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   122
    return _get_something(@_, 'bin_name');
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   123
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   124
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   125
sub get_bin_path($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   126
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   127
    return _get_something(@_, 'bin_path');
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   128
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   129
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   130
sub get_inc_name($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   131
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   132
    return _get_something(@_, 'inc_name');
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   133
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   134
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   135
sub get_inc_path($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   136
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   137
    return _get_something(@_, 'inc_path');
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   138
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   139
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   140
sub get_lib_name($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   141
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   142
    return _get_something(@_, 'lib_name');
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   143
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   144
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   145
sub get_lib_path($)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   146
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   147
    return _get_something(@_, 'lib_path');
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   148
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   149
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   150
sub find_lib($$)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   151
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   152
    my $plat = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   153
    my $lib  = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   154
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   155
    my $p = get_lib_path($plat);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   156
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   157
    my $f1 = "$p\\armlib\\$lib";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   158
    my $f2 = "$p\\cpplib\\$lib";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   159
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   160
    return "$p\\armlib\\$lib" if -f $f1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   161
    return "$p\\cpplib\\$lib" if -f $f2;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   162
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   163
    _err_and_die("could not find $lib for platform $plat.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   164
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   165
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   166
sub _get_something(@)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   167
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   168
    my $plat = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   169
    my $what = shift;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   170
    
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   171
    my $data = $g_data{$plat}->{$what};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   172
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   173
    if (!$data)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   174
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   175
        $data = $g_data{0}->{$what};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   176
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   177
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   178
    return $data;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   179
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   180
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   181
sub _err_and_die(@)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   182
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   183
    if ( defined(&main::FatalError) )
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   184
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   185
        main::FatalError(@_);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   186
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   187
    else
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   188
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   189
        print STDERR "error: @_\n";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   190
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   191
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   192
    exit 1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   193
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   194
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   195
sub _get_os_version()
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   196
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   197
    my $fname = "/epoc32/data/buildinfo.txt";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   198
    
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   199
    my $os_ver = "";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   200
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   201
    open (my $in,  "<",  $fname) or _err_and_die("couldn't open $fname.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   202
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   203
    while (<$in>)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   204
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   205
        chomp;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   206
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   207
        if ( $_ =~ /^\s*ManufacturerSoftwareBuild\s+M\d\d\d\d\d_(\S+)\s*$/i )
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   208
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   209
            $os_ver = $1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   210
            last
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   211
        }
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
    close $in or _err_and_die("couldn't close $fname.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   215
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   216
    _err_and_die("couldn't read OS version in $fname") unless $os_ver;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   217
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   218
    return $os_ver;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   219
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   220
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   221
sub _parse_section_data($@)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   222
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   223
    my ($fname, @lines) = @_;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   224
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   225
    for (@lines)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   226
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   227
        if ( $_ =~ /^\s*(\w+)\s*=\s*RVCT\s+(\d+\.\d+\.\d+)\s*$/i )
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   228
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   229
            my $plat = uc($1);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   230
            my $vers = $2;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   231
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   232
            _err_and_die("$fname: platform $plat already defined.") if $g_data{$plat};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   233
            _err_and_die("$fname: RVCT $vers doesn't exist.") unless RVCT_ver2set::compiler_exists($vers);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   234
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   235
            $g_data{$plat}->{version} = $vers;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   236
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   237
            $g_data{$plat}->{bin_name} = RVCT_ver2set::get_bin_name($vers);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   238
            $g_data{$plat}->{bin_path} = RVCT_ver2set::get_bin_path($vers);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   239
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   240
            $g_data{$plat}->{inc_name} = RVCT_ver2set::get_inc_name($vers);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   241
            $g_data{$plat}->{inc_path} = RVCT_ver2set::get_inc_path($vers);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   242
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   243
            $g_data{$plat}->{lib_name} = RVCT_ver2set::get_lib_name($vers);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   244
            $g_data{$plat}->{lib_path} = RVCT_ver2set::get_lib_path($vers);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   245
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   246
        else
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   247
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   248
            _err_and_die("$fname: invalid field: $_.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   249
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   250
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   251
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   252
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   253
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   254
# initialize module
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   255
{
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   256
    # Initialise platform "0", wich represents the RVCT version found in the path.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   257
    my $vsnworked = 0; # Flag to check if --vsn command worked
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   258
    # clear --licretry from RVCT22_CCOPT
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   259
    my $key;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   260
    my %RVCT_CCOPT;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   261
    foreach $key (keys %ENV) {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   262
        if($key =~ /RVCT\d+_CCOPT/i ) {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   263
            $RVCT_CCOPT{$key} = $ENV{$key};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   264
            $ENV{$key} =~ s/--licretry//i;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   265
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   266
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   267
    my @lines = qx/armcc --vsn 2>&1/;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   268
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   269
    foreach (@lines)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   270
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   271
        if ($_ =~ /\bRVCT(\d)\.(\d)\s+\[Build (\d+)\]/ )
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   272
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   273
	    $vsnworked = 1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   274
            my ($bin, $inc, $lib) = ("RVCT$1$2BIN", "RVCT$1$2INC", "RVCT$1$2LIB");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   275
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   276
            $g_data{0}->{version} = "$1.$2.$3";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   277
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   278
            $g_data{0}->{bin_name} = $bin;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   279
            $g_data{0}->{bin_path} = $ENV{$bin};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   280
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   281
            $g_data{0}->{inc_name} = $inc;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   282
            $g_data{0}->{inc_path} = $ENV{$inc};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   283
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   284
            $g_data{0}->{lib_name} = $lib;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   285
            $g_data{0}->{lib_path} = $ENV{$lib};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   286
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   287
            last;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   288
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   289
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   290
    # In case --vsn doesn't work, call --version_number and setup environment variables
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   291
    if ($vsnworked == 0)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   292
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   293
	    my @lines = qx/armcc --version_number 2>&1/;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   294
	    foreach (@lines) 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   295
	    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   296
		    if ($_ =~ /^(\d{1})(\d{1})\d{1}(\d{3})$/) 
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   297
		    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   298
			    my ($bin, $inc, $lib) = ("RVCT$1$2BIN", "RVCT$1$2INC", "RVCT$1$2LIB");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   299
			    $g_data{0}->{version} = "$1.$2.$3";
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   300
			    
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   301
			    $g_data{0}->{bin_name} = $bin;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   302
			    $g_data{0}->{bin_path} = $ENV{$bin};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   303
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   304
			    $g_data{0}->{inc_name} = $inc;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   305
		            $g_data{0}->{inc_path} = $ENV{$inc};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   306
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   307
		            $g_data{0}->{lib_name} = $lib;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   308
		            $g_data{0}->{lib_path} = $ENV{$lib};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   309
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   310
            		    last;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   311
	   		 }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   312
    	    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   313
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   314
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   315
    # restore RVCT22_CCOPT
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   316
    foreach $key (keys %RVCT_CCOPT) {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   317
        $ENV{$key} = $RVCT_CCOPT{$key};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   318
    }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   319
    # Initialise all platforms defined in the INI file, if that file exists.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   320
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   321
    my $fname = $ENV{ABLD_PLAT_INI};
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   322
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   323
    if ($fname) # The environment variable is set.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   324
    {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   325
        _err_and_die("ABLD_PLAT_INI doesn't point to a file.") unless -f $fname;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   326
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   327
        open (my $in,  "<",  $fname) or _err_and_die("couldn't open ABLD_PLAT_INI = $fname.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   328
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   329
        my @lines = ();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   330
        my $format1 = 0;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   331
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   332
        while (<$in>)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   333
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   334
            chomp;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   335
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   336
            next if /^\s*;/ ;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   337
            next if /^\s*#/ ;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   338
            next if /^\s*$/ ;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   339
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   340
            if ($_ =~ /^\s*\[/i)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   341
            {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   342
                # This must be the start of an INI section so We treat the file as
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   343
                # format 1.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   344
                $format1 = 1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   345
            }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   346
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   347
            push @lines, $_;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   348
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   349
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   350
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   351
        close $in or _err_and_die("couldn't close ABLD_PLAT_INI = $fname.");
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   352
        _err_and_die("$fname contains no data") unless @lines;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   353
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   354
        if ($format1)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   355
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   356
            my $os_ver = _get_os_version();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   357
            my @lines2 = ();
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   358
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   359
            while (@lines)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   360
            {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   361
                my $line = shift @lines;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   362
                
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   363
                if ( $line =~ /^\s*\[$os_ver\]/i)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   364
                {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   365
                    last;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   366
                }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   367
            }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   368
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   369
            while (@lines)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   370
            {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   371
                my $line = shift @lines;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   372
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   373
                if ( $line =~ /^\s*\[/i)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   374
                {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   375
                    last;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   376
                }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   377
            
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   378
                push @lines2, $line;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   379
            }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   380
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   381
            _parse_section_data($fname, @lines2);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   382
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   383
        else # Format 2.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   384
        {
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   385
            # The file is one big section without header.
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   386
            _parse_section_data($fname, @lines);
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   387
        }
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   388
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   389
    } # if ($fname)
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   390
}
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   391
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   392
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   393
1;
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   394
fa7a3cc6effd Add sbsv1 to new structure
jjkang
parents:
diff changeset
   395