RE: arm bsps: changing the float-abi to softfp

2023-04-05 Thread Steinbach, Ingolf
> There is a means if someone wants to update gcc-common-1.cfg to allow user 
> macro maps.
[...]

Thanks, Chris. I'll investigate this.

Kind regards
Ingolf
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


RE: arm bsps: changing the float-abi to softfp

2023-04-04 Thread Steinbach, Ingolf
Hi Sebastian.

> Why would you use
> this instead of -mfloat-abi=hard? For a statically linked executable
> this makes little sense.

My goal is to link with a 3rd party object file which had been compiled with 
-mfloat-abi=softfp and which cannot be recompiled. In fact, there are also 
other flags which might cause a conflict with the current flags used by RTEMS 
and which might cause even more headache (-mfpu comes to my mind).

> If you really need such a multilib, then you can patch
> gcc/config/arm/t-rtems. I don't know if you can add custom patches to
> the RTEMS Source Builder.

I assume that I could add them to the corresponding config/tools/*.cfg.

Kind regards
Ingolf
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


Re: arm bsps: changing the float-abi to softfp

2023-04-04 Thread Chris Johns
On 5/4/2023 4:11 am, Sebastian Huber wrote:
> If you really need such a multilib, then you can patch 
> gcc/config/arm/t-rtems. I
> don't know if you can add custom patches to the RTEMS Source Builder.

There is a means if someone wants to update gcc-common-1.cfg to allow user macro
maps.

1. User patch or source macro map

Create a user macro map. Examples can be found here:

https://git.rtems.org/rtems-source-builder/tree/rtems/config/snapshots

2. Update gcc-common-1.cfg to select user macro maps

Update:

 
https://git.rtems.org/rtems-source-builder/tree/source-builder/config/gcc-common-1.cfg

with suitable selects. For example:

https://git.rtems.org/rtems-source-builder/tree/source-builder/config/gcc-4.7-1.cfg

I suggest:

 %select gcc-user
 %select newlib-user
  ...

3. Provide your macros to the set builder command using --macros.

You can also set the environment variable `RSB_MACROS` or create a file called
$HOME/.rsb_macros.

It has been many years since I have used and tested this.

Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


Re: arm bsps: changing the float-abi to softfp

2023-04-04 Thread Sebastian Huber

Hello Ingolf,

the -mfloat-abi=softfp instructs the compiler to emit floating-point 
instructions if other machine options specify a FPU. Why would you use 
this instead of -mfloat-abi=hard? For a statically linked executable 
this makes little sense. You still have to take care of the FPU context 
during context switches and interrupt processing.


If you really need such a multilib, then you can patch 
gcc/config/arm/t-rtems. I don't know if you can add custom patches to 
the RTEMS Source Builder.


--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

arm bsps: changing the float-abi to softfp

2023-04-04 Thread Steinbach, Ingolf
Hi,

we are currently using the RTEMS source builder to build the toolchain, RTEMS 
and a few BSPs for ARM (32bit) targets. Apparently, RTEMS generally uses 
-mfloat-abi=hard for all arm32 targets. Can this easily be changed to compile 
with -mfloat-abi=softfp instead? Or extend the multilib build to include also 
softfp variants?

No "clean" solution expected which is ready for inclusion in rtems.org -- just 
a pointer to the relevant files which would have to be patched.

Kind regards
Ingolf

___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users