summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/config.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sb/setbuilder: Correctly create build set tar filesChris Johns2022-09-091-2/+3
| | | | | | | | | | - Make a single tarfile for all buildsets built - Use the staging tree as the tarfile source - Use python's tarfile module - Create a config.file object without loading a .cfg file
* sb/config: Correctly handle multiple config pathsChris Johns2022-09-091-27/+25
| | | | | | | | | - Add rtems/config to the config directories searched to better support deployment - Correctly expand the configdir and path searchs Close #4710
* sb: %if checks are numeric if the left and right values are numbersChris Johns2022-04-261-34/+35
| | | | | | - If the left and right values are numbers make the check numeric. Update #4631
* sb/config.py: Fix operator reconstructionRicardo Cárdenes2021-03-111-3/+3
| | | | Close #4335
* sb/config.py: Fix relational operatorVijay Kumar Banerjee2021-03-101-1/+1
| | | | Close #4319
* sb: Fix the imports on Python2Chris Johns2020-08-281-2/+1
| | | | Updates #4037
* sb: Use shebang env pythonChris Johns2020-08-251-7/+9
| | | | Closes #4037
* sb/track: Add a command to track build sets.Chris Johns2020-08-101-35/+52
| | | | | | | | - Process a build set for a range of hosts and output a dependency tree, the used build set and configuration files. - Output the configuration files that are no referenced Closes #4036
* sb: Fix Python literal comparison warningsAnders Montonen2020-04-281-1/+1
| | | | | | | Fixes: SyntaxWarning: "is" with a literal. Did you mean "=="? Signed-off-by: Anders Montonen <Anders.Montonen@iki.fi>
* sb/config: Add paths checks to %{path ...}Chris Johns2020-03-031-11/+37
| | | | Updates #3893
* sb/config: Expanded nested shell commandsChris Johns2020-03-031-2/+7
| | | | Updates #3893
* sb/config: Add support for line continuation.Chris Johns2019-10-271-2/+14
| | | | | | | | | | - Add line continuation support so empty macros can be used at the end of configure command lines, ie RTEMS kernel. The config parser removes empty lines and wihout this support a trailing line continuation character joins a configure command line to next command. - Fix freetype's gmake support for non-GNU operating systems.
* sb/config: Escape double quotes on Windows for shell macrosChris Johns2019-09-061-2/+5
| | | | Closes #3792
* sb/config: Add triplet processing command.Chris Johns2019-07-211-0/+31
|
* rtems: Add kernel, libbsd and BSP building as packages.Chris Johns2019-07-211-35/+39
|
* sb/config: Fix GDB probes when using python-config.Chris Johns2019-07-211-11/+36
| | | | | | - Fix the config file handling of shell calls where the shell command has nesting braces. - Fix the bool check to support a '!' next to the check value.
* sb/config: Fix os and arch conditional logic.Chris Johns2019-05-071-3/+6
| | | | | | Correctly split the argument list and check each element. Closes #3743
* sb: Add support to search for a suitable version of python.Chris Johns2018-10-211-17/+31
| | | | | | | | 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-1/+12
| | | | | | | | | | | | | | - 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/config: Terminate building on an error.Chris Johns2018-04-101-6/+8
| | | | | | | | This changes the previous functionality where the RSB switch to dry run mode. This functionality can be enabled by adding `--keep-going`. Close #3209.
* sb: Fix 'bare' builds with --trace.Chris Johns2017-06-261-1/+2
|
* sb: Do not filter -f options from a BSP.Chris Johns2016-04-151-1/+1
|
* sb: fix the if logic to handle directives in if statements.Chris Johns2016-03-191-19/+61
| | | | | | | | | Directives in if statements end at the end of an if. The cannot change or split across directive boundaries. Add more trace detail to config.py. Updates #2661.
* sb: Fix vairable type in _if.Chris Johns2016-03-181-1/+1
| | | | Updates #2655.
* sb: Fix op parsing bug where the string was not created.Chris Johns2016-03-181-0/+2
| | | | Updates #2655.
* sb: Fix %if logical OP parsing.Chris Johns2016-03-181-3/+9
| | | | Updates #2655.
* bare: Update qemu package source hashes that are missing.Chris Johns2016-03-171-0/+4
| | | | | | | | Add support for pkgconfig checks to fail when just downloading the source so it is actually downloaded on hosts that may have a package installed. Updates #2657.
* sb: Support --dry-run --with-download for 3rd party RTEMS BSP packages.Chris Johns2016-03-171-12/+69
| | | | | | | | | | | | | | | | | | | | | | | 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: Update code base to support Python3 and Python2.Chris Johns2016-03-071-19/+22
| | | | | | Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
* Remove the warning when undefining an undefined macro.Chris Johns2015-12-111-2/+0
|
* Canandian Cross Compiling and RTEMS 3rd party package building Fixes.Chris Johns2015-07-201-30/+38
| | | | | | | | | | | | 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.
* sb: Expand each data line.Chris Johns2015-06-051-0/+1
|
* sb: Fix the if logic for parameters.Chris Johns2014-08-231-3/+10
|
* rtems-4.11: Fix building the SPARC simulator.Chris Johns2014-08-211-1/+1
| | | | | Add support for simulator options to enable special features of some gdb simulators.
* Add checksum support for downloaded files.Chris Johns2014-07-291-2/+11
| | | | | | | | 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: Trace relative paths for nesting configs.Chris Johns2014-06-171-16/+24
|
* sb: Add support for building RTEMS 3rd party packages.Chris Johns2014-06-151-61/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove the 'opt' from various macros and shell variables. Add pkgconfig to the checks to make it clear the check is a pkgconfig check. Add NTP support as the first package to be built using the RSB. Split the RTEMS URL's out from the base bset file into a separate file that be included by other files. Add an RTEMS BSP configuration file to help abstract the process of building 3rd party packages. Clean the cross and canadian cross support up so we can cleanly support cross and canadian cross building. Refactor the pkgconfig support and clean up the PC file handling of loading modules. Add support for %{?..} to return false if a macro is %{nil}. Add %{pkgconfig ..} support to allow better control of access RTEMS pkgconfig files.
* sb: Implement %source and %patch to manage source and patches.Chris Johns2014-05-131-0/+12
| | | | | | Remove the numbered source and patches and automatically manage sources and patches. This removes the overhead in maintaining large collections of patches.
* config,sb: Qemu build updates for FreeBSD and the start of MinG32.Chris Johns2014-04-081-23/+37
| | | | | | | | | | Hack round the FreeBSD iconv support in Freebsd 10. In 10 libc now supports iconv however iconv.h is present under /usr/local. Start to add support to build qemu for MinGW via a Cxc. This is a work in progress and contains lots of hidden traps. In config.py separate out of the canadian build status.
* config: Change pkgconfig to check.Chris Johns2014-02-111-6/+49
| | | | | Add the extra actions: ccflags, cflags, ldflags and libs to allow the fetching of these from pkg-config files.
* sb: Add pkg-config support.Chris Johns2014-02-111-0/+28
| | | | | | | Add a pkg-config look alike command so packages that use pkg-config can build if pkg-config is not present on a host. Add support to query package config from configuration scripts.
* sb: Fix the config _parse args.Chris Johns2013-09-031-1/+1
|
* sb: Fix nesting if statements.Chris Johns2013-09-031-68/+89
| | | | | | Nesting if statements did not correctly process the contents of the nested if script. This change makes the processing uniform across all the logic stages.
* Automtically build the Autotools to bootstrap RTEMS.Chris Johns2013-07-161-0/+8
| | | | | | | | | | | | | | | | | | 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.
* Fix support for Windows (MinGW) native builds using MSYS.Chris Johns2013-05-131-1/+5
| | | | | | | | | | 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.
* Add a function to return the config file name.Chris Johns2013-04-291-0/+3
|
* Fix the trace message for _disable.Chris Johns2013-04-281-1/+1
|
* Add '%disable select' to turn off the macros maps.Chris Johns2013-04-271-1/+15
|
* Refactor the logging support.Chris Johns2013-04-211-39/+32
|
* Add a %testing section to the configuration files.Chris Johns2013-04-151-1/+5
|