[PATCH rtems-libbsd 2/3] builder.py: Add case for plain text files.

Christian Mauderer christian.mauderer at embedded-brains.de
Thu Sep 17 09:33:23 UTC 2020


Update #4082
---
 builder.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/builder.py b/builder.py
index f5fe2afc..0eda461f 100755
--- a/builder.py
+++ b/builder.py
@@ -202,6 +202,9 @@ def revertFixLocalIncludes(data):
     data = re.sub('#include <rtems/bsd/local/([^>]*)>', '#include "\\1"', data)
     return data
 
+def assertNothing(path):
+    pass
+
 def assertHeaderFile(path):
     if path[-2] != '.' or path[-1] != 'h':
         print("*** " + path + " does not end in .h")
@@ -690,6 +693,11 @@ class Module(object):
                            reverseConverter, buildSystemComposer)]
         return files
 
+    def addPlainTextFile(self, files):
+        self.files += self.addFiles(files,
+                                    FreeBSDPathComposer(), Converter(),
+                                    Converter(), assertNothing)
+
     def addKernelSpaceHeaderFiles(self, files):
         self.files += self.addFiles(files,
                                     FreeBSDPathComposer(), FromFreeBSDToRTEMSHeaderConverter(),
-- 
2.26.2



More information about the devel mailing list