summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/build.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sb/build: Add -E to '%source setup' to handle tar dependency errors.Chris Johns2019-10-251-1/+25
| | | | | | | | Tar on Windows raises an error if a symlink appears before the target. Windows needs the target to exist before a link can be created. This patch adds support via the -E option to catch the error and rerun the tar command a second time. The symlink should work as the target should exist on the second pass.
* 5/llvm: Add LLVM as a package for RTEMS.Chris Johns2019-09-161-41/+58
| | | | | | | | | | | | | - Add '%source download <source>' to only download the source and do not unpack and prep. This can used when a package internally needs another source package. - Install the staging root only if it is present. A package may internally build another package that is not staged as it is not suitable for installing. Updates #3250 Updatew #3797
* rtems: Add kernel, libbsd and BSP building as packages.Chris Johns2019-07-211-6/+15
|
* windows: Remove BuildRoot from all configs, add a short tmp path.Chris Johns2018-11-051-18/+14
| | | | Closes #3562.
* sb: Add support to search for a suitable version of python.Chris Johns2018-10-211-0/+8
| | | | | | | | The command python has been removed from upstream python and python2 and python3 is now used. This patch wraps the commands in a shell script that locates a suitable python to run. Updates #3537
* sb: Monitor the build disk usage. Report the usage, total and various sizesChris Johns2018-09-281-40/+85
| | | | | | | | | | | | | | - Track the size of a build of a package in a build set to determine the maximum amout of disk space used. This can be used as a guide to documenting how much space a user needs to set aside to build a specific set of tools. - The `%clean` stage of a build is now split into a separate script. I do not think this is an issue because I could not find any `%clean` sections in any build configs we have. In time support for the `%clean` section will be removed, the package builder cleans up. Closes #3516
* sb: Move the option check for reporting errors to the error reporter.Chris Johns2017-10-121-5/+2
| | | | Updates #2536.
* sb: Add --rsb-file options to %source and %patch to set a file name.Chris Johns2016-04-151-6/+45
| | | | | | Override the automatic file name of a downloaded file and use the file name provided by the option. This is useful if the URL has no meanful file that can be automatically extracted from the URL.
* sb: Fix the --without-error-report parsing of the label.Chris Johns2016-03-141-2/+2
| | | | Update #2526.
* sb: Fix build's --with-error-report handling.Chris Johns2016-03-141-1/+2
| | | | | | This reflects changes in the way the --with/--without options are handled. Updates #2526.
* sb: Update code base to support Python3 and Python2.Chris Johns2016-03-071-15/+15
| | | | | | Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
* Fix sb-build to reference the opts correctly.Chris Johns2016-02-241-1/+2
|
* Support released downloading of the RTEMS Tools and RTEMS Kernel.Chris Johns2015-12-111-2/+4
| | | | 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/+1
| | | | | | | | | | | | 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-17/+57
| | | | | | | | | | | | 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.
* Windows native build fixes.Chris Johns2015-02-071-1/+0
| | | | The testing of building on Windows is done using MSYS2.
* sb: Convert the '-' to '_' in symlinks for git repos.Chris Johns2014-10-311-1/+2
|
* sb: Add a dry run footer to ereports.Chris Johns2014-08-141-3/+5
|
* sb: Fix sources related bugs.Chris Johns2014-08-121-2/+2
| | | | | Updates the sources module introduced bugs in the build and download modules. The commit fixes those modules.
* Add checksum support for downloaded files.Chris Johns2014-07-291-2/+7
| | | | | | | | File download by http, ftp, pw support checksum. The %hash directive provides a means of setting a hash used to checksum the file. Files on disk or just downloaded are checked.
* sb: Remove duplicates from the config file list.Chris Johns2014-07-251-1/+1
|
* sb: Tighten the canadian cross compile detection.Chris Johns2014-06-151-10/+22
| | | | | | | A canadian cross compile needs the build, host and target being different. Clean up the error handling.
* sb: Fix the source option string for getopts.Chris Johns2014-06-011-1/+1
|
* sb: Move error report generation to the build phase.Chris Johns2014-05-151-34/+39
| | | | | | Generate a separate report of each package being built in a build set. This creates a better list of faults in the case of nesting build sets such as */rtems-all.
* sb: Fix the formatting string.Chris Johns2014-05-141-1/+1
|
* sb: Implement %source and %patch to manage source and patches.Chris Johns2014-05-131-106/+126
| | | | | | Remove the numbered source and patches and automatically manage sources and patches. This removes the overhead in maintaining large collections of patches.
* sb: Generate an error report on an error.Chris Johns2014-05-081-10/+24
| | | | | Generate an error report users can send to the mailing list with error details.
* Automtically build the Autotools to bootstrap RTEMS.Chris Johns2013-07-161-35/+48
| | | | | | | | | | | | | | | | | | 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.
* Support Canadian cross builds on FreeBSD (and other hosts).Chris Johns2013-05-151-2/+1
| | | | | | | | | Set up the rules to manage the separate host and build setting to allow a Canadian cross to complete. Update the scripts to move the build directory and host/build flags into the defaults so they are common for all build configurations.
* Fix support for Windows (MinGW) native builds using MSYS.Chris Johns2013-05-131-0/+19
| | | | | | | | | | 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.
* Fixes for CVS to work. Add RTEMS build for sparc/sis.Chris Johns2013-04-221-1/+1
|
* Refactor the logging support.Chris Johns2013-04-211-43/+23
|
* Add download git support.Chris Johns2013-04-161-116/+10
| | | | | | | | | | | Add support to use a git cloned repo as the source. Move the download code out of the build module and into a separate module. Add to this module support for git. Update the GCC common configuration to support using a symlinked git repo. Add checks for all languages.
* Add --no-download to disable the downloader.Chris Johns2013-04-151-1/+3
|
* Add support for snapshot testing.Chris Johns2013-04-131-2/+0
| | | | | | | | User macro files passed on the command line allow a user to override the defaults in configuration files to test new changes in pending releases. Fix macros issues with keys with more than one map.
* Hack in sources and print the macros when tracing.Chris Johns2013-04-131-1/+8
|
* Refactor defaults, macros and options.Chris Johns2013-04-091-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Support a common verion number for all commands.Chris Johns2013-04-051-13/+16
|
* PR 2108, PR 2109. Add --jobs and --always-clean.Chris Johns2013-04-031-5/+2
| | | | | | | | | | | | | | Refactor the options handling in defaults.py to allow the --jobs option have varing specific parameters. The option supports 'none', 'max' and 'half' or a fraction to divide the number of CPUs or an integer value which is the number of jobs. The --no-smp has been removed. The host specific modules have been changed to set the number of CPUs in the defaults table. Fixed the --keep-going to clean up is --always-clean is provided even if the build has an error.
* Add Canadian Cross support.Chris Johns2013-04-011-9/+41
| | | | | | | | | | | | | | | | | | | | Add support to build MinGW tools using Cygwin. This is a Canadian cross build. Do not expand the directives when parsing a configuration file. Hold in the package object the text as read from the configuration file. Still parse the logic but leave the macros. This allows a configuration to be varied when the build happens. The Canadian cross uses this to build a build compiler used to build a Cxc runtime. Add Cxc support to the build module. In the defaults add rm and rmfile macros, add Cxc paths and pre-build script code. In the setbuilder check for a Cxc build and if so and the package allow Cxc build the build host version then the host target version. Add cygiwn support to the defaults processing and to the Windows module.
* Generate a better error message. Use the package name in the installing message.Chris Johns2013-03-151-0/+2
|
* Store downloaded patches in %{_patchdir}.Chris Johns2013-03-101-1/+1
|
* Provide the main package as a function.Chris Johns2013-03-041-3/+6
|
* Move find_configs to build and fix. Install reports to 'rtems-source-builder'.Chris Johns2013-03-041-0/+12
|
* If %setup -c then always create and change into the directory.Chris Johns2013-03-021-1/+1
|
* Fix %setup now the scripts have been cleaned up.Chris Johns2013-03-011-5/+3
|
* Fix the %setup error messages.Chris Johns2013-02-281-2/+4
|
* Fix host paths on Windows.Chris Johns2013-02-271-2/+3
|
* Rename Source Builder to RTEMS Source Builder.Chris Johns2013-02-231-1/+1
|
* Create tar directory when making build set tar files.Chris Johns2013-02-221-27/+4
| | | | | Move the mkdir and removeall code from the build module to the path module.