Changeset 40f7d5c in rtems-libbsd


Ignore:
Timestamp:
Sep 25, 2015, 12:14:04 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 7d194e5f55b4aad6abbd096c30d2dd22531c73cf, freebsd-9.3, 6da0dda3255e2a49365aee6904fe00d4f2ca9d68
Children:
af3944c
Parents:
df811cf
Message:

builder.py: addTargetSourceCPUDependentSourceFiles

Avoid and delete this function.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • builder.py

    rdf811cf r40f7d5c  
    451451                                    assertSourceFile, sourceFileFragmentComposer)
    452452
    453     def addCPUDependentSourceFiles(self, cpu, files, sourceFileFragmentComposer):
    454         self.initCPUDependencies(cpu)
    455         self.cpuDependentSourceFiles[cpu] += \
    456             self.addFiles(files,
    457                           CPUDependentPathComposer(), FromFreeBSDToRTEMSSourceConverter(),
    458                           FromRTEMSToFreeBSDSourceConverter(), assertSourceFile,
    459                           sourceFileFragmentComposer)
    460 
    461     def addTargetSourceCPUDependentSourceFiles(self, targetCPUs, sourceCPU, files,
    462                                                sourceFileFragmentComposer):
    463         for cpu in targetCPUs:
     453    def addCPUDependentSourceFiles(self, cpus, files, sourceFileFragmentComposer):
     454        for cpu in cpus:
    464455            self.initCPUDependencies(cpu)
    465456            self.cpuDependentSourceFiles[cpu] += \
    466457                self.addFiles(files,
    467                               TargetSourceCPUDependentPathComposer(cpu, sourceCPU),
    468                               FromFreeBSDToRTEMSSourceConverter(), NoConverter(),
    469                               assertSourceFile, sourceFileFragmentComposer)
     458                              CPUDependentPathComposer(), FromFreeBSDToRTEMSSourceConverter(),
     459                              FromRTEMSToFreeBSDSourceConverter(), assertSourceFile,
     460                              sourceFileFragmentComposer)
    470461
    471462    def addTest(self, testFragementComposer):
  • libbsd.py

    rdf811cf r40f7d5c  
    17441744    )
    17451745    mod.addCPUDependentSourceFiles(
    1746         'i386',
     1746        [ 'i386' ],
    17471747        [
    17481748            'sys/i386/i386/legacy.c',
     
    23682368        ]
    23692369    )
    2370     mod.addTargetSourceCPUDependentSourceFiles(
    2371         [ 'arm', 'avr', 'bfin', 'h8300', 'lm32', 'm32c', 'm32r', 'm68k',
    2372           'nios2', 'sh', 'sparc', 'v850' ],
    2373         'mips',
    2374         [
    2375             'sys/mips/mips/in_cksum.c',
    2376         ],
    2377         mm.generator['source']()
    2378     )
    23792370    mod.addCPUDependentSourceFiles(
    2380         'i386',
     2371        [ 'i386' ],
    23812372        [
    23822373            'sys/i386/i386/in_cksum.c',
     
    23852376    )
    23862377    mod.addCPUDependentSourceFiles(
    2387         'mips',
    2388         [
    2389             'sys/mips/mips/in_cksum.c',
     2378        [ 'powerpc' ],
     2379        [
     2380            'sys/powerpc/powerpc/in_cksum.c',
    23902381        ],
    23912382        mm.generator['source']()
    23922383    )
    23932384    mod.addCPUDependentSourceFiles(
    2394         'powerpc',
    2395         [
    2396             'sys/powerpc/powerpc/in_cksum.c',
    2397         ],
    2398         mm.generator['source']()
    2399     )
    2400     mod.addCPUDependentSourceFiles(
    2401         'sparc',
    2402         [
    2403             'sys/mips/mips/in_cksum.c',
    2404         ],
    2405         mm.generator['source']()
    2406     )
    2407     mod.addCPUDependentSourceFiles(
    2408         'sparc64',
     2385        [ 'sparc64' ],
    24092386        [
    24102387            'sys/sparc64/sparc64/in_cksum.c',
    24112388        ],
     2389        mm.generator['source']()
     2390    )
     2391    mod.addCPUDependentSourceFiles(
     2392        [
     2393            'arm', 'avr', 'bfin', 'h8300', 'lm32', 'm32c', 'm32r', 'm68k',
     2394            'mips', 'nios2', 'sh', 'sparc', 'v850'
     2395        ],
     2396        [
     2397            'sys/mips/mips/in_cksum.c',
     2398        ],
    24122399        mm.generator['source']()
    24132400    )
  • wscript

    rdf811cf r40f7d5c  
    10541054              'rtemsbsd/telnetd/telnetd.c']
    10551055    if bld.get_env()["RTEMS_ARCH"] == "arm":
    1056         source += ['freebsd/sys/arm/arm/in_cksum.c']
     1056        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10571057    if bld.get_env()["RTEMS_ARCH"] == "avr":
    1058         source += ['freebsd/sys/avr/avr/in_cksum.c']
     1058        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10591059    if bld.get_env()["RTEMS_ARCH"] == "bfin":
    1060         source += ['freebsd/sys/bfin/bfin/in_cksum.c']
     1060        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10611061    if bld.get_env()["RTEMS_ARCH"] == "cflags":
    10621062        source += ['default']
    10631063    if bld.get_env()["RTEMS_ARCH"] == "h8300":
    1064         source += ['freebsd/sys/h8300/h8300/in_cksum.c']
     1064        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10651065    if bld.get_env()["RTEMS_ARCH"] == "i386":
    10661066        source += ['freebsd/sys/i386/i386/in_cksum.c',
     
    10681068                   'freebsd/sys/x86/pci/pci_bus.c']
    10691069    if bld.get_env()["RTEMS_ARCH"] == "lm32":
    1070         source += ['freebsd/sys/lm32/lm32/in_cksum.c']
     1070        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10711071    if bld.get_env()["RTEMS_ARCH"] == "m32c":
    1072         source += ['freebsd/sys/m32c/m32c/in_cksum.c']
     1072        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10731073    if bld.get_env()["RTEMS_ARCH"] == "m32r":
    1074         source += ['freebsd/sys/m32r/m32r/in_cksum.c']
     1074        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10751075    if bld.get_env()["RTEMS_ARCH"] == "m68k":
    1076         source += ['freebsd/sys/m68k/m68k/in_cksum.c']
     1076        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10771077    if bld.get_env()["RTEMS_ARCH"] == "mips":
    10781078        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10791079    if bld.get_env()["RTEMS_ARCH"] == "nios2":
    1080         source += ['freebsd/sys/nios2/nios2/in_cksum.c']
     1080        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10811081    if bld.get_env()["RTEMS_ARCH"] == "powerpc":
    10821082        source += ['freebsd/sys/powerpc/powerpc/in_cksum.c']
    10831083    if bld.get_env()["RTEMS_ARCH"] == "sh":
    1084         source += ['freebsd/sys/sh/sh/in_cksum.c']
     1084        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10851085    if bld.get_env()["RTEMS_ARCH"] == "sparc":
    1086         source += ['freebsd/sys/mips/mips/in_cksum.c',
    1087                    'freebsd/sys/sparc/sparc/in_cksum.c']
     1086        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10881087    if bld.get_env()["RTEMS_ARCH"] == "sparc64":
    10891088        source += ['freebsd/sys/sparc64/sparc64/in_cksum.c']
    10901089    if bld.get_env()["RTEMS_ARCH"] == "v850":
    1091         source += ['freebsd/sys/v850/v850/in_cksum.c']
     1090        source += ['freebsd/sys/mips/mips/in_cksum.c']
    10921091    bld.stlib(target = "bsd",
    10931092              features = "c cxx",
Note: See TracChangeset for help on using the changeset viewer.