Changeset 238e275 in rtems-libbsd for builder.py


Ignore:
Timestamp:
Apr 6, 2017, 1:09:42 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, e6acc15bc94ea35f40e50b42692584c456ba9722
Children:
f7f3c4b
Parents:
23d6e50
git-author:
Sebastian Huber <sebastian.huber@…> (04/06/17 13:09:42)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/20/17 12:59:55)
Message:

scripts: Support CPU-dependent RTEMS source files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • builder.py

    r23d6e50 r238e275  
    559559        return path
    560560
     561class CPUDependentRTEMSPathComposer(RTEMSPathComposer):
     562    def composeLibBSDPath(self, path, prefix):
     563        path = super(CPUDependentRTEMSPathComposer, self).composeLibBSDPath(path, prefix)
     564        path = mapCPUDependentPath(path)
     565        return path
     566
    561567class CPUDependentLinuxPathComposer(LinuxPathComposer):
    562568    def composeLibBSDPath(self, path, prefix):
     
    736742                              sourceFileFragmentComposer)
    737743
     744    def addCPUDependentRTEMSSourceFiles(self, cpus, files, sourceFileFragmentComposer):
     745        for cpu in cpus:
     746            self.initCPUDependencies(cpu)
     747            self.cpuDependentSourceFiles[cpu] += \
     748                self.addFiles(files,
     749                              CPUDependentRTEMSPathComposer(), NoConverter(),
     750                              NoConverter(), assertSourceFile,
     751                              sourceFileFragmentComposer)
     752
    738753    def addCPUDependentLinuxSourceFiles(self, cpus, files, sourceFileFragmentComposer):
    739754        for cpu in cpus:
Note: See TracChangeset for help on using the changeset viewer.