[PATCH] bootstrap: Do not create acinlude.m4 files

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Apr 23 05:45:16 UTC 2018


The generation of files which are part of the Git repository should be
done by the normal bootstrap script only since this is a RTEMS
maintainer job.

This patch is a part of the BSP source reorganization.

Update #3285.
---
 source-builder/sb/bootstrap.py | 32 --------------------------------
 1 file changed, 32 deletions(-)

diff --git a/source-builder/sb/bootstrap.py b/source-builder/sb/bootstrap.py
index d78cfdc..e56612b 100644
--- a/source-builder/sb/bootstrap.py
+++ b/source-builder/sb/bootstrap.py
@@ -34,14 +34,6 @@ import options
 import path
 import version
 
-def _collect_dirs(path_, dir):
-    confs = []
-    for root, dirs, files in os.walk(path.host(path_), topdown = True):
-        for f in dirs:
-            if f == dir:
-                confs += [path.shell(path.join(root, f))]
-    return confs
-
 def _collect(path_, file):
     confs = []
     for root, dirs, files in os.walk(path.host(path_), topdown = True):
@@ -132,33 +124,9 @@ class autoreconf:
         self.topdir = topdir
         self.configure = configure
         self.cwd = path.dirname(self.configure)
-        self.bspopts()
         self.command = command(['autoreconf', '-i', '--no-recursive'], self.cwd)
         self.command.run()
 
-    def bspopts(self):
-        if _grep(self.configure, 'RTEMS_CHECK_BSPDIR'):
-            bsps = _collect_dirs(self.cwd, 'custom')
-            try:
-                acinclude = path.join(self.cwd, 'acinclude.m4')
-                b = open(path.host(acinclude), 'w')
-                b.write('# RTEMS_CHECK_BSPDIR(RTEMS_BSP_FAMILY)' + os.linesep)
-                b.write('AC_DEFUN([RTEMS_CHECK_BSPDIR],' + os.linesep)
-                b.write('[' + os.linesep)
-                b.write('  case "$1" in' + os.linesep)
-                for bs in sorted(bsps):
-                    dir = path.dirname(bs)[len(self.cwd) + 1:]
-                    dir = path.dirname(dir)
-                    b.write('  %s )%s' % (dir, os.linesep))
-                    b.write('    AC_CONFIG_SUBDIRS([%s]);;%s' % (dir, os.linesep))
-                b.write('  *)' + os.linesep)
-                b.write('    AC_MSG_ERROR([Invalid BSP]);;' + os.linesep)
-                b.write('  esac' + os.linesep)
-                b.write('])' + os.linesep)
-                b.close()
-            except IOError as err:
-                raise error.general('writing: %s' % (acinclude))
-
     def is_alive(self):
         return self.command.is_alive()
 
-- 
2.12.3



More information about the devel mailing list