Subversion Repositories DevTools

Rev

Rev 227 | Rev 261 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 227 Rev 239
Line 24... Line 24...
24
#   Toolset Global variables
24
#   Toolset Global variables
25
#
25
#
26
my $Toolset_DebugCode;
26
my $Toolset_DebugCode;
27
my $Toolset_DebugData;
27
my $Toolset_DebugData;
28
my $Toolset_Product = '';
28
my $Toolset_Product = '';
-
 
29
my $Toolset_Production_Only;
29
 
30
 
30
 
31
 
31
##############################################################################
32
##############################################################################
32
#   ToolsetInit()
33
#   ToolsetInit()
33
#       Runtime initialisation
34
#       Runtime initialisation
Line 74... Line 75...
74
            Message( "mos_mri: unknown platform argument $_ -- ignored" );
75
            Message( "mos_mri: unknown platform argument $_ -- ignored" );
75
        }
76
        }
76
    }
77
    }
77
 
78
 
78
#
79
#
-
 
80
#   Is this a ProductionOnly build, then we don't need the debug code and data
-
 
81
#   when building a THX. Determine, if this is a ProductionOnly build.
-
 
82
#
-
 
83
foreach  ( @{$::BUILDINFO{$::ScmPlatform}{ARGS}} )
-
 
84
{
-
 
85
    if ( m~^--OnlyProd~ )
-
 
86
    {
-
 
87
        $Toolset_Production_Only = 1;
-
 
88
        last;
-
 
89
    }
-
 
90
}
-
 
91
 
-
 
92
#
79
#   Definitions common to all platforms
93
#   Definitions common to all platforms
80
#   These will be picked up when no platform has been defined: ie when
94
#   These will be picked up when no platform has been defined: ie when
81
#   simply building for MOS68K or MOSCF
95
#   simply building for MOS68K or MOSCF
82
#
96
#
83
#   Note: _MICROTEC     is predefined by the compiler
97
#   Note: _MICROTEC     is predefined by the compiler
Line 592... Line 606...
592
            Message( "Prog: unknown option $_ -- ignored" );
606
            Message( "Prog: unknown option $_ -- ignored" );
593
        }
607
        }
594
    }
608
    }
595
 
609
 
596
#
610
#
597
#   Cannot create binaries unless we knwo where to place them
611
#   Cannot create binaries unless we know where to place them
598
#   This error could be detected earlier, but by detecting it only when
612
#   This error could be detected earlier, but by detecting it only when
599
#   we need the values so that we can add new product groups without
613
#   we need the values so that we can add new product groups without
600
#   knowning all the details.
614
#   knowning all the details.
601
#
615
#
-
 
616
unless ( $Toolset_Production_Only )
-
 
617
{
602
Error( "mos_mri: $Toolset_Product: Debug Code and Data not specified" )
618
    Error( "mos_mri: $Toolset_Product: Debug Code and Data not specified" )
603
    if ( ! $debug_data || ! $debug_code );
619
        if ( ! $debug_data || ! $debug_code );
604
    
620
    
-
 
621
}
605
    
622
    
606
#
623
#
607
#   Sanity check
624
#   Sanity check
608
#       - Ensure the use has provided a REL file
625
#       - Ensure the use has provided a REL file
609
#
626
#