Discussion:
[OpenRISC] Add support for to build binutils and gcc for RTEMS
Christian Svensson
2014-03-21 16:21:05 UTC
Permalink
Hi,

Looks good, thanks for doing this.

Have you tested this with both or1k and or1knd? The patch targeting libgcc
seems to be missing or1knd.

Nitpick: gas/configure.tgt uses tabs to separate, please follow that
convention.
(If you're using vim, use :set list to see all the different whitespaces
and where to use the different kind)

Regards,
Christian


On Fri, Mar 21, 2014 at 4:13 PM, Hesham Moustafa
Hi,
I would appreciate your review to the attached patches. These patches add
support to
build binutils and gcc for RTEMS target. RTEMS uses newlib with gcc, I
will have to
discuss some issues with RTEMS developers before submitting newlib patches.
Regards,
Hesham
Christian Svensson
2014-03-21 17:07:21 UTC
Permalink
On Fri, Mar 21, 2014 at 4:39 PM, Hesham Moustafa
Post by Christian Svensson
Hi,
Looks good, thanks for doing this.
Have you tested this with both or1k and or1knd? The patch targeting
libgcc seems to be missing or1knd.
I have tested or1k only. For libgcc, there is no corresponding
or1knd*-linux*, that's why I did not add it.
Would not the asterisk or1k[*] do the job ?
Yes, you're correct. I missed the wildcard.
Christian Svensson
2014-03-21 17:27:36 UTC
Permalink
Hi,

On Fri, Mar 21, 2014 at 5:19 PM, Hesham Moustafa
The fixed patch is attached. I have replaced spaces by tab character.
The patch looks good.

If you want me to merge this with upstream (after base or1k has been
merged) you will need to provide a good patch note.
Look at this patch for an example:
https://sourceware.org/ml/binutils/2014-03/msg00224.html - notice that the
commit message explains the patch and contains the entries to be added to
the ChangeLog files.
If you're using git, the 'format-patch' command is a good one.

Regards,
Christian
Stefan Kristiansson
2014-03-27 13:19:05 UTC
Permalink
On Thu, Mar 27, 2014 at 3:11 PM, Hesham Moustafa
This other patch is for gcc also generated by git format-patch.
The patch adds support to enable building gcc for RTEMS/or1k targets. Please
note
that RTEMS only uses newlib (without libgloss and other packaged libs).
For the previous reason, default linked libraries like or1k-sim and
or1k had to be removed.
Personal preference nit, send the patches with 'git send-email'.
That way they get inlined into the mail and it's easier to make inline
comments on them.

--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -848,6 +848,10 @@ or1k*-*-*)
tmake_file="$tmake_file or1k/t-or1k or1k/t-linux or1k/t-crtstuff
t-softfp-sfdf t-softfp"
extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o
crti.o crtn.o"
;;
+or1k*-rtems*)
+ tmake_file="$tmake_file or1k/t-or1k or1k/t-linux or1k/t-crtstuff
t-softfp-sfdf t-softfp"
+ extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o
crti.o crtn.o"
+ ;;
pdp11-*-*)
tmake_file="pdp11/t-pdp11 t-fdpbit"
;;

I haven't checked what other rtems toolchains does, but is it common
to use the t-linux file here?
I think I've spotted t-rtems somewhere, but I might remember wrong.
Hi,
Sorry for being late. The attached patch is generated with git
format-patch.
Please have a look.
Thanks,
Hesham
On Fri, Mar 21, 2014 at 8:40 PM, Hesham Moustafa
Post by Christian Svensson
Hi,
On Fri, Mar 21, 2014 at 5:19 PM, Hesham Moustafa
The fixed patch is attached. I have replaced spaces by tab character.
The patch looks good.
If you want me to merge this with upstream (after base or1k has been
merged) you will need to provide a good patch note.
https://sourceware.org/ml/binutils/2014-03/msg00224.html - notice that the
commit message explains the patch and contains the entries to be added to
the ChangeLog files.
If you're using git, the 'format-patch' command is a good one.
I am usually using git format-patch, put I had a weird problem when I
tried to use it with openrisc repository. Anyway, I will fix the problem and
submit patches again.
Thanks
Post by Christian Svensson
Regards,
Christian
Loading...