200 Commits

Author SHA1 Message Date
Chris Johns
f3c5dbdce6 rtems/gcc: Do not build GMP in GCC, use the staged build
- Do not build GMP when building GCC. GMP is now built
  as a package for GDB. Building as a separate package
  lets use control how it is built.

Updates #4892
2023-04-05 10:09:29 +10:00
Chris Johns
9919f1217c gdb: Use a virtual environment if present
- Detect and use a virtual environment if present

- Supports MacOS with python.org in a venv

Updates #4892
2023-04-05 10:09:21 +10:00
Chris Johns
344981a8f8 dtc: Disable warnings
Updates #4892
2023-04-04 15:22:11 +10:00
Chris Johns
f0e34eab8b binutils: Disable stack exec and RWX section warnings
Binutils 2.39 and later enable by default warnings for executables
with executable stack and RWX sections. Disable them.

Closes #4881
2023-03-22 09:11:08 +11:00
Karel Gardas
0054104e37 grub2.cfg: fix GRUB compilation with GCC 12. 2023-03-19 23:26:37 +01:00
Kinsey Moore
6685718699 Revert github tarball hash changes
GitHub has reverted the change that caused all these tarball hashes to
change and so we follow suit.
2023-02-01 10:36:50 +11:00
Kinsey Moore
5c01a44221 Update hashes for github-sourced tarballs
Github has changed the way it generates on-the-fly tarball requests
which has changed the hashes of the resulting tarballs. This adjusts the
affected tarball hashes as a stop-gap until a more permanent solution
can be devised.
2023-01-30 17:12:12 -06:00
Sebastian Huber
949cf500b4 gdb: Use https for downloads 2022-11-10 15:11:42 +01:00
Karel Gardas
b02f7788e8 devel/sis: fix compilation of SIS on Mac OS X
SIS compiles on Mac OS X fine, but without providing --host/--build
configure options. Removing them solves the issue of configure not being
able to recognize arm64-darwin platform.
2022-10-24 21:17:42 +02:00
Karel Gardas
0388c4b8b2 testproc/gsed: fix compilation of GNU sed on Mac OS X
GNU sed compiles on Mac OS X fine, but without providing --host/--build
configure options. Hence removing them solved the issue of configure
not being able to recognize arm64-darwin platform.
2022-10-24 00:33:06 +02: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
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
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
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
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
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
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
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
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
846c979058 devel/dtc: Change the home page to www.devicetree.org 2020-04-28 18:36:41 +10:00
Anders Montonen
d5ad66747c source-builder/config/gdb-common-1.cfg: Fix building with Python 3.8
Starting with Python 3.8, python3-config requires the "--embed" flag to
print the flags required for embedding Python in an application.

Fixes:
error: shell macro failed: /home/anders/work/rtems/rsb/source-builder/sb/rtems-build-dep -c gcc  -l : 2: error: no library (-l) provided

Signed-off-by: Anders Montonen <Anders.Montonen@iki.fi>
2020-04-28 08:49:56 +10:00
Vijay Kumar Banerjee
190b39e913 source-builder: Add capstone 2020-04-10 08:44:32 -05:00
Hesham Almatary
70775f90cb rsb: Fix Spike build
* There is no all$ target in Spike
* There is no longer --with-fesvr flag since fesvr is source-inlined
by default
2020-04-09 12:38:08 +01:00
Jonathan Brandmeyer
113c65cb56 databases/sqlite: Update to 3.31.1
closes #3927.
2020-04-02 19:08:16 -05:00
Martin Erik Werner
f93fcef875 qemu: Update glib to build on newer gcc
Update the glib version to 2.48.2 in order to fix build failure on newer
gcc[0].

Force internal version of libpcre for glib, since otherwise the build
failed, presumably since libpcre is not provided as a module (maybe it
should?).

Increasing the glib version further to the current latest was not
tested.

[0]
  CC       libglib_2_0_la-gdate.lo
../../glib-2.39.3/glib/gdate.c: In function 'g_date_strftime':
../../glib-2.39.3/glib/gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~
2020-03-20 11:50:28 -05:00
Chris Johns
834a0ea88a protobufs: Fix the incorrectly update top level URL for the project.
- Looks like protobuf is now not under Google. I failed to notice that.
2020-03-03 15:38:47 +11:00
Chris Johns
5ec0913ada protobufs: Top level project rename. Fix URL path on github. 2020-03-03 11:18:05 +11:00
Chris Johns
599c4d7c87 freebsd: Fix GDB building on some 12 and higher versions 2020-01-21 14:46:16 +11:00
Hesham Almatary
cd67edb7ca rsb: Update RISC-V's Spike revision
Latest Spike integrated fesvr in its source directory, so there
is no separate fesvr anymore.

Also use a revision of Spike that fixes the file permissions
when getting installed.
2019-11-12 10:44:51 +00:00
Chris Johns
8de6b678e8 sb/gdb: Add further getting source checks. 2019-10-27 10:35:30 +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
7d1ce7aa72 rtems/llvm: Add support to build llvm on Windows. 2019-10-25 14:12:33 +11:00
Joel Sherrill
68870df775 Update Spike RSB recipe and correct installed permissions
Updates #3802.
2019-10-23 17:54:10 -05: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
5684292a80 bare/pcre: Add PCRE 8.40 2019-09-16 08:21:40 +10:00
Chris Johns
3d2f6ea272 bare/t1lib: Format fix. 2019-08-29 13:29:51 +10:00
Jiri Gaisler
4c51cd9c4b Added qemu 4.1.0 as bare target
* target name is devel/qemu4, old qemu preserved as devel/qemu
2019-08-22 20:09:54 +02:00