Subversion Repositories DevTools

Rev

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

Rev 7308 Rev 7309
Line 37... Line 37...
37
{
37
{
38
    my $class = shift;              # Not really a class, but its called like a class
38
    my $class = shift;              # Not really a class, but its called like a class
39
    my $pInfo  = shift;
39
    my $pInfo  = shift;
40
 
40
 
41
    #
41
    #
42
    #   Get the list of targets that have been tagged as LMOS and DEVLINUX
42
    #   Get the list of targets that have been tagged as LMOS_DEVLINUX
43
    #
43
    #
44
    my @targets;   
-
 
45
    my @lmosTargets = PlatformConfig::getTargetsByTag('LMOS');
-
 
46
    my @devLinuxTargets = PlatformConfig::getTargetsByTag('DEVLINUX');
44
    my @targets = PlatformConfig::getTargetsByTag('LMOS_DEVLINUX');
47
 
-
 
48
    my %lmosTargetsMap = map {$_ => 1} @lmosTargets;
-
 
49
    foreach ( @devLinuxTargets )
-
 
50
    {
-
 
51
        if (exists $lmosTargetsMap{$_} )
-
 
52
        {
-
 
53
            push @targets, $_;
-
 
54
        }
-
 
55
    }
-
 
56
    
45
    
57
    #
46
    #
58
    #   Ignore this platform if there is no way that it can be built on the
47
    #   Ignore this platform if there is no way that it can be built on the
59
    #   current machine.
48
    #   current machine.
60
    #
49
    #
Line 68... Line 57...
68
    #
57
    #
69
    #   Instantiate all targets
58
    #   Instantiate all targets
70
    #
59
    #
71
    foreach my $target ( @targets )
60
    foreach my $target ( @targets )
72
    {
61
    {
73
        LMOS_DEVLINUX_generic(  dclone($pInfo), 'LMOS_' . $target );
62
        LMOS_DEVLINUX_generic(  dclone($pInfo), $target );
74
    }
63
    }
75
 
64
 
76
    #
65
    #
77
    #   All done
66
    #   All done
78
    #   Mark the original entry as a TEMPLATE so that it won't be added
67
    #   Mark the original entry as a TEMPLATE so that it won't be added