Subversion Repositories DevTools

Rev

Rev 313 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 313 Rev 317
Line 81... Line 81...
81
    #   Determine the type of system we are dealing with the GBE_MACHTYPE
81
    #   Determine the type of system we are dealing with the GBE_MACHTYPE
82
    #   is the only real way of doing this
82
    #   is the only real way of doing this
83
    #
83
    #
84
    if ( $::GBE_MACHTYPE eq 'sparc' )
84
    if ( $::GBE_MACHTYPE eq 'sparc' )
85
    {
85
    {
86
 
-
 
87
        #
-
 
88
        #   Provide an alais for the name that we would really like to call
-
 
89
        #   this platform.
-
 
90
        #
86
        #
91
        $pInfo->{ALIAS} = 'SOLARIS8_SPARC32';
-
 
92
 
-
 
93
        #
87
        #   Legacy target.
94
        #   Legacy target. Really solaris8_sparc32, but it has been configured
88
        #   Really SOLARIS8_SPARC32, but it has been configured
95
        #   as SOLARIS. This, unfortunately, must continue.
89
        #   as SOLARIS. This, unfortunately, must continue.
96
        #
90
        #
97
        $pInfo->{TARGET} = 'SOLARIS';
91
        $pInfo->{TARGET} = 'SOLARIS';
98
 
92
 
99
        #
93
        #
100
        #   Specify the hardware family
94
        #   Specify the Platform config file that should be used for the
101
        #   Will be used to create an ALIAS
95
        #   remainder of the configuration information.
102
        #
96
        #
103
        $pInfo->{HARDWARE} = 'SPARC';
97
        $pInfo->{TARGET_CFG} = 'SOLARIS8_SPARC32';
104
        return;
98
        return;
105
    }
99
    }
106
 
100
 
107
    #
101
    #
108
    #   Not building for the legacy :)
102
    #   Not building for the legacy :)
Line 165... Line 159...
165
    #
159
    #
166
    #   Register this 'new' buildinfo entry with the build system
160
    #   Register this 'new' buildinfo entry with the build system
167
    #
161
    #
168
    ::AddBuildPlatformEntry( $pInfo );
162
    ::AddBuildPlatformEntry( $pInfo );
169
}
163
}
170
 
-
 
171
 
-
 
172
#-------------------------------------------------------------------------------
-
 
173
# Function        : add_platform
-
 
174
#
-
 
175
# Description     : This function is invoked just before a 'platform' is about
-
 
176
#                   to be added to the build system.
-
 
177
#
-
 
178
#                   This call is allowed to alter or extend the platform build
-
 
179
#                   information.
-
 
180
#
-
 
181
#                   This particular function, in the SOLARIS.CFG file, is called
-
 
182
#                   when the target platform 'SOLARIS'. The SOLARIS target is
-
 
183
#                   a complex as it serves two purposes.
-
 
184
#
-
 
185
#                   1 )SOLARIS is a dynamic platform. It will be chnaged
-
 
186
#                      into a machine specific platform.
-
 
187
#
-
 
188
#                   2) One of the 'dynamic' platforms is itself SOLARIS
-
 
189
#                      This name exists for compatability purposes as it is
-
 
190
#                      really a SOLARIS8_sparc32, but the name and a stack
-
 
191
#                      of kludges must be retained.
-
 
192
#
-
 
193
# Inputs          : $pInfo          - Reference to the platform build info hash
-
 
194
#
-
 
195
# Returns         : Nothing yet
-
 
196
#
-
 
197
sub add_platform
-
 
198
{
-
 
199
    my $class = shift;              # Not really a class, but its called like a class
-
 
200
    my $pInfo  = shift;
-
 
201
 
-
 
202
    #
-
 
203
    #   Insert data into the class
-
 
204
    #
-
 
205
    #   ALSO_USES
-
 
206
    #   An array of other platforms that may be 'used' by this platform.
-
 
207
    #   The process is not recursive
-
 
208
    #   Similar to the --Uses option in BuildPlatforms()
-
 
209
    #   Will be subject to product expansion.
-
 
210
    #
-
 
211
    #   Intended use: VS2003 can use stuff from WIN32, but only if the
-
 
212
    #                 VS2003 stuff is not available.
-
 
213
#    $pInfo->{ALSO_USES} = [];
-
 
214
 
-
 
215
    #
-
 
216
    #   EXTRA_USES
-
 
217
    #   An array of other platforms to be 'used' by this platform.
-
 
218
    #   This list is not expanded in a PRODUCT as the USERS list is.
-
 
219
    #
-
 
220
    #   Intended use: Extend the SOLARIS on a sparc platform to allow for bad usage.
-
 
221
    #                 ie: Stuff is in SOLARIS, SOLARIS_sparc and sparc
-
 
222
    #
-
 
223
    $pInfo->{EXTRA_USES} = ['SOLARIS', 'SOLARIS_sparc', 'sparc'];
-
 
224
 
-
 
225
    #
-
 
226
    #   SCMMACHTYPE
-
 
227
    #   Override for ScmMachType which appears in makefiles as GBE_MACHTYPE
-
 
228
    #   Default value is $ScmPlatform
-
 
229
    #
-
 
230
    #   Intended use: Legacy Support only
-
 
231
    #   Many legacy package.pl files use GBE_MACHTYPE to specify bin and lib
-
 
232
    #   subdirectores.
-
 
233
    #       The legacy SOLARIS on sparc sets this to 'sparc'
-
 
234
    #       For some reason WIN32 sets this to 'win32'
-
 
235
    #
-
 
236
    $pInfo->{SCMMACHTYPE} = 'sparc';
-
 
237
 
-
 
238
    #
-
 
239
    #   EXT_SHARED
-
 
240
    #   Set to the value of the shared library extension
-
 
241
    #
-
 
242
    #   Intended Use
-
 
243
    #   Used to locate shared libraries in packgages for use in the
-
 
244
    #   generation set_<PLATFORM>.sh/.bat
-
 
245
    #
-
 
246
    #   If not set then the set_.sh files will no be created
-
 
247
    #
-
 
248
    $pInfo->{EXT_SHARED} = '.so';
-
 
249
 
-
 
250
    #
-
 
251
    #   OS_COMMON
-
 
252
    #   Set the name of a directory to be used to package header files to be
-
 
253
    #   used on targets that share a common OS
-
 
254
    #
-
 
255
    #   Note: Should also be a part of EXTRA_USES
-
 
256
    #
-
 
257
    #   Intended Use
-
 
258
    #   Extend the operation of the PackageHdr directive to allow files
-
 
259
    #   common files to be packaged
-
 
260
    #
-
 
261
    $pInfo->{OS_COMMON} = 'SOLARIS';
-
 
262
}
-
 
263
    
-
 
264
1;
164
1;
265
 
165