public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: "Robert Cragie" <rcc@jennic.com>
To: "Frank Ch. Eigler" <fche@redhat.com>, <sid@sources.redhat.com>
Subject: RE: hw-cpu-openrisc
Date: Mon, 23 Dec 2002 08:08:00 -0000	[thread overview]
Message-ID: <NMEDLDELHPEFHOMFIJBHAEIMCJAA.rcc@jennic.com> (raw)
In-Reply-To: <o5adja7x00.fsf@toenail.toronto.redhat.com>

I'm having a go at piecing the jigsaw together...

> The work includes ...
> - adding sid configury for the openrisc target; see
> sid/config/sidtargets.m4;

Will something like this be sufficient?

Index: sidtargets.m4
===================================================================
RCS file: /cvs/src/src/sid/config/sidtargets.m4,v
retrieving revision 1.4
diff -r1.4 sidtargets.m4
43a44
> sidtarget_openrisc=$sidtarget_default
56a58
>       openrisc*) sidtarget_openrisc=1 ;;
70a73
>   ${sidtarget_openrisc}) ;;
104a108,112
>
> AC_MSG_CHECKING(OpenRISC family support)
> AC_SUBST(sidtarget_openrisc)
> AM_CONDITIONAL(SIDTARGET_OPENRISC,[test "x$sidtarget_openrisc" = x1])
> AC_MSG_RESULT($sidtarget_openrisc)#

>   will need autoconf/automake runs throughout

So how do I do this exactly? I don't know much about these utilities, I'm
afraid. I did 'autoconf' and 'automake' at the top but it didn't seem to
make much difference to any of the files. If I need to go and read up about
these utilities before trying to do anything else, let me know :-)

> - adding sid configuration file generator pieces to sid/bsp/configrun-sid

Again, I think I can see what to do here, assuming I don't want any 'boards'
just yet. Would something like this do?

Index: configrun-sid.in
===================================================================
RCS file: /cvs/src/src/sid/bsp/configrun-sid.in,v
retrieving revision 1.34
diff -r1.34 configrun-sid.in
19a20
> 		 "openrisc" => "hw-cpu-openrisc/d",
25a27
> 		      "openrisc" => "-EB",
34a37
> 		   "openrisc" => "sw-gloss-openrisc/libgloss",
43a47
> 		   "openrisc" => "0x00000000,0x00800000",

> - populating sid/component/cgen-cpu/openrisc, mostly with
> cgen-generated files,
>   plus one or two hand-written ones; the m32r target is amongst
> the simplest to
>   use as a base

This is where I'm getting a little bit unstuck. Looking at the m32r
subdirectory, I can see the m32r-decode.cxx etc. files which all say they
are automatically generated by CGEN. But how did they get here? Are they
created somewhere else by an additional step then copied in? Again, I can
see in CGEN there are the sid-xxx.scm files which I presume are extra to the
normal CGEN release - do these build the 'extra bits' needed for SID? There
doesn't seem to be much about it in the documentation - how do you build
this?

I presume the additional hand-written files are needed to implement the sid
interfaces.

> - testing, perhaps as a dejagnu "baseboard"

Not even close :-)

I would really like to have a go at doing this, but I'm finding it hard
going with lack of documentation at the SID level and a huge directory tree.
Any more help would be really appreciated - even if it's to say 'get fully
acquainted with the GNU way of doing things first'. Then at least I know
what I'm up against.

Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
http://www.jennic.com  Tel: +44 (0) 114 281 2655
_______________________________________________________________


  reply	other threads:[~2002-12-23 16:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-13  5:27 hw-cpu-openrisc Robert Cragie
2002-12-13  7:40 ` hw-cpu-openrisc Frank Ch. Eigler
2002-12-23  8:08   ` Robert Cragie [this message]
2002-12-23  8:53     ` hw-cpu-openrisc Frank Ch. Eigler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=NMEDLDELHPEFHOMFIJBHAEIMCJAA.rcc@jennic.com \
    --to=rcc@jennic.com \
    --cc=fche@redhat.com \
    --cc=sid@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).