Ejemplo n.º 1
0
 def help(self):
     print('%s: [options] [args]' % (self.command_name))
     print('RTEMS Tools Project (c) 2012-2015 Chris Johns')
     print('Options and arguments:')
     opts = list(self.long_opts_help.keys())
     if self.optargs:
         opts += self.optargs.keys()
     indent = self._help_indent()
     for o in sorted(opts):
         if o in self.long_opts_help:
             h = self.long_opts_help[o]
         elif self.optargs:
             h = self.optargs[o]
         else:
             raise error.general('invalid help data: %s' %(o))
         print('%-*s : %s' % (indent, o, h))
     raise error.exit()
Ejemplo n.º 2
0
 def help(self):
     print('%s: [options] [args]' % (self.command_name))
     print('RTEMS Tools Project (c) 2012-2015 Chris Johns')
     print('Options and arguments:')
     opts = list(self.long_opts_help.keys())
     if self.optargs:
         opts += self.optargs.keys()
     indent = self._help_indent()
     for o in sorted(opts):
         if o in self.long_opts_help:
             h = self.long_opts_help[o]
         elif self.optargs:
             h = self.optargs[o]
         else:
             raise error.general('invalid help data: %s' % (o))
         print('%-*s : %s' % (indent, o, h))
     raise error.exit()
Ejemplo n.º 3
0
 def help(self):
     print('%s: [options] [args]' % (self.command_name))
     print('RTEMS Source Builder, an RTEMS Tools Project (c) 2012-2015 Chris Johns')
     print('Options and arguments:')
     print('--force                : Force the build to proceed')
     print('--quiet                : Quiet output (not used)')
     print('--trace                : Trace the execution')
     print('--dry-run              : Do everything but actually run the build')
     print('--warn-all             : Generate warnings')
     print('--no-clean             : Do not clean up the build tree')
     print('--always-clean         : Always clean the build tree, even with an error')
     print('--keep-going           : Do not stop on an error.')
     print('--regression           : Set --no-install, --keep-going and --always-clean')
     print('--jobs                 : Run with specified number of jobs, default: num CPUs.')
     print('--host                 : Set the host triplet')
     print('--build                : Set the build triplet')
     print('--target               : Set the target triplet')
     print('--prefix path          : Tools build prefix, ie where they are installed')
     print('--topdir path          : Top of the build tree, default is $PWD')
     print('--configdir path       : Path to the configuration directory, default: ./config')
     print('--builddir path        : Path to the build directory, default: ./build')
     print('--sourcedir path       : Path to the source directory, default: ./source')
     print('--patchdir path        : Path to the patches directory, default: ./patches')
     print('--tmppath path         : Path to the temp directory, default: ./tmp')
     print('--macros file[,[file]  : Macro format files to load after the defaults')
     print('--log file             : Log file where all build out is written too')
     print('--url url[,url]        : URL to look for source')
     print('--no-download          : Disable the source downloader')
     print('--no-install           : Do not install the packages to the prefix')
     print('--targetcflags flags   : List of C flags for the target code')
     print('--targetcxxflags flags : List of C++ flags for the target code')
     print('--libstdcxxflags flags : List of C++ flags to build the target libstdc++ code')
     print('--source-only-download : Only download the source')
     print('--with-<label>         : Add the --with-<label> to the build')
     print('--without-<label>      : Add the --without-<label> to the build')
     print('--rtems-tools path     : Path to an install RTEMS tool set')
     print('--rtems-bsp arc/bsp    : Standard RTEMS architecure and BSP specifier')
     print('--rtems-version ver    : The RTEMS major/minor version string')
     if self.optargs:
         for a in self.optargs:
             print('%-22s : %s' % (a, self.optargs[a]))
     raise error.exit()