Subversion Repositories DevTools

Rev

Rev 255 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
###############################################################################
2
# Copyright (c) ERG Transit Systems. 1996-2006
3
#
4
# File:         PLATFORM/LMOS_ARM9TDMI.cfg
5
#
6
# Contents:     SOLARIS Build support
7
#
8
#               This package is used during the processing of the build.pl file
9
#               Values provided by this package are used to extend the Platform
10
#               information as platforms are being created. This provides a
11
#               powerful set of mechanism to extend the entire JATS toolset
12
#
13
#
14
# Version   Who      Date       Description
15
#           DDP      01-Aug-06  Created
16
###############################################################################
17
 
18
require 5.6.1;
19
use strict;
20
use warnings;
21
 
22
package LMOS_ARM9TDMI_Build;
23
 
24
#-------------------------------------------------------------------------------
25
# Function        : add_platform
26
#
27
# Description     : This function is invoked just before a 'platform' is about
28
#                   to be added to the build system.
29
#
30
#                   This call is allowed to alter or extend the platform build
31
#                   information.
32
#
33
# Inputs          : $pInfo          - Reference to the platform build info hash
34
#
35
# Returns         : Nothing yet
36
#
37
sub add_platform
38
{
39
    my $class = shift;              # Not really a class, but its called like a class
40
    my $pInfo  = shift;
41
    #
42
    #   Insert data into the class
43
    #
44
    #   ALSO_USES
45
    #   An array of other platforms that may be 'used' by this platform.
46
    #   The process is not recursive
47
    #   Similar to the --Uses option in BuildPlatforms()
48
    #   Will be subject to product expansion.
49
    #
50
    #   Intended use: VS2003 can use stuff from WIN32, but only if the
51
    #                 VS2003 stuff is not available.
52
    $pInfo->{ALSO_USES} = ['ARM9TDMI' ];
53
 
54
    #
55
    #   EXTRA_USES
56
    #   An array of other platforms to be 'used' by this platform.
57
    #   This list is not expanded in a PRODUCT as the USERS list is.
58
    #
59
    #   Intended use: Extend the SOLARIS on a sparc platform to allow for bad usage.
60
    #                 ie: Stuff is in SOLARIS, SOLARIS_sparc and sparc
61
    #
62
    $pInfo->{EXTRA_USES} = ['ARM9TDMI', 'LMOS', 'LINUX' ];
63
 
64
    #
65
    #   EXT_SHARED
66
    #   Set to the value of the shared library extension
67
    #
68
    #   Intended Use
69
    #   Used to locate shared libraries in packgages for use in the
70
    #   generation set_<PLATFORM>.sh/.bat
71
    #
72
    #   If not set then the set_.sh files will no be created
73
    #
74
    $pInfo->{EXT_SHARED} = '.so';
75
 
76
    #
77
    #   OS_COMMON
78
    #   Set the name of a directory to be used to package header files to be
79
    #   used on targets that share a common OS
80
    #
81
    #   Note: Should also be a part of EXTRA_USES
82
    #
83
    #   Intended Use
84
    #   Extend the operation of the PackageHdr directive to allow files
85
    #   common files to be packaged
86
    #
87
    $pInfo->{OS_COMMON} = 'LMOS';
88
 
89
}
90
 
91
1;
92