445 Commits

Author SHA1 Message Date
Chris Johns
c665be18f6 sb: Find the top when a release
Closes #4777
2022-12-18 16:03:37 +11:00
Chris Johns
0a7ecef07e sb/downloads: Raise errors on no hash present
Close #4761
2022-11-15 21:46:27 +11:00
Chris Johns
d592ee8838 sb/set-bulder: Fix installing builds when a single buildset
- Always stage a build

- Install if installable and outter most buildset instance

Closes #4731
2022-09-30 17:07:10 +10:00
Chris Johns
af0f612c46 sb/execute: Fix incremental decoder with --dry-run
Closes #4734
2022-09-30 17:01:20 +10:00
Chris Johns
ddfcc320ab sb/execute: Use a decoder that maintains state aross blocks
Update #4734
2022-09-30 09:23:35 +10:00
Chris Johns
08ca387229 sb/version: Set top from external package
Closes #4733
2022-09-30 09:23:26 +10:00
Chris Johns
6f1e9149b5 sb/set-builder: Fix staging and tar file generation with a single config build
Closes #4731
2022-09-29 21:53:15 +10:00
Chris Johns
6afc04b332 sb/setbuilder: Install the build when stagging or configured to install
Updates #4716
2022-09-17 08:35:12 +10:00
Chris Johns
25972d9082 sb/setbuilder: Do not install if --no-install option is used
- This is a bug introduced in the recent bset tar file changes

Updates #4716
2022-09-16 09:12:00 +10:00
Chris Johns
828feec622 sb/setbuilder: Correctly create build set tar files
- 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

Updates #4716
2022-09-16 09:11:52 +10:00
Chris Johns
0253d81ad2 sb/config: Correctly handle multiple config paths
- Add rtems/config to the config directories searched to better
  support deployment

- Correctly expand the configdir and path searchs

Updates #4716
2022-09-14 17:21:21 +10:00
Chris Johns
e85e2a7300 sb/setbuilder: Support line continuation
Updates #4716
2022-09-14 17:15:48 +10:00
Chris Johns
6116d9c872 sb: Back port fixes from the development branch
Updates #4716
2022-09-08 15:47:40 +10:00
Chris Johns
3138ff5295 sb/getsources: Fix getting sources
- Back ported from the development branch

Updates #4715
2022-09-08 14:48:54 +10:00
Alex White
6225eadda1 sb: Merge mailer changes from rtems-tools
This adds the improved mailer.py script from rtems-tools.

Closes #4554
2021-12-16 15:42:08 -06:00
Ricardo Cárdenes
e5aa419d35 sb/config.py: Fix operator reconstruction
Close #4337
2021-03-11 09:54:13 -07:00
Vijay Kumar Banerjee
d638f2b9a0 sb/config.py: Fix relational operator
Close #4330
2021-03-10 11:47:36 -07:00
Stephen Clark
e32e184d69 pkgconfig.py: Removed use of "unicode" keyword for python3 compatibility
Closes #4094.
2020-09-26 10:59:55 +10:00
Chris Johns
9b1545f146 sb/options: A Canadian Cross is a different host, build and target
The check must make sure each is different.

Closes #4017
2020-06-30 18:04:12 +10:00
Chris Johns
0fd197f9a8 sb: Disable any trace data 2020-05-08 14:28:09 +10:00
Chris Johns
1f972c2108 sb: Add git clean to the supported git commands. 2020-05-08 14:28:04 +10:00
Anders Montonen
ae9faa2726 sb/linux.py: Workaround for Python >= 3.8
The platform.dist() interface has been deprecated since Python 3.5, and
has been removed in Python 3.8.

Fixes:
Traceback (most recent call last):
  File "/home/anders/work/rtems/rsb/source-builder/sb/options.py", line 682, in load
    overrides = linux.load()
  File "/home/anders/work/rtems/rsb/source-builder/sb/linux.py", line 60, in load
    distro = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

Signed-off-by: Anders Montonen <Anders.Montonen@iki.fi>
2020-04-28 08:49:25 +10:00
Anders Montonen
0c7965c093 sb: Fix Python literal comparison warnings
Fixes:
SyntaxWarning: "is" with a literal. Did you mean "=="?

Signed-off-by: Anders Montonen <Anders.Montonen@iki.fi>
2020-04-28 08:49:05 +10:00
Gedare Bloom
4727c3e58f sb/reports: add sanitize parameter enabled for --mail
Adds a --sanitize option to command line for reports.py
and also for the reports.report() interface from setbuilder.py
to remove the Remotes information from git.

Closes #3887.
2020-04-04 22:11:00 -06:00
Gedare Bloom
54e08b8580 sb/reports.py: Remove spurious error check
The error path is taken when list-bsets or list-cfgs returns
true (meaning it listed them). So the error is invalid.
2020-04-01 21:55:39 -06:00
Chris Johns
fe63ad8777 sb/execute: Port fixes from rtems-tools 2020-03-30 10:46:38 +11:00
Sebastian Huber
e0394a5c70 sb: Use multiprocessing.cpu_count()
The previous implementation does not work on some Linux distributions,
e.g. Debian on sparc64.  Use a standard function instead.
2020-03-05 10:59:16 +01:00
Chris Johns
3b0032d9e0 sb/options: Let --source-only-download download releases
- The release procedure uses the sb-set-sources command now.

Closes #3896
2020-03-04 20:37:04 +11:00
Chris Johns
9e49d20a30 sb/pkgconfig: Fix python2 issue with caching changes
Closes #3893
2020-03-04 09:56:01 +11:00
Chris Johns
ba97e7c5af sb/python-wrapper: Add python2.7 to aid testing 2020-03-04 09:20:19 +11:00
Chris Johns
96d55ab432 sb/pkgconfig: Cache pkgconfig based on a file name not name
- Caching on name falsely assumed checks across different config
  instances in nested build sets as used in vertical stack
  building was valid. This stopped a valid check for a prefix
  seeing if a valid BSP config was present.

Updates #3893
2020-03-03 11:18:05 +11:00
Chris Johns
4295d3d377 sb/config: Add paths checks to %{path ...}
Updates #3893
2020-03-03 11:18:05 +11:00
Chris Johns
175ce0bcb0 sb/config: Expanded nested shell commands
Updates #3893
2020-03-03 11:18:05 +11:00
Chris Johns
22135c9a76 windows: Use GNU tar to unpack source
- The bsdtar command does not handle symlinks cleanly, GNU tar does

Closes #3868
2020-02-12 14:41:14 +11:00
Chris Johns
599c4d7c87 freebsd: Fix GDB building on some 12 and higher versions 2020-01-21 14:46:16 +11:00
Chris Johns
443b8ce3d3 sb/getsources: Fix the repo_mail reference. 2019-12-05 19:01:54 +11:00
Chris Johns
6efd343a92 sb/getsources: Macro right hand values need to be strings. 2019-12-05 18:01:37 +11:00
Chris Johns
ad5d3afea9 sb: VERSION may not contain a release path or hashes 2019-12-05 16:27:10 +11:00
Sebastian Huber
784f518df4 Be more resilient against $PATH errors
Close #3781.
2019-12-02 09:45:10 +01:00
Chris Johns
074ef0c6cd sb/setbuilder: Output the mail send failure message on error 2019-11-19 11:19:43 +11:00
Chris Johns
5f7c53a7bd sb: Align the version processing with rtems-tools.
- Use the same VERSION file format as rtems-tools so a common release
  generation can be used.

- The version.py is almost the same as rtems-tools. There are some
  minor differences, one is the RTEMS version is present in this
  file while rtems-tool uses config/rtems-release.ini.

Updates #3822
2019-11-18 11:29:45 +11:00
Chris Johns
6950f22007 sb: Add support for a comma separated release path list.
Updates #3814
2019-11-18 11:28:38 +11:00
Chris Johns
9d9c9b8b61 sb/getsource: Load the local host overrides
The local host overrides have to be loaded so host specific commands
and settings can be found and used.
2019-10-28 13:58:44 +11:00
Chris Johns
bedc9887f3 sb/getsource: Add RTEMS BSP defaults to fetch packages sources. 2019-10-27 18:24:14 +11:00
Chris Johns
c98264c635 sb/getsource: Set the correct macro name for getting source. 2019-10-27 10:35:05 +11:00
Chris Johns
3e22fc45d2 sb/get-source: Add a macro to indicate the get-source command is running.
- Fix GDB's library checks to ignore errors when getting the source.
2019-10-27 08:20:38 +11:00
Chris Johns
9b5017f898 sb/config: Add support for line continuation.
- 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.
2019-10-27 08:17:23 +11:00
Chris Johns
fab7197c1b sb/options: Split options on the first '=' only.
Split only on the first '=' in an option so BSPOPTS can contain
an '='.
2019-10-26 06:52:07 +11:00
Chris Johns
a9815d91f0 sb/windows: Add the optional cmake command. 2019-10-25 14:12:33 +11:00
Chris Johns
591deae6d7 sb/build: Add -E to '%source setup' to handle tar dependency errors.
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.
2019-10-25 14:12:33 +11:00