Changeset 1645deb in rtems-source-builder


Ignore:
Timestamp:
Apr 23, 2018, 5:42:47 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
10d3aaf
Parents:
50593d4
git-author:
Sebastian Huber <sebastian.huber@…> (04/23/18 05:42:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/23/18 11:36:33)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/bootstrap.py

    r50593d4 r1645deb  
    3434import path
    3535import version
    36 
    37 def _collect_dirs(path_, dir):
    38     confs = []
    39     for root, dirs, files in os.walk(path.host(path_), topdown = True):
    40         for f in dirs:
    41             if f == dir:
    42                 confs += [path.shell(path.join(root, f))]
    43     return confs
    4436
    4537def _collect(path_, file):
     
    133125        self.configure = configure
    134126        self.cwd = path.dirname(self.configure)
    135         self.bspopts()
    136127        self.command = command(['autoreconf', '-i', '--no-recursive'], self.cwd)
    137128        self.command.run()
    138 
    139     def bspopts(self):
    140         if _grep(self.configure, 'RTEMS_CHECK_BSPDIR'):
    141             bsps = _collect_dirs(self.cwd, 'custom')
    142             try:
    143                 acinclude = path.join(self.cwd, 'acinclude.m4')
    144                 b = open(path.host(acinclude), 'w')
    145                 b.write('# RTEMS_CHECK_BSPDIR(RTEMS_BSP_FAMILY)' + os.linesep)
    146                 b.write('AC_DEFUN([RTEMS_CHECK_BSPDIR],' + os.linesep)
    147                 b.write('[' + os.linesep)
    148                 b.write('  case "$1" in' + os.linesep)
    149                 for bs in sorted(bsps):
    150                     dir = path.dirname(bs)[len(self.cwd) + 1:]
    151                     dir = path.dirname(dir)
    152                     b.write('  %s )%s' % (dir, os.linesep))
    153                     b.write('    AC_CONFIG_SUBDIRS([%s]);;%s' % (dir, os.linesep))
    154                 b.write('  *)' + os.linesep)
    155                 b.write('    AC_MSG_ERROR([Invalid BSP]);;' + os.linesep)
    156                 b.write('  esac' + os.linesep)
    157                 b.write('])' + os.linesep)
    158                 b.close()
    159             except IOError as err:
    160                 raise error.general('writing: %s' % (acinclude))
    161129
    162130    def is_alive(self):
Note: See TracChangeset for help on using the changeset viewer.