424 Commits

Author SHA1 Message Date
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
Chris Johns
841120ec95 sb: Detect duplicate adds of patches. 2019-09-19 09:40:36 +10:00
Chris Johns
4b7af07300 5/llvm: Add LLVM as a package for RTEMS.
- 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
2019-09-16 08:21:40 +10:00
Chris Johns
b3b5ca9ec3 sb/setbuilder: Add a trace to help installing. 2019-09-16 08:21:40 +10:00
Chris Johns
9725bad7fd sb/check-command: Add a check command wrapper 2019-09-16 08:21:40 +10:00
Chris Johns
d8b2719ae6 sb/config: Escape double quotes on Windows for shell macros
Closes #3792
2019-09-06 11:49:28 +10:00
Chris Johns
05f469b850 freebsd: SVN is optional. 2019-09-06 08:25:43 +10:00
Chris Johns
8bedf509be sb/setbuilder: Check is mail is valid. 2019-08-29 13:28:19 +10:00
Chris Johns
cdd5aef6a9 sb: Send only one mail when building a BSP
- Add support to email a single report if configured to do so.
2019-08-27 21:20:12 +10:00
Chris Johns
61ce77bcb5 sb/download: Add support for a base64 hash string 2019-08-27 11:02:53 +10:00
Himanshu40
378d541fbc Add support for MX Linux 2019-08-24 16:40:02 +10:00
Chris Johns
831ae05364 rtems/bsp: Build packages for the beagle BSP.
Closes #3769
2019-07-22 09:36:38 +10:00
Chris Johns
b1c2cb4f72 sb/setbuilder: Support staging of build set build before installing.
- Staging lets build sets use previously built build sets.

- Fix the rtems-bsp builds to support staging.
2019-07-21 21:09:34 +10:00
Chris Johns
f68f0d94c0 sb/options: Update copyright year to 2019. 2019-07-21 21:09:34 +10:00
Chris Johns
b90b749f23 sb/config: Add triplet processing command. 2019-07-21 21:09:34 +10:00
Chris Johns
8db33fbe43 rtems: Add kernel, libbsd and BSP building as packages. 2019-07-21 21:09:34 +10:00
Chris Johns
8922c8bbb0 sb/config: Fix GDB probes when using python-config.
- 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.
2019-07-21 21:09:34 +10:00
Chris Johns
c799e04a8f 5/packages: Add curl and update all packages with RTEMS 5 and LibBSD
- Update rtems-bsp support to correctly handle hosts for BSP.
- Clean up the options for a BSP.
- Check all RTEMS 5 packages and add 5/rtems-packages for all that build.
- Update download locations and checksum of all packages.

- The work requires the kernel and Libbsd hacve the same prefix.
2019-07-21 21:09:34 +10:00
Chris Johns
a74e43298c sb: Add sb-get-sources to download all referenced source files.
- Downloads all files into a single directory
- Iterates over all supported hosts to get any host dependent source
  no matter which host you run the command on.

Closes #3532
2019-05-22 09:27:07 +10:00
Chris Johns
ad56c6b1c4 sb: Fix error handling on thread exceptions when bootstraping. 2019-05-19 10:39:39 +10:00
Chris Johns
2c264c1ed6 freebsd: Version 12.0+ has unzip in /usr/bin 2019-05-15 13:13:23 +10:00
Chris Johns
0956a2c089 sb/config: Fix os and arch conditional logic.
Correctly split the argument list and check each element.

Closes #3743
2019-05-07 09:13:12 +10:00