summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/options.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sb: Backport from 4.11 the --rsb-file with releases fixes.Chris Johns2018-02-051-34/+55
| | | | Close #3286
* sb: Support --dry-run --with-download for 3rd party RTEMS BSP packages.Chris Johns2016-03-171-1/+8
| | | | | | | | | | | | | | | | | | | | | | | The building of 3rd party packages for an RTEMS BSP requires a valid BSP so the standard method to download the source for releasing does not work. This change adds support to allow this. The RTEMS BSP support will not generate an error is no BSP or tools are provided or found. The change addis logic operators to the %if statement so you can '||' to 'or' and '&&' to 'and' logic expressions. A new %log directive has been added to clean up the messages. A new %{!define ...} has been added to aid checking within logic expressions. All command line --with/--without now appear as macros. Add version.version to get just the RTEMS major and minor version. Some pkg-config issues have been resolved. Closes #2655.
* sb: Add a download option --with-release-url/--without-release-url.Chris Johns2016-03-101-5/+3
| | | | | | | | | | | | | | | | | | | | | | | The default without the option is to prepend the release URL to the URL list to download from the RTEMS FTP site first if the RSB is released. This option can force the RTEMS FTP to be tried first when not a release, or you can supply a different URL to download from or you can request no RTEMS URL is tried first. Eg: --with-release-url --with-release-url=file://opt/local/cache --without-release-url Move the RTEMS release URL to the default.mc file. Change the URL to the RTEMS FTP server and do not use the https method of access. The option's with_arg call was cleaned up to make sense. Remove the log's raw output of an extra space. Some download error message formating was cleaned up. Closes #2636.
* sb: Report platform import errors.Chris Johns2016-03-081-0/+2
|
* sb: Update code base to support Python3 and Python2.Chris Johns2016-03-071-46/+55
| | | | | | Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
* VERSION is an INI format file.Chris Johns2015-12-111-0/+5
| | | | | | | | | | | | | | | | | | VERSION is an INI format file with 2 sections: 1. version The version of the release. It contains: release = version-string 2. hashes A list of hashes for packages that are formed when creating a release. A hash entry is: file-name = hash-type checksum The approach means we do not need to hold hash values in configuration files which need to be updated when a release is made. The release scripts can generate the hashes when creating the release. Update the version to 4.12.
* Support released downloading of the RTEMS Tools and RTEMS Kernel.Chris Johns2015-12-111-3/+2
| | | | Add a --without-error-reports flags to reduce the noise on --with-downloading.
* sb. Add VERSION support for releasing the RSB.Chris Johns2015-12-031-1/+8
| | | | | | | | | | | | Add support to release the RSB by adding the VERSION file. The file is a single line with the version. Fix the reports to include the version. Update the INI file support to include the details of the build. Show the GIT or released version when the command starts. Closes #2480.
* Canandian Cross Compiling and RTEMS 3rd party package building Fixes.Chris Johns2015-07-201-5/+30
| | | | | | | | | | | | The change fixes installing for RTEMS 3rd Party packages where the RSB considered them Canadian Cross Compiling (Cxc). Fixing the Cxc issue broke real Cxc builds. The change corrects the issue of macros being changed in the Cxc and the prep data not being udpated. The configuration is loaded again after the updated macros. The macros are also copied and restored to ensure a clean stable base. The change also introduces --rtems-tools and --rtems-bsp to align the command line with the waf configure process or RTEMS application.
* Revert "add basic support for OpenBSD"Chris Johns2015-06-221-3/+0
| | | | | | This reverts commit 83d97daa070d67d177b90796ed22e4044ec9012c. It contains a GPL license.
* add basic support for OpenBSDKarel Gardas2015-06-221-0/+3
|
* sb: Do not accept an extra separate option for --with/--without.Chris Johns2015-03-201-6/+5
| | | | | The --with/--without that does not have an extra option was consuming an extra option on the command line.
* Add options support for --with/--without processing. Add --with-download ↵Chris Johns2015-02-181-6/+43
| | | | | | | | support. You can now test downloading by using --dry-run and --with-download. Print the redirect if one is taken.
* Detect a Cxc build from the options and automatically disabled installing.Chris Johns2015-01-181-0/+13
| | | | | This is similar to always providing --no-install on the command when building a Cxc package.
* sb: Provide a default log if none is provided.Chris Johns2014-10-311-1/+2
|
* add support for i386-solaris2 platformKarel Gardas2014-10-071-0/+3
|
* sb: Generate an error report on an error.Chris Johns2014-05-081-2/+12
| | | | | Generate an error report users can send to the mailing list with error details.
* sb: Fix git to clean before updating.Chris Johns2014-03-261-1/+1
|
* sb: Add options log_info.Chris Johns2013-09-031-6/+12
| | | | | Provide a log_info method for the options class to log the command line and the python version string.
* sb: Add NetBSD support.Ivan Temp2013-09-011-0/+3
|
* Automtically build the Autotools to bootstrap RTEMS.Chris Johns2013-07-161-0/+2
| | | | | | | | | | | | | | | | | | This changes adds support to build the autotools if the host installed version is not a suitable version. Autoconf and automake have hard coded references to the install prefix and host tools and this makes it impossible to relocate, that is use in any path other than the install prefix. To bootstrap automake you need to first build a suitable autoconf and with that you can built automake for the install prefix. The other complication is not referencing the install prefix in the path when building in the RSB. Having the install prefix in the path can result in strange issues appearing such as gcc using a new assembler feature not present in an older assember installed under the install prefix. The process is to build the autotools using an install prefix to an internal path inside the RSB temporary path and to use that autoconf to build the version for the install prefix. The internal install prefix version is also used to bootstrap RTEMS.
* Clean the paths passed as args.Chris Johns2013-05-171-1/+1
|
* Add bare/config and move the source-builder/config to it.Chris Johns2013-05-141-3/+6
| | | | | | | | | Rework the RTEMS build set files to point to the new location. Move the files into devel, this follows the ports naming in FreeBSD. Update the macros, defaults, and options to support this.
* Fix support for Windows (MinGW) native builds using MSYS.Chris Johns2013-05-131-0/+8
| | | | | | | | | | Fix paths that need to be coverted to host format. The shell expansion needs to invoke a shell on Windows as cmd.exe will not work. Munch the paths into smaller sizes for Windows due to the limited path size.
* Produce a better error message if the host support code does not load.Chris Johns2013-05-011-3/+6
|
* Add options help.Chris Johns2013-04-301-1/+2
|
* Add user private macro loading.Chris Johns2013-04-301-1/+13
|
* Refactor the logging support.Chris Johns2013-04-211-17/+27
|
* Add the --regression option.Chris Johns2013-04-161-0/+10
|
* PR 2117 - Only check the prefix is writable if installing and not a dry run.Chris Johns2013-04-151-3/+0
|
* PR 2115 - Fix checking when the path does not fully exist.Chris Johns2013-04-151-1/+1
|
* PR 2116 - Fix the option parsing to handle both ' ' and '='.Chris Johns2013-04-151-2/+2
|
* PR 2115 - Check prefix path write access before starting to build.Chris Johns2013-04-151-0/+11
| | | | | | | | | | Added a check in the options post processing to check is the prefix path allows writes. No actual write check is made. just the permissions are checked. If the --no-install options is used the check is not made. Moved the --no-install option from the set builder to the options module.
* Add --no-download to disable the downloader.Chris Johns2013-04-151-26/+31
|
* Fix options bug when the macro file is not found.Chris Johns2013-04-131-1/+1
|
* Add --macros option to load macro files.Chris Johns2013-04-131-1/+32
|
* Refactor defaults, macros and options.Chris Johns2013-04-091-0/+458
To support building snapshots and pre-release source the defaults has been refactored. The defaults have been moved to a stand alone file and a macros.py module added. This modile abstracts the old default dictionary turning it into a class. The macros class can load macros from a file therefore the defaults have been moved to a stand alone file. The use of defaults has been removed from the project. The only case where it is used in the options where the defaults are read from a file. Macros are used everywhere now. The defaults.py has been moved to the option.py and the separate options and defaults values has been moved to a new pattern. When constructing an object that needs macros and options if the macros passed in is None the defaults from the options are used. This makes it clear when the defaults are being used or when a modified set of macros is being used. The macros class support maps. The default is 'global' and where all the defaults reside and where configuratiion file changes end up. Maps allow macros to be read from a file and override the values being maintained in the 'global' map. Reading a macro first checks the map and if not present checks the 'global' map. The addition of maps to the macros provides the base to support snapshots and pre-release testing with standard configurations. This functionality needs to be added. It works by letting to specify a snapshot with: source0: none, override, 'my-dist.tar.bz2' and it will be used rather the value from the standard configuration. With a build set you need to also specify the package these macros are for. The maps provide this.