summaryrefslogtreecommitdiffstats
path: root/source-builder
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-23 07:42:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-23 13:36:33 +0200
commit1645debc4fa7ad2f4739cf709dc1378dd5b317d1 (patch)
treea537feb322d748f1108c4a1591329c342e2867c2 /source-builder
parent5: Use a specific RTEMS tools version (diff)
downloadrtems-source-builder-1645debc4fa7ad2f4739cf709dc1378dd5b317d1.tar.bz2
bootstrap: Do not generate acinlude.m4 files
Do not generate files which are part of the Git repository. These files should be maintained manually in the future. This patch is a part of the BSP source reorganization. Update #3285.
Diffstat (limited to 'source-builder')
-rw-r--r--source-builder/sb/bootstrap.py32
1 files changed, 0 insertions, 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()