Subversion Repositories DevTools

Rev

Rev 5709 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
# -*- mode: perl; indent-width: 4; -*-
2
###############################################################################
6177 dpurdie 3
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
227 dpurdie 4
# 
5
# File:         PLATFORM/MOSCF
6
#
7
# Contents:     Support for the MOS platform with a MCCCF(ColdFire) toolset
8
#
9
# Revision History:
10
#   13-Feb-04   DDP     Created
11
#
12
###############################################################################
13
#
14
 
15
MosInit();
16
 
17
###############################################################################
18
#
19
#   This function is named after the invoking platform and the file that
20
#   this function is in. The two are bound.
21
#
22
#   The purpose of the xxxInit() is to provide platform-specfic support
23
#   to JATS. The function must do:
24
#
25
#       1) Parse any platform specific arguments
26
#          Arguments are specified with a PlatformRequire() statement
27
#       2) Define the toolset in use
28
#       3) Add flags and definitions as required
29
#
30
#
31
#   Note: Platform arguments are passed through in the Platform()
32
#         statement within a makefile.pl
33
#
34
#
35
sub MosInit
36
{
37
    my( @args ) = @ScmPlatformArgs;             # Platform arguments
38
    my( $mri );
39
 
40
#.. Parse arguments
41
#   Nothing to be done here as the toolset will do it
42
#   Ignore unknown arguments
43
#
44
    Debug( "MosCF(@args)\n" );
45
 
46
    foreach $_ ( @args ) {
47
        if (/^--Mri=(.*)/) {                    # Mri specific compiler
48
            $mri = "$1";
49
        }
50
    }
51
 
52
#... Toolset
53
#   The PlatformArgs will also be processed by the toolset
54
#
55
    Toolset( '*', "mos_mri.pl", "--coldfire" );
56
 
57
 
58
#... Platform
59
#    
60
    PlatformDefines( "moscf.def" );
61
}
62