[rtems-libbsd commit] freebsd-to-rtems.py: Use all modules.

Christian Mauderer christianm at rtems.org
Tue Apr 10 07:07:50 UTC 2018


Module:    rtems-libbsd
Branch:    master
Commit:    fedd993da8aa33d5147b52252ae1b3375a92615d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=fedd993da8aa33d5147b52252ae1b3375a92615d

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Fri Apr  6 09:37:35 2018 +0200

freebsd-to-rtems.py: Use all modules.

Update #3351

---

 builder.py          | 8 ++++++--
 freebsd-to-rtems.py | 2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/builder.py b/builder.py
index e334f1a..8e5b229 100755
--- a/builder.py
+++ b/builder.py
@@ -801,8 +801,12 @@ class ModuleManager(object):
         self.configuration['modules'] = mods
         self.configuration['modules-enabled'] = [m for m in mods if self.modules[m].isEnabled()]
 
-    def generateBuild(self):
-        for m in self.getEnabledModules():
+    def generateBuild(self, only_enabled=True):
+        modules_to_process = self.getEnabledModules()
+        # Used for copy between FreeBSD and RTEMS
+        if only_enabled == False:
+            modules_to_process = self.getAllModules()
+        for m in modules_to_process:
             self.modules[m].generate()
 
     def setGenerators(self):
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index c2f00f8..3f06bdf 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -144,7 +144,7 @@ if isEarlyExit == True:
 try:
     build = builder.ModuleManager()
     libbsd.load(build)
-    build.generateBuild()
+    build.generateBuild(only_enabled=False)
     build.processSource(isForward)
     builder.changedFileSummary(statsReport)
 except IOError as ioe:




More information about the vc mailing list