635 Commits

Author SHA1 Message Date
Chris Johns
f86bc1da52 sb/setbuilder: Install the build when stagging or configured to install 2022-09-16 16:55:41 +10:00
Chris Johns
468fc79e8c devel/gcc: Check and build GNU sed if not available on build host
Closes #2300
2022-09-14 16:56:25 +10:00
Chris Johns
27c61da6df textproc/gsed: Add GNU sed build support
Updates #2300
2022-09-14 16:56:18 +10:00
Chris Johns
6f7eba4f1a sb/setbuilder: Do not install if --no-install option is used
- This is a bug introduced in the recent bset tar file changes
2022-09-14 16:39:46 +10:00
Chris Johns
6205068c5a 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
2022-09-09 09:08:09 +10:00
Chris Johns
1ce36943e9 sb/build.py: Output build scripts to trace
- Only remove the build directory when not a dry run
2022-09-09 09:08:09 +10:00
Chris Johns
18b4507fc5 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

Close #4710
2022-09-09 09:08:09 +10:00
Chris Johns
3a4892dce1 sb/setbuilder: Support line continuation 2022-09-09 09:08:09 +10:00
Chris Johns
17106e0e3c sb/rtems-kernel-config-check: Support multiple BSPs and add a test option 2022-09-09 09:08:09 +10:00
Chris Johns
be25beed29 sb/rtems-kernel-config-check: Reformat using yapf 2022-09-09 09:08:09 +10:00
Chris Johns
3cb78b0b81 config: Various updates to fix downloading of sources 2022-08-17 14:52:12 +10:00
Chris Johns
66cfc0052b sb/gcc-common: Allow URL overrides for downloaded source
- This allows the URL for an older package to be defined when
  gcc no longer hosts it
2022-08-17 14:52:12 +10:00
Chris Johns
cbcf8698a8 sb/get-sources: Fix getting sources with archs
- Add a stop on error option

- Add listing root or toplevel buildset files

- Add used and unused file output to track what is not used
  for clean ups

- Update to handle macro expanded includes in buildset files
2022-08-17 14:52:12 +10:00
Sebastian Huber
958de508aa newlib: Support --with/without-newlib-tls
This RSB option defines if the --enable-newlib-reent-thread-local
(_REENT_THREAD_LOCAL_STORAGE) Newlib configuration option is used or not.

Update #4560.
2022-07-21 09:05:00 +02:00
Chris Johns
1a24c6cfdb tools/gnu: Enable LTO in RSB tools
The change enables the building of LTO into RTEMS tools. Compiler
options are required to enable use in an application.
2022-06-16 12:45:38 +10:00
Joel Sherrill
e73a258a3a source-builder/sb/options.py: Change arc to arch in help 2022-05-22 18:28:08 -05:00
Kinsey Moore
620b62436a source-builder: Handle utf8 in path
It's possible for an environment to have unicode characters in its
paths. This was recently exposed by the latest newlib update and RSB
fails under Python 2.7 in this situation. This resolves the issue by
ensuring that the paths are encoded and decoded as necessary.

Related issue that caused the change in newlib:
https://github.com/golang/go/issues/27836
2022-05-16 17:35:23 -05:00
Chris Johns
7d80719f74 sb/setbuilder: Control buildsets using the --with-* command line option
- Expand macros in buildset file names

- Add support to buildsets for `%defineifnot`

- Update 6 and 7 to support command line build overrides

Closes #4646
2022-05-05 12:32:16 +10:00
Sebastian Huber
3cad3c8cc9 6: Use mpc-1.0.3
This is necessary since mpc-1.2.1 requires mpfr-4.1.0.
2022-04-27 08:29:19 +02:00
Sebastian Huber
7eaefb28ee 6: Use isl-0.18
There are build problems with isl-0.24 on CentOS 7.9.
2022-04-27 07:28:24 +02:00
Sebastian Huber
22cb79b1f0 6: Use mpfr-3.1.6
There are build problems with mpfr-4.1.0 on macOS.
2022-04-27 07:20:27 +02:00
Chris Johns
70f302e08c gdb: Split python's version into major/minor and check for embed option
Closes #4631
2022-04-26 10:13:41 +10:00
Chris Johns
4c3708f127 sb: %if checks are numeric if the left and right values are numbers
- If the left and right values are numbers make the check numeric.

Update #4631
2022-04-26 10:12:58 +10:00
Sebastian Huber
ed875ac52f gcc: Disable -Werror
For release branches -Werror is disabled by default, however, for the
development branch of GCC it is enabled.  Make sure that it is always disabled.
2022-04-25 09:23:02 +02:00
Sebastian Huber
6cf31074fa 6/7: Update GCC prerequisites for GCC 10 and 12 2022-04-22 08:46:06 +02:00
Sebastian Huber
a6ee3cb286 gcc: Move GMP, MPC, MPFR sources to common
Use GCC infrastructure download directory for GCC prerequisites.
2022-04-22 08:40:17 +02:00
Sebastian Huber
571a182d4a GDB: Prefer Python 3 over 2
This fixes the build of a recent GDB version:

gdb/python/py-micmd.c: In function 'int micmdpy_uninstall_command(micmdpy_object*)':
gdb/python/py-micmd.c:430:20: error: 'PyDict_GetItemWithError' was not declared in this scope
   PyObject *curr = PyDict_GetItemWithError (mi_cmd_dict.get (),
                    ^~~~~~~~~~~~~~~~~~~~~~~
2022-03-21 09:01:01 +01:00
Sebastian Huber
09b84c4c2a sb/linux.py: Simplify "distro" determination
This fixes an issue on Debian 11 which contains "Debian" in /etc/issue
(capital D).
2022-01-24 07:56:16 +01:00
Karel Gardas
dbc11a81b7 RSB: add GRUB2 to the RTEMS tools and use it in 6/rtems-x86_64 build set 2021-11-18 11:06:04 -06:00
Ryan Long
def934785d rtems-kernel: Implement kernel recipe using waf
Closes #4145
2021-11-09 11:10:40 -06:00
Robin Mueller
c938bd7cbe setbuilder minor list-host option
This adds a way to print the host triplet
Can be useful for cross-compiling toolchains
2021-07-17 08:42:29 +10:00
Chris Johns
9c33ea0790 defaults.mc: Remove any checks for objdump and objcopy
- FreeBSD is removing any dependence on binutils and release 13
  has removed objdump. This is fine as we build our own version.
2021-07-01 10:31:31 +10:00
Alex White
4e6dc64314 sb: Merge mailer changes from rtems-tools
This adds the improved mailer.py script from rtems-tools.

Closes #4388
2021-05-26 16:34:36 -05:00
Ricardo Cárdenes
5e449fb5c2 sb/config.py: Fix operator reconstruction
Close #4335
2021-03-11 08:52:27 -07:00
Vijay Kumar Banerjee
2f9a68bfb1 sb/config.py: Fix relational operator
Close #4319
2021-03-10 11:09:17 -07:00
Sebastian Huber
4301130dec Add GMP as a prerequisite for GDB 2020-12-21 06:40:51 +01:00
Sebastian Huber
ea77e182d4 expat: Disable shared libraries
This should ensure that GDB is linked using the static libexpat.a built
by the RSB.
2020-12-21 06:40:51 +01:00
Chris Johns
07261837a2 devel/qemu: Update QEMU to 5.2.0-rc1
- This version of qemu uses meson and ninja to build. You will need
  to install ninja to build. No checks are made until meson run
2020-11-13 09:24:06 +11:00
Stephen Clark
ed5030bc24 pkgconfig.py: Removed use of "unicode" keyword for python3 compatibility
Closes #4094.
2020-09-26 11:01:04 +10:00
Chris Johns
c51f634258 sb: Fix the imports on Python2
Updates #4037
2020-08-28 11:37:53 +10:00
Chris Johns
650c6f9933 sb: Use shebang env python
Closes #4037
2020-08-25 21:21:50 +10:00
Chris Johns
dc989037e4 sb/track: Only output unreferenced configs with the option 2020-08-12 13:17:48 +10:00
Chris Johns
a863b15fdb sb/bootstrap: Remove the sb-bootstrap command
Closes #4046
2020-08-10 16:53:42 +10:00
Chris Johns
481bbd1109 sb/builder: Remove sb-builder command
Closes #4045
2020-08-10 16:21:35 +10:00
Chris Johns
12418190b9 sb/track: Add a command to track build sets.
- 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
2020-08-10 16:19:47 +10:00
Chris Johns
8effa3e542 sb/options: A Canadian Cross is a different host, build and target
The check must make sure each is different.
2020-06-30 18:03:23 +10:00
Sebastian Huber
b89e62fd19 Change version to RTEMS 6
Update #4020.
2020-06-30 09:14:05 +02:00
Chris Johns
907eabfc3c sqlite: Change to https for downloading the source package. 2020-06-26 11:53:57 +10:00
Chris Johns
955c1c173e bare/qemu: Fixes building on FreeBSD
- Move the qemu config to a common file shared by qemu and qemu4.

- Disable nettle on qemu4, FreeBSd complained.

- Add some extra git cleaning steps to the git path. These however
  do not full clean the qemu submodules and it is not worth the
  effort to try and fix.

- The devel/qemu will not build on machines with python set to
  python3. This will not be fixed, use qemu4.

Closes #3966
2020-05-08 14:33:44 +10:00
Chris Johns
0fd197f9a8 sb: Disable any trace data 2020-05-08 14:28:09 +10:00