[rtems-libbsd commit] scripts: Support CPU-dependent RTEMS source files
Sebastian Huber
sebh at rtems.org
Mon Oct 23 07:27:51 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 238e27575c4cd4ba37d6508e4d80b71450f21b70
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=238e27575c4cd4ba37d6508e4d80b71450f21b70
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Apr 6 15:09:42 2017 +0200
scripts: Support CPU-dependent RTEMS source files
---
builder.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/builder.py b/builder.py
index 457af69..c3010fa 100755
--- a/builder.py
+++ b/builder.py
@@ -558,6 +558,12 @@ class CPUDependentFreeBSDPathComposer(FreeBSDPathComposer):
path = mapCPUDependentPath(path)
return path
+class CPUDependentRTEMSPathComposer(RTEMSPathComposer):
+ def composeLibBSDPath(self, path, prefix):
+ path = super(CPUDependentRTEMSPathComposer, self).composeLibBSDPath(path, prefix)
+ path = mapCPUDependentPath(path)
+ return path
+
class CPUDependentLinuxPathComposer(LinuxPathComposer):
def composeLibBSDPath(self, path, prefix):
path = super(CPUDependentLinuxPathComposer, self).composeLibBSDPath(path, prefix)
@@ -735,6 +741,15 @@ class Module:
FromRTEMSToFreeBSDSourceConverter(), assertSourceFile,
sourceFileFragmentComposer)
+ def addCPUDependentRTEMSSourceFiles(self, cpus, files, sourceFileFragmentComposer):
+ for cpu in cpus:
+ self.initCPUDependencies(cpu)
+ self.cpuDependentSourceFiles[cpu] += \
+ self.addFiles(files,
+ CPUDependentRTEMSPathComposer(), NoConverter(),
+ NoConverter(), assertSourceFile,
+ sourceFileFragmentComposer)
+
def addCPUDependentLinuxSourceFiles(self, cpus, files, sourceFileFragmentComposer):
for cpu in cpus:
self.initCPUDependencies(cpu)
More information about the vc
mailing list