Subversion Repositories DevTools

Rev

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

Rev 2635 Rev 2652
Line 287... Line 287...
287
foreach my $pkgid ( keys %PackageSet )
287
foreach my $pkgid ( keys %PackageSet )
288
{
288
{
289
    my $repo = mapPackage($pkgid);
289
    my $repo = mapPackage($pkgid);
290
    Error ("Unmapped package: $PackageData{$pkgid}{name}" ) unless ( $repo );
290
    Error ("Unmapped package: $PackageData{$pkgid}{name}" ) unless ( $repo );
291
 
291
 
292
    if ( exists $PackageData{$pkgid}{mappingPath} && $PackageData{$pkgid}{mappingPath} =~ m/LinuxDevices/ )
-
 
293
    {
-
 
294
        printf "%-35s %s\n",$PackageData{$pkgid}{name}, $PackageData{$pkgid}{mappingPath};
-
 
295
    }
-
 
296
 
-
 
297
 
-
 
298
    my $repo_lc = lc $repo;
292
    my $repo_lc = lc $repo;
299
 
293
 
300
    if (exists $Repos_lowercase{$repo_lc} && $Repos_lowercase{$repo_lc} ne $repo )
294
    if (exists $Repos_lowercase{$repo_lc} && $Repos_lowercase{$repo_lc} ne $repo )
301
    {
295
    {
302
        Error ("Package mapping: Mapped to Repo with same name, but different case",
296
        Error ("Package mapping: Mapped to Repo with same name, but different case",
Line 1571... Line 1565...
1571
        'mrviewer'                              => 'MASS_Dev_Infra/Reports',
1565
        'mrviewer'                              => 'MASS_Dev_Infra/Reports',
1572
        'cdss'                                  => 'MASS_Dev_Infra/Cdss',
1566
        'cdss'                                  => 'MASS_Dev_Infra/Cdss',
1573
        'InfraPSS'                              => 'MASS_Dev_Infra',
1567
        'InfraPSS'                              => 'MASS_Dev_Infra',
1574
 
1568
 
1575
 
1569
 
1576
        'arm-926ejs-linux-gnueabi'              => 'LinuxDevices/linux/compilers',
-
 
1577
        'linux_gnu_tools'                       => 'LinuxDevices/linux/compilers',
-
 
1578
        'vsdev-proftpd-insecure'                => 'SmartSite',
1570
        'vsdev-proftpd-insecure'                => 'SmartSite',
1579
        'obe'                                   => 'ITSO_TRACS/obe',
1571
        'obe'                                   => 'ITSO_TRACS/obe',
1580
        'obme'                                  => 'ITSO_TRACS/obe',
1572
        'obme'                                  => 'ITSO_TRACS/obe',
-
 
1573
        'linuxaudio'                            => 'LinuxDevices/libraries',
-
 
1574
 
-
 
1575
 
1581
        
1576
        #
-
 
1577
        #   Packages from the LMOS Vob
-
 
1578
        #   Too many rules - just hard code the lot of them
-
 
1579
        #
-
 
1580
        'rolff'                                 => 'DPG_SWBase/Dugite',
-
 
1581
        'ftplinux'                              => 'UNKNOWN',
-
 
1582
 
-
 
1583
        'linux-app-framework'              => 'DPG_SWBase/linux-app-framework',
-
 
1584
        'linux-app-upgrade'                => 'DPG_SWBase/linux-app-framework',
-
 
1585
 
-
 
1586
        'dropbear'                         => 'LinuxDevices/opensource',
-
 
1587
 
-
 
1588
 
-
 
1589
        'demo_cp6000'                      => 'LinuxDevices/apps',
-
 
1590
        'ivaldemo'                         => 'LinuxDevices/apps',
-
 
1591
        'linux-cotral-example'             => 'LinuxDevices/apps',
-
 
1592
        'lmos_utest'                       => 'LinuxDevices/apps',
-
 
1593
        'ublox-agps-example'               => 'LinuxDevices/apps',
-
 
1594
        'fdt-ads5121'                      => 'LinuxDevices/bootstrap',
-
 
1595
        'fdt-viper'                        => 'LinuxDevices/bootstrap',
-
 
1596
        'linux-grub'                       => 'LinuxDevices/bootstrap',
-
 
1597
        'romboot'                          => 'LinuxDevices/bootstrap',
-
 
1598
        'u-boot'                           => 'LinuxDevices/bootstrap',
-
 
1599
        'u-boot-cobra'                     => 'LinuxDevices/bootstrap',
-
 
1600
        'u-boot-hk'                        => 'LinuxDevices/bootstrap',
-
 
1601
        'u-boot_viper'                     => 'LinuxDevices/bootstrap',
-
 
1602
        'uboot-cobra-tools'                => 'LinuxDevices/bootstrap',
-
 
1603
        'uboot-viper-tools'                => 'LinuxDevices/bootstrap',
-
 
1604
        'viper-platform-setup'             => 'LinuxDevices/bootstrap',
-
 
1605
        'coalesce'                         => 'LinuxDevices/dams',
-
 
1606
        'dams_eb5600'                      => 'LinuxDevices/dams',
-
 
1607
        'dams_ival'                        => 'LinuxDevices/dams',
-
 
1608
        'dams_pcp5700'                     => 'LinuxDevices/dams',
-
 
1609
        'dams_tp5600'                      => 'LinuxDevices/dams',
-
 
1610
        'demo_msp_lnx_viper'               => 'LinuxDevices/devkit',
-
 
1611
        'devkit-tool'                      => 'LinuxDevices/devkit',
-
 
1612
        'idp_lnx_viper'                    => 'LinuxDevices/devkit',
-
 
1613
        'ival-devkit'                      => 'LinuxDevices/devkit',
-
 
1614
        'linux_infra_eb5600'               => 'LinuxDevices/devkit',
-
 
1615
        'linux_infra_tp5600'               => 'LinuxDevices/devkit',
-
 
1616
        'drivers_api_viper'                => 'LinuxDevices/drivers',
-
 
1617
        'gprsmodem-firmware'               => 'LinuxDevices/drivers',
-
 
1618
        'linux_driver_csc_cobra'           => 'LinuxDevices/drivers',
-
 
1619
        'linux_driver_csc_viper'           => 'LinuxDevices/drivers',
-
 
1620
        'linux_driver_ip_over_rs485'       => 'LinuxDevices/drivers',
-
 
1621
        'linux_drivers_api'                => 'LinuxDevices/drivers',
-
 
1622
        'linux_drivers_cobra'              => 'LinuxDevices/drivers',
-
 
1623
        'linux_drivers_eb5600'             => 'LinuxDevices/drivers',
-
 
1624
        'linux_drivers_etx86'              => 'LinuxDevices/drivers',
-
 
1625
        'linux_drivers_serpent-api'        => 'LinuxDevices/drivers',
-
 
1626
        'linux_drivers_tp5600'             => 'LinuxDevices/drivers',
-
 
1627
        'linux_drivers_viper'              => 'LinuxDevices/drivers',
-
 
1628
        'svgalib'                          => 'LinuxDevices/drivers',
-
 
1629
        'usb_gadget_host'                  => 'LinuxDevices/drivers',
-
 
1630
        'viper-pic-firmware'               => 'LinuxDevices/drivers',
-
 
1631
        'viper-tipsoc-firmware'            => 'LinuxDevices/drivers',
-
 
1632
        'viper_csc'                        => 'LinuxDevices/drivers',
-
 
1633
        'busybox'                          => 'LinuxDevices/filesystems',
-
 
1634
        'busybox_cobra'                    => 'LinuxDevices/filesystems',
-
 
1635
        'cobra_day0fs_base'                => 'LinuxDevices/filesystems',
-
 
1636
        'day0-cotral'                      => 'LinuxDevices/filesystems',
-
 
1637
        'day0-upgrade'                     => 'LinuxDevices/filesystems',
-
 
1638
        'e2fsimage'                        => 'LinuxDevices/filesystems',
-
 
1639
        'e2fsprogs'                        => 'LinuxDevices/filesystems',
-
 
1640
        'ERGDay0UpgradeServer'             => 'LinuxDevices/filesystems',
-
 
1641
        'linux_day0fs_base'                => 'LinuxDevices/filesystems',
-
 
1642
        'linux_day0fs_cobra'               => 'LinuxDevices/filesystems',
-
 
1643
        'linux_day0fs_cp6100_sl6087_fwup'  => 'LinuxDevices/filesystems',
-
 
1644
        'linux_day0fs_eb5600'              => 'LinuxDevices/filesystems',
-
 
1645
        'linux_day0fs_etx86'               => 'LinuxDevices/filesystems',
-
 
1646
        'linux_day0fs_tp5600'              => 'LinuxDevices/filesystems',
-
 
1647
        'linux_day0fs_viper'               => 'LinuxDevices/filesystems',
-
 
1648
        'linux_day0fs_viper_demo'          => 'LinuxDevices/filesystems',
-
 
1649
        'linux_day0fs_viper_dev'           => 'LinuxDevices/filesystems',
-
 
1650
        'ERGviper-kernel'                  => 'LinuxDevices/kernel',
-
 
1651
        'linux_kernel_bcp4600'             => 'LinuxDevices/kernel',
-
 
1652
        'linux_kernel_cobra'               => 'LinuxDevices/kernel',
-
 
1653
        'linux_kernel_eb5600'              => 'LinuxDevices/kernel',
-
 
1654
        'linux_kernel_etx86'               => 'LinuxDevices/kernel',
-
 
1655
        'linux_kernel_tp5600'              => 'LinuxDevices/kernel',
-
 
1656
        'linux_kernel_viper'               => 'LinuxDevices/kernel',
-
 
1657
        'libviper-mtp'                     => 'LinuxDevices/libraries',
-
 
1658
        'libviper-sam'                     => 'LinuxDevices/libraries',
-
 
1659
        'libviper-util'                    => 'LinuxDevices/libraries',
-
 
1660
        'linux-app-example'                => 'LinuxDevices/libraries',
-
 
1661
        'linux_types'                      => 'LinuxDevices/libraries',
-
 
1662
        'setMAC'                           => 'LinuxDevices/libraries',
-
 
1663
        'support_serpent'                  => 'LinuxDevices/libraries',
-
 
1664
        'support_serpent-api'              => 'LinuxDevices/libraries',
-
 
1665
        'support_serpent-so'               => 'LinuxDevices/libraries',
-
 
1666
        'viper-support'                    => 'LinuxDevices/libraries',
-
 
1667
        'viper_setmac'                     => 'LinuxDevices/libraries',
-
 
1668
        'libviper-mcr'                     => 'LinuxDevices/mcr',
-
 
1669
        'linux-mcrfirmware'                => 'LinuxDevices/mcr',
-
 
1670
        'mcr400-firmware'                  => 'LinuxDevices/mcr',
-
 
1671
        'mcr400_emulator'                  => 'LinuxDevices/mcr',
-
 
1672
        'mcrdemo'                          => 'LinuxDevices/mcr',
-
 
1673
        'alsa'                             => 'LinuxDevices/opensource',
-
 
1674
        'can-utils'                        => 'LinuxDevices/opensource',
-
 
1675
        'canbus-j1708-monitor'             => 'LinuxDevices/opensource',
-
 
1676
        'dfbtool'                          => 'LinuxDevices/opensource',
-
 
1677
        'directfb'                         => 'LinuxDevices/opensource',
-
 
1678
        'expat-linux'                      => 'LinuxDevices/opensource',
-
 
1679
        'freetype'                         => 'LinuxDevices/opensource',
-
 
1680
        'gpsd'                             => 'LinuxDevices/opensource',
-
 
1681
        'iniparser'                        => 'LinuxDevices/opensource',
-
 
1682
        'iptables'                         => 'LinuxDevices/opensource',
-
 
1683
        'irda-utils'                       => 'LinuxDevices/opensource',
-
 
1684
        'libftdi'                          => 'LinuxDevices/opensource',
-
 
1685
        'libid3tag'                        => 'LinuxDevices/opensource',
-
 
1686
        'libjpeg'                          => 'LinuxDevices/opensource',
-
 
1687
        'libmad'                           => 'LinuxDevices/opensource',
-
 
1688
        'libmodbus'                        => 'LinuxDevices/opensource',
-
 
1689
        'libmysql'                         => 'LinuxDevices/opensource',
-
 
1690
        'linux-glibc'                      => 'LinuxDevices/opensource',
-
 
1691
        'linux-glibc-dbg'                  => 'LinuxDevices/opensource',
-
 
1692
        'lrzsz'                            => 'LinuxDevices/opensource',
-
 
1693
        'madplay'                          => 'LinuxDevices/opensource',
-
 
1694
        'mkimage'                          => 'LinuxDevices/opensource',
-
 
1695
        'mtd-utils'                        => 'LinuxDevices/opensource',
-
 
1696
        'ncurses'                          => 'LinuxDevices/opensource',
-
 
1697
        'openntpd'                         => 'LinuxDevices/opensource',
-
 
1698
        'oprofile'                         => 'LinuxDevices/opensource',
-
 
1699
        'oprofile-dev'                     => 'LinuxDevices/opensource',
-
 
1700
        'pmctst'                           => 'LinuxDevices/opensource',
-
 
1701
        'popt'                             => 'LinuxDevices/opensource',
-
 
1702
        'ppp'                              => 'LinuxDevices/opensource',
-
 
1703
        'rsync'                            => 'LinuxDevices/opensource',
-
 
1704
        'smcroute'                         => 'LinuxDevices/opensource',
-
 
1705
        'sshpass'                          => 'LinuxDevices/opensource',
-
 
1706
        'strace'                           => 'LinuxDevices/opensource',
-
 
1707
        'tcpdump'                          => 'LinuxDevices/opensource',
-
 
1708
        'tslib'                            => 'LinuxDevices/opensource',
-
 
1709
        'AT91load'                         => 'LinuxDevices/programingUtils',
-
 
1710
        'CobraLoad'                        => 'LinuxDevices/programingUtils',
-
 
1711
        'ERGAT91load_bcp4600'              => 'LinuxDevices/programingUtils',
-
 
1712
        'ERGAT91load_eb5600'               => 'LinuxDevices/programingUtils',
-
 
1713
        'ERGAT91load_tp5600'               => 'LinuxDevices/programingUtils',
-
 
1714
        'flash_copier_eb5600'              => 'LinuxDevices/programingUtils',
-
 
1715
        'flash_copier_pcp5700'             => 'LinuxDevices/programingUtils',
-
 
1716
        'flash_copier_tp5600'              => 'LinuxDevices/programingUtils',
-
 
1717
        'SDCardCopy'                       => 'LinuxDevices/programingUtils',
-
 
1718
        'ViperLoad'                        => 'LinuxDevices/programingUtils',
-
 
1719
        'arm-926ejs-linux-gnueabi'         => 'LinuxDevices/toolchain',
-
 
1720
        'binutils'                         => 'LinuxDevices/toolchain',
-
 
1721
        'crosstool-ng'                     => 'LinuxDevices/toolchain',
-
 
1722
        'gdb'                              => 'LinuxDevices/toolchain',
-
 
1723
        'linux_gnu_tools'                  => 'LinuxDevices/toolchain',
-
 
1724
        'imageviewer'                      => 'LinuxDevices/utilities',
-
 
1725
        'imgput'                           => 'LinuxDevices/utilities',
-
 
1726
        'thrash'                           => 'LinuxDevices/utilities',
-
 
1727
        'webviewer'                        => 'LinuxDevices/utilities',
-
 
1728
        'haserl'                           => 'LinuxDevices/webserver',
-
 
1729
        'lua'                              => 'LinuxDevices/webserver',
-
 
1730
        'thttpd'                           => 'LinuxDevices/webserver',
-
 
1731
        'compat-wireless'                  => 'LinuxDevices/wireless',
-
 
1732
        'hostapd-experimental'             => 'LinuxDevices/wireless',
-
 
1733
        'rt2571'                           => 'LinuxDevices/wireless',
-
 
1734
        'rt2870-firmware'                  => 'LinuxDevices/wireless',
-
 
1735
        'rt3070'                           => 'LinuxDevices/wireless',
-
 
1736
        'wireless_tools'                   => 'LinuxDevices/wireless',
-
 
1737
        'wpa-supplicant'                   => 'LinuxDevices/wireless',
-
 
1738
        'zd1211-firmware'                  => 'LinuxDevices/wireless',
-
 
1739
 
-
 
1740
        # Plan to move these
-
 
1741
        'debian_dpkg'                      => 'LinuxDevices/opensource',
-
 
1742
        'openobex'                         => 'LinuxDevices/opensource',
-
 
1743
        'dtc'                              => 'LinuxDevices/opensource',
-
 
1744
        'watchdog'                         => 'LinuxDevices/opensource',
-
 
1745
        'zlib_linux'                       => 'LinuxDevices/opensource',
-
 
1746
        'sktcat'                           => 'LinuxDevices/opensource',
-
 
1747
        'mono'                             => 'LinuxDevices/opensource',
-
 
1748
        'libpng'                           => 'LinuxDevices/opensource',
-
 
1749
 
1582
    );
1750
    );
1583
 
1751
 
1584
    my %VobRename = (
1752
    my %VobRename = (
1585
        'LMOS'                      => 'LinuxDevices',
1753
        'LMOS'                      => 'LinuxDevices',
1586
        'MANUFACTURING'             => 'Manufacturing',
1754
        'MANUFACTURING'             => 'Manufacturing',
Line 1588... Line 1756...
1588
        'MASS_Dev'                  => 'MASS_Dev_Bus',
1756
        'MASS_Dev'                  => 'MASS_Dev_Bus',
1589
        's4k_tracs'                 => 'TRACS',
1757
        's4k_tracs'                 => 'TRACS',
1590
        'MASS_Dev_Tools'            => 'DevTools',
1758
        'MASS_Dev_Tools'            => 'DevTools',
1591
 
1759
 
1592
        'GMPTE2005'                 => 'ITSO_TRACS',
1760
        'GMPTE2005'                 => 'ITSO_TRACS',
1593
        'GMPTE2005_obe'             => 'ITSO_TRACS/obe',
1761
        'GMPTE2005_obe'             => 'ITSO_TRACS/obe/dummyDir',
1594
        'UK_ITSO_COMPLIANT'         => 'ITSO_TRACS',
1762
        'UK_ITSO_COMPLIANT'         => 'ITSO_TRACS',
1595
 
1763
 
1596
        'MASS_Dev_Infra/security'   => 'MASS_Dev_Infra/Security',
1764
        'MASS_Dev_Infra/security'   => 'MASS_Dev_Infra/Security',
1597
        'MASS_Dev_Infra/web'        => 'MASS_Dev_Infra/Web',
1765
        'MASS_Dev_Infra/web'        => 'MASS_Dev_Infra/Web',
1598
        'MASS_Dev_Infra/cdss'       => 'MASS_Dev_Infra/Cdss',
1766
        'MASS_Dev_Infra/cdss'       => 'MASS_Dev_Infra/Cdss',
1599
 
1767
 
1600
        'TRACS/faresets'            => 'ITSO_TRACS/faresets',
1768
        'TRACS/faresets'            => 'ITSO_TRACS/faresets',
1601
        'ProjectCD'                 => 'DPG_SWCode/ProjectCD',
1769
        'ProjectCD'                 => 'DPG_SWCode/ProjectCD',
1602
 
1770
 
1603
        'LinuxDevices/linux/tools'      => 'LinuxDevices/tools',
-
 
1604
        'LinuxDevices/apps/iVal-AFC'    => 'LinuxDevices/iVal-AFC'
-
 
1605
    );
1771
    );
1606
 
1772
 
1607
    my %PreferredPath = (
1773
    my %PreferredPath = (
1608
        'MASS_Dev_Bus/Reports'      => 1,
1774
        'MASS_Dev_Bus/Reports'      => 1,
1609
        'MASS_Dev_Bus/CBP'          => 1,
1775
        'MASS_Dev_Bus/CBP'          => 1,
Line 1625... Line 1791...
1625
        'TRACS'                     => 2,
1791
        'TRACS'                     => 2,
1626
        'VIX-PAYMENTS'              => 2,
1792
        'VIX-PAYMENTS'              => 2,
1627
        'WINCE500'                  => 2,
1793
        'WINCE500'                  => 2,
1628
        'DAMS_mos_diag'             => 2,
1794
        'DAMS_mos_diag'             => 2,
1629
        'MASS_Dev_Bus/Financial'    => 3,
1795
        'MASS_Dev_Bus/Financial'    => 3,
1630
        'LinuxDevices'              => 2,
-
 
1631
        'LinuxDevices/linux'        => 3,
-
 
1632
        'SmartSite'                 => 2,
1796
        'SmartSite'                 => 2,
1633
    );
1797
    );
1634
 
1798
 
1635
    return ('SVN') if ( $PackageData{$pkgid}{isSVN} );
1799
    return ('SVN') if ( $PackageData{$pkgid}{isSVN} );
1636
    my $name = $PackageData{$pkgid}{name};
1800
    my $name = $PackageData{$pkgid}{name};
Line 1705... Line 1869...
1705
    push @pathBase, $vob unless ( @pathBase );
1869
    push @pathBase, $vob unless ( @pathBase );
1706
 
1870
 
1707
#print "Full: @pathFull\n";
1871
#print "Full: @pathFull\n";
1708
#print "Base: @pathBase\n";
1872
#print "Base: @pathBase\n";
1709
 
1873
 
-
 
1874
    if ( $vob eq 'LinuxDevices' )
-
 
1875
    {
-
 
1876
        return 'UNKNOWN';
-
 
1877
    }
-
 
1878
 
-
 
1879
 
1710
    return 'MOS/images'  if (($vob eq 'COTS' || $vob eq 'MOS') &&  $name =~ m~^mos_~ && $name =~ m~\d\d\d\d~);
1880
    return 'MOS/images'  if (($vob eq 'COTS' || $vob eq 'MOS') &&  $name =~ m~^mos_~ && $name =~ m~\d\d\d\d~);
1711
 
1881
 
1712
    return 'COTS' if ( $vob =~ m~^COTS_~ );
1882
    return 'COTS' if ( $vob =~ m~^COTS_~ );
1713
    return 'COTS' if ( $vob eq 'COTS' );
1883
    return 'COTS' if ( $vob eq 'COTS' );
1714
 
1884
 
Line 1784... Line 1954...
1784
                return $ppath;
1954
                return $ppath;
1785
            }
1955
            }
1786
        }
1956
        }
1787
    }
1957
    }
1788
 
1958
 
1789
    if ( $vob eq 'LinuxDevices' )
-
 
1790
    {
-
 
1791
        @pathBase = @pathFull;
-
 
1792
    }
-
 
1793
 
-
 
1794
    #
1959
    #
1795
    #   Last resort
1960
    #   Last resort
1796
    #   Determine depth for this path
1961
    #   Determine depth for this path
1797
    #
1962
    #
1798
    my $depth = 1;
1963
    my $depth = 1;